[EMAIL PROTECTED] wrote:
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 SelectItems directly. Where's the difference?


The page shows this example:

<h:selectOneMenu id="selectCar"
 value="#{carBean.currentCar}">
  <f:selectItems
   value="#{carBean.carList}" />
</h:selectOneMenu>

But where does it say what datatype method getCurrentCar is returning?
I would think it returns String, eg "accord".

And likewise, I would expect setCurrentCar to take a String parameter, which will be one of "accord", "4runner", "nissan-z" depending on what the user chooses.


Regards,

Simon

Reply via email to