File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to control the length of <selectonemenu while while data is coming from database