2 Replies Latest reply on Mar 27, 2008 10:10 PM by Elaine Chen

    convertEntity throwning Argument error

    Elaine Chen Newbie

      I used eclipse with Seam 2.0.0.GA and JBoss AS 4.2.2 and entity generated my code.  Tried to use S:convertEntity for a dropdown and received this error.  Could somebody help me with this issue?



      Argument Error: An option for component prodxxx was not an instance of javax.faces.model.SelectItem. Type found: java.util.ArrayList.

      <ui:define name="value1" required="true">
              <h:selectOneMenu id="prodxxx" required="true" value="#{projectHome.instance.product}">
                  <f:selectItems value="#{productList.resultList}" var="product"
                              label="#{productList.product.prodSdescrip}"
                                      noSelectionLabel="Select..."/>
                  <s:convertEntity /> 
              </h:selectOneMenu>
              <a:support event="onblur" reRender="productDecoration" bypassUpdates="true" ajaxSingle="true"/>
      </ui:define>