incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Koci <Martin.K...@aura.cz>
Subject Re: Converter "javax.faces.Long" never called for af:selectOneChoice
Date Tue, 27 Jun 2006 06:16:34 GMT
Thanks Adam,

now it works fine. Attribute valuePassThru="false" is a excellent
feature, it will solve many issues with custom object converters.

Martin

Adam Winer píše v Po 26. 06. 2006 v 11:03 -0700:
> Yes, it's the expected behavior.  By default, we don't send
> values of selectItems to the client - just indices.  If you
> really want the values, then set passthru="true" on the
> selectOne/selectMany.
> 
> Among the advantages of the indexed values approach
> is that you don't need a converter, and can therefore trivially
> use complex objects as values of selectItems.
> 
> -- Adam
> 
> 
> 
> On 6/26/06, Martin Koci <Martin.Koci@aura.cz> wrote:
> > I have simple form:
> > <h:form>
> > <af:selectOneChoice id="idSubComitee"
> > value="#{s012modelId.publicationWGBlockModel.insertDto.idSubComitee}">
> >         <f:converter converterId="javax.faces.Long"/>
> >         <f:selectItems value="#{comiteeciselnik.selectItems}" />
> > </af:selectOneChoice>
> >
> > <af:commandButton text="OK"/>
> > </h:form>
> >
> > But instance of org.apache.myfaces.adfinternal.convert.LongConverter or
> > javax.faces.convert.LongConverter is never called after clicking OK
> > button.  h:selectOneMenu works fine in same case.
> >
> > Is that expected behavior?
> >
> > Thanks,
> >
> > Martin
> >
> >
> >
> >
> >
> >
> 


Mime
View raw message