Re: H:selectOneMenu question

2006-01-13 Thread Mikael Andersson
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

H:selectOneMenu question

2006-01-12 Thread Yixing Ma
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

Re: h:selectOneMenu question

2005-12-08 Thread Kurt Edegger
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

Re: h:selectOneMenu question

2005-12-08 Thread Simon Kitching
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

Re: h:selectOneMenu question

2005-12-08 Thread Simon Kitching
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

Re: h:selectOneMenu question

2005-12-08 Thread Kurt Edegger
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

h:selectOneMenu question

2005-12-07 Thread Kurt Edegger
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

Re: h:selectOneMenu question

2005-12-07 Thread Simon Kitching
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,

Re: h:selectOneMenu question

2005-12-07 Thread mail
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