This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes JSF and the fly likes How to control the length of  <selectonemenu  while while data is coming from database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How to control the length of  <selectonemenu  while while data is coming from database" Watch "How to control the length of  <selectonemenu  while while data is coming from database" New topic
Author

How to control the length of <selectonemenu while while data is coming from database

tej ku
Greenhorn

Joined: Mar 13, 2010
Posts: 19
How to make size of dropdownlist uniform while data is coming from database
PLEASE CHECK the ATTACHMENT to see how it appears on screen. Any help will be appreciated




[Download dropdownlist.bmp] Download

Pradeep Katipamula
Ranch Hand

Joined: May 11, 2010
Posts: 37
It is recommended to UseCodeTags. It gives better readability.

Thanks,
Pradeep
Pradeep Katipamula
Ranch Hand

Joined: May 11, 2010
Posts: 37
Now coming to your problem. I could not understand your problem. Do you want to control the width of the select list or control the width of the items in the select list.

Anyways if its the first one that you are looking out for, then here is the link to control the width of select list.

If its not the one, kindly elaborate.

Pradeep
tej ku
Greenhorn

Joined: Mar 13, 2010
Posts: 19
please check the attachment........I want to control the width of the <h:selectOneMenu to make it uniform.
tej ku
Greenhorn

Joined: Mar 13, 2010
Posts: 19
style="width:150px;" attribute is the solution. It is working now...........
Pradeep Katipamula
Ranch Hand

Joined: May 11, 2010
Posts: 37
Ah.. Good.
 
Don't get me started about those stupid light bulbs.
 
subject: How to control the length of <selectonemenu while while data is coming from database
 
It's not a secret anymore!