This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSF and the fly likes Passing param into h:selectOneMenu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Passing param into h:selectOneMenu" Watch "Passing param into h:selectOneMenu" New topic
Author

Passing param into h:selectOneMenu

Hatem Alimam
Ranch Hand

Joined: Dec 14, 2008
Posts: 30
Hello ranchers,

my issue is that i have a select one menu component that takes its selectItems list from
a method in the backing bean, but i was wondering how can i pass a parameter to that
method through JSF.
the final would look something like this:

in jsf page


in the backing bean


am not sure if this the right logic to solve such an issue,

many thanks...


SCJP 5.0, SCWCD 1.4, SCBCD 3.0 with 100 score
Jose Damian Munguia Medina
Greenhorn

Joined: Nov 15, 2009
Posts: 1
Hatem Aliman,

I know you posted a long time ago, but i just run in to this, on jsf 2.0 you can pass attributes on EL. So you can do something like this.

on jsf


on Manage bean method

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing param into h:selectOneMenu
 
Similar Threads
<h:selectOneMenu issue defaulting to specific selectItem
Session scoped bean's listener invoked before request scoped bean's set method
problems with &lt;h:selectOneMenu&gt;
f:selectItems can't set value
Trouble using Map with h:selectOneMenu...