This week's book giveaway is in the Python forum.
We're giving away four copies of Python Continuous Integration and Delivery and have Moritz Lenz on-line!
See this thread for details.
Win a copy of Python Continuous Integration and Delivery this week in the Python forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

selectOneMenu width  RSS feed

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
�Is it possible to change selectOneMenu size so it fits other components in a form? Just for visual appeareance.

Thanks in advance.
 
Rafa de Castro
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stupid me.

Just using CSS.
 
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add outputtext with blank value and set the style of the outputext

<h:outputText value="" style="width:100px" />

Hope it helps !!

Thanks,
[ August 23, 2006: Message edited by: Rajeev Ravindran ]
 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I moved it to here
[ September 21, 2006: Message edited by: Joe Jose ]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have similar question like this. I want to reduce the width of selectItems from selectOneMenu. Here i can control the width of selectOneMenu box but unable to reduce the width of <f:selectItems> where my all items are coming from DB.
Most important point is here items value length can increase but items width will not impact if length will increase.

Can anyone help on this.

Thanks & Regards
Sailendra Narayan Jena
Sample.jpg
[Thumbnail for Sample.jpg]
Requirement sample
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!