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!

passing paramater to a getter method via JSF

843842Aug 9 2006 — edited Aug 10 2006
I would like to pass a parameter to my getter method in the backing bean.The code I am using is below:
<h:selectOneMenu id="dateTimeMaskMenu">
		<f:selectItems value="#{userBean.list}" />
		<f:param value="DateMask" />  // is this valid? 
                 // I wud like to pass the String value "DateMask" 
                 // to the method getList(String value) of my backing bean
</h:selectOneMenu>
so in other words my getList() method gives me the list depending on the value I pass it. How do I acheive this? Do I need to set somethings in the managed-beans.xml fime as well? or just pasing parameters thru JSF is good enuf? Also how do I access it in my Bean?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 7 2006
Added on Aug 9 2006
9 comments
108 views