Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Inject dynamic number of components

$
0
0
Hi all,
how can I inject and access dynamic number of custom components, I want to access them in the Java class.
I have:
<loop>
<t:myCustomComponent/>
</loop>

I want to access these components as they are injected and to execute in the onSuccess for everyone of them some method as if it is a single component:

@inject
MyCustomComponent component;

void onSuccess() {
component.method();

I want to the the same for dynamic number of components, created by the loop

Viewing all articles
Browse latest Browse all 5648

Trending Articles