A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How to create a h:selectOneMenu with a default value?
Mc. Alvin Bautista
Joined: Jul 17, 2006
Aug 04, 2006 17:22:00
Do you have any idea on how to create a dropdown box in jsf with default value? For example I have a list of values:
value = "default"
value = "ABC"
value = "DEF"
Then after setting the list of values, I will populate the dropdown box. What if I have a default value of "DEF" in my dropdown box, how could I display it to be the default value on the dropdown box. Can anyone help me?
Thanks in advance.
Joined: Aug 27, 2002
Aug 07, 2006 07:42:00
is this what you are looking for ?
It is sorta covered in the
JavaRanch Style Guide
subject: How to create a h:selectOneMenu with a default value?
how to populate dropdown box dynamically
Dynamic chnage on List from chnage on DropDown(ComboBox)
Re-posting a JSP page
JSF dropdown components problem
Problem in Reset button.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013