webtier@glassfish.java.net

Re: [webtier] JSF2 Nightly Build - s:selectItens not working?

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Wed, 01 Apr 2009 09:32:42 -0700

On 3/31/09 6:51 AM, webtier_at_javadesktop.org wrote:
> I thought that the s:selectItem in JSF2 supports collections of objects, not only SelectItens, but mine is not working as expected:
>
> <h:selectOneMenu id="cidade" value="#{crudTeste.pessoa.cidade}">
> <f:selectItems value="#{crudTeste.cidades}" var="item" itemLabel="#{item.nome}" itemValue="#{item}"/>
> </h:selectOneMenu>
>
> My backing-bean is with the ViewScope, and i get the following error when i try to submit the form:
>
> "Conversion Error setting value 'org.jsf2sample.entity.Cidade_at_28c5419f' for 'null Converter'."
>
> Am I doing something wrong?
>
Regardless of the f:selectItems simplification, you'll still need a
converter to convert the submitted value
to the model type.
> Thks in advance,
>
> Israel
> [Message sent by forum member 'israelbgf' (israelbgf)]
>
> http://forums.java.net/jive/thread.jspa?messageID=339851
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>