java - Composite Components - send more than one f:setPropertyActionListener jsf2 -


I am trying to create a custom component that receives the link and adds the styling class.

The original link, that user can have f: setPropertyActionListener more than once.

I do not want to make property Action Listener value 1 and Property Actions Listener Tagbag 1 Property Actions ListenerWall 2 PropertyAccellationEnglishTraget2 etc for each.

How can I get it in something like actionsProperties = "name: Daniel: surname: Smith" , where the name and surname represent the name and Daniel and Smith value And in my composite element I can be able to: & lt; F: setPropertyActionListener value = "name" target = "Daniel" /> as to send it?

It may be that the user sends an object as a name, and not only the string

In JSF 2.0 you can use EL recently (2.2), which allows you to pass arguments in ways. Ie

  action = "bean.method ('value2', 'value2')"  

So there is no need for action listeners.


Comments