This content has been marked as final.
Show 2 replies
-
1. Re: custom getters and setters for components?
scorsagg Dec 23, 2009 3:44 PM (in response to vc5)Hi,
I have been looking for something similar and this is what I had found a few weeks back.
http://blogs.nuxeo.com/dev/2007/09/how-to-invoke-method-expressions-with-parameters-in-jsf.html
I think you should override/extend the ValueExpression (EL) to handle parameters in your getter/setter methods.
Hope this helps.
Regards,
Srikanth
-
2. Re: custom getters and setters for components?
shadowcreeper Dec 23, 2009 4:01 PM (in response to vc5)You could try making getMyProperty() return a Map<String, Foo> and use #{MyBean.myProperty['keyName']} or #{MyBean.myProperty[elForPropertyName]}
Your page can use that to both get and set the value in the map for the given key.