Hi,
you could use the style attribute.
style=width:150px;
MickeOn 12/01/06, Yixing Ma [EMAIL PROTECTED] wrote:
Quick question,
How to change the width of a drop down list ?
H:selectOneMenu
I want to set
a fixed width to the drop down list. It trims off the empty spaces
Quick question,
How to change the width of a drop down list ?
H:selectOneMenu
I want to set
a fixed width to the drop down list. It trims off the empty spaces
automatically.
Thanks
Simon,
unfortunately they don't have the sources published directly on this
site but provide the jar file
(http://www.exadel.com/tutorial/jsf/misc/jsftags-guide.jar)
to download.
Let me post the carBean class to show that 'carBean.currentCar' accesses
the SelectItem directly [1]:
public
Kurt Edegger wrote:
Simon,
unfortunately they don't have the sources published directly on this
site but provide the jar file
(http://www.exadel.com/tutorial/jsf/misc/jsftags-guide.jar)
to download.
Let me post the carBean class to show that 'carBean.currentCar' accesses
the SelectItem
Simon Kitching wrote:
Kurt Edegger wrote:
Let me post the carBean class to show that 'carBean.currentCar'
accesses the SelectItem directly [1]:
Hmm..interesting. Thanks for posting that.
However I can't see any Converter class in MyFaces that is capable of
doing String-SelectItem
Hi Simon,
the exadel example jar actually runs without any problems and I don't
see any custom converter configured.
I don't know why this is the case, this was the reason for starting this
thread anyway ;)
I modified my classes to handle Strings in the getter and setters and
now it works.
I
Hi everybody,
I'd like to use a dropdown menu in my jsp page, therefor I added
h:selectOneMenu id=selectModifier value=#{bean.currentItem}
f:selectItems value=#{bean.itemList} /
/h:selectOneMenu
to my page. The bean provides getter and setters for both properties, whereby
currentItem is of
Kurt Edegger wrote:
Hi everybody,
I'd like to use a dropdown menu in my jsp page, therefor I added
h:selectOneMenu id=selectModifier value=#{bean.currentItem}
f:selectItems value=#{bean.itemList} /
/h:selectOneMenu
to my page. The bean provides getter and setters for both properties,
Simon,
thank you for your answer, I modified the getter/setter to handle
SelectItem.getValue().toString() instead of the selectItem itself.
But had you ever the chance to take a look at the jsftags-guide examples
(http://www.exadel.com/tutorial/jsf/jsftags-guide.html)?
They are using the
9 matches
Mail list logo