I feel a little dumb: I am using Primefaces on Tomcat 7 and would like to use those fancy new EL expressions to reduce some code clutter. I figured out how to do this in datatables but I can’t get it to work otuside recurring structures which have those handy var attributes. How would I declare the EL parameter for grantRole(String) to be the value of the inputText?
<h:panelGrid columns="3">
<h:outputText value="Name" />
<p:inputText/>
<p:commandButton value="Add" update="associatedPlayers"
action="#{permissionRoleDetailBean.grantRole(associatePlayerName)}" />
</h:panelGrid>
You could do so:
However, this makes no sense. The normal approach is the following:
with