Hi,
i have the following scenario:
Got a "rowdynamiccontent" in which i paste a paintarea with lot of paintareaitems generated by code:
Code:
ComponentNode bubble = new ComponentNode("t:paintareaitem");
// here is some bgpaint and bound stuff
bubble.addAttribute("actionListener", "#{d.VisualizerUI.onClick}");
bubble.addAttribute("invokeevent", "click");
in the managedbean i got the corresponding "onClick-Method" listening to all bubbles created:
Code:
public void onClick(ActionEvent event) {
BaseActionEvent bae = (BaseActionEvent)event;
Statusbar.outputMessage(bae.getCommand() + " " + bae.getParams());
//dunno which Param i acutally get, seems like random Strings on every new click.
}
So now i need to distinguish between the clicked bubbles.
For instance i want to have the "name" or "id" or some kind of unique identifier writen to the Statusbar when clicked on a bubble.
How to do it?
greetings
Ruven