• 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:

rich:comboBox setting a default value

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Hi,

I need to create a scenario where on a page load the rich:comboBox defaults to a certain string value, sort of the way it would if I were using a selectOneMenu. Or if that is impossible I would need to find a way to edit a selectOneMenu so that it looks like the rich:comboBox, including the skin (deepMarine) we are using. I thought this would be a simple task and yet I can't find any instructions on it. Below is the code I'm currently dealing with:



Any help is greatly appreciated as this issue has been driving me up a wall.

Thanks in advance.
 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Set contractorMBean.userStatusDisplay equal to one of the values in contractorMBean.statusList. That should set a default value when the component is rendered.
 
Adam Greenberg
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for your help
reply
    Bookmark Topic Watch Topic
  • New Topic