JSF Backing bean / JSP interaction questions
843842Jan 27 2006 — edited Jul 13 2007A few questions about JSF beans and JSP page interactions. Bear in mind that I'm new to both JSP and JSF, so a solution that might be obvious to the rest of the world may be new to me.
1. Can I pass a parameter to the backing bean method from an "action" attribute:
<h:commandLink action="#{TableData.SortRec}">
<h:outputText value="#{msgs.selectedHeader}"/>
</h:commandLink>
I'd like to call the same method from several controls, but pass it a parameter to determine which field to sort on.
2) Is there a way for a backing bean method to determine which control invoked it?
3) Is there a way to access JSF backing bean methods from JSP tags. I'd like to do some conditional page assembly based on a JSF bean property... JSF doesn't appear to have a conditional like JSP's <c:if>, but I could use JSP's if it could access the JSF bean.