I was wondering if t:selectItems could be enhanced to work without a
converter because it has the list of all the domain objects.

My code is similar to this:
<h:selectOneMenu value="#{order.carPart}">
   <t:selectItems value="#{carParts}" var="part" itemValue="#{part}"
itemLabel="#{part.name}" /> 
</h:selectOneMenu>

public class Order {
   private CarPart carPart;
   ...
}

t:selectItems automatically generates SelectItem objects for us but it would
be nice if it also allowed objects to be assigned to the actual
selectOneMenu e.g. order.carPart value without requiring a Converter.  Is it
possible?

I tried and get a null Converter error.

Thanks

Martin
-- 
View this message in context: 
http://www.nabble.com/t%3AselectItems-still-seems-to-need-a-converter-tp19411254p19411254.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to