6 Replies Latest reply on Dec 22, 2007 1:36 PM by james_hays

    Error selecting object - SEAM 1.2.1GA

    james_hays

      I'm using SEAM 1.2.1GA and have all of a sudden run into random errors selecting objects out of a drop down list. It doesn't have all the time and seems very random.

      I've attempted to enhance the equals() method and the hashcode, but nothing seems to matter in that regard. When I debug the EntityConverter, the key associated with the object is incorrect. You can see this from the error message as well.

      ERROR [EntityConverter] Cannot load entity (com.ball.lcgm.entity.User with id org.jboss.seam.ui.NoSelectionConverter.noSelectionValue) from persistence context


      I mainly see this when my dropdown list is populated from an ajax call, but I've also seen this error when selecting from a selectManyCheckbox:

      <h:selectManyCheckbox value="#{manageOwners.ownersToRemove}" layout="pageDirection">
       <s:selectItems value="#{profileRecord.owners}" var="user" label="#{user.fullName}"/>
       <s:convertEntity/>
      </h:selectManyCheckbox>
      <h:commandButton action="#{manageOwners.removeOwners}" value="Remove Owners"/>
      


      The error quoted above is directly from the specified code. As you can see, there is no mention of noSelectionValue.

      Any help would be appreciated. I've read before to upgrade to the latest in CVS, but that is not an option at the moment. We do have a JBoss support agreement and if needed, I can escalate it there.

      Thanks,

      James