Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSF Backing bean / JSP interaction questions

843842Jan 27 2006 — edited Jul 13 2007
A 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 10 2007
Added on Jan 27 2006
19 comments
599 views