[jboss-user] [JBoss Seam] - Error selecting object - SEAM 1.2.1GA

james_hays do-not-reply at jboss.com
Tue Dec 18 15:27:21 EST 2007


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.
anonymous wrote : 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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113953#4113953

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113953



More information about the jboss-user mailing list