Dynamic Action in JSF page
I have a JSF page. My CommandButton action method value is dependent on the bean variable value. Example: Bean headerBean has varaible actionValue with value "someBean.doAction1()" When I use , It says headerBean.actionValue is not a method which is right. How can I get the action value as "someBean.doAction1" instead of headerBean.actionValue. Thanks, BalusC You can use the brace notation for that. <h:commandButton value="submit" action="#{someBean[headerBean.actionValue]}" /> When the #{headerBean.actionValue} returns a String of for example doAction1 , then this will effectively invoke #