This content has been marked as final.
Show 2 replies
-
1. Re: Dynamic menu with dynamic action
niox.nikospara.yahoo.com Jun 4, 2009 11:54 AM (in response to msantana)Hello,
Indeed, the action attribute expects its EL to evaluate to MethodExpression.
You could handle all the menu actions from a generic method, that will read the item.action attribute itself, and execute the appropriate code based on a mapping.
-
2. Re: Dynamic menu with dynamic action
msantana Jun 4, 2009 2:16 PM (in response to msantana)Thanx guy, but i found the way to that. I simply have to do this:
<rich:menuItem submitMode="ajax" value="#{item.nombre}" action="#{item.getAction()}"/>
Thanx again for your time!