3 Replies Latest reply on Jun 1, 2009 3:43 AM by Nick Belaevski

    a4j:support, selectOneMenu and Complex Type: throwing Valida

    Anton Gavazuk Newbie

      Hi all,

      I have a problem with selectOneMenu component, when I switching the items in selectBox I get the validation error for selectOneMenu component and cannot understand why

       <h:selectOneMenu id="in_type" value="#{bean.type}"
       required="true"
       requiredMessage="type is required">
       <f:selectItems value="#{bean.types}"/>
       <f:converter converterId="typeConverter"/>
       <a4j:support event="onchange" reRender="outtext"/>
       </h:selectOneMenu>
      

      bean.type - its complext Java object, a converter gets the id and returns the complext type object, it works fine and doesnt throw anything,
      so I'm confused what could throw a validation exception.

      When I change the type bean.type to Long - it works fine.

      What could it be?

      Environment: RichFaces 3.3.1 GA, MyFaces 1.2.6, Jboss 4.2.3

      Cheers.