• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Passing param into h:selectOneMenu

 
Ranch Hand
Posts: 30
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

reply
    Bookmark Topic Watch Topic
  • New Topic