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 <[EMAIL PROTECTED]> 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






Reply via email to