[jboss-user] [JBoss Seam] - Re: Using s:selectItems with a list of entities

2007-03-02 Thread petemuir
This is fixed in 1.2.0 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4024665#4024665 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4024665 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: Using s:selectItems with a list of entities

2007-02-28 Thread pgmjsd
Here's the view code: |h:selectOneMenu id=theSelect value=#{myBean.selectedUser} | s:selectItems value=#{myBean.users} var=user |noSelectionLabel=Select a user... label=#{user.name}/ | ec:convertEntity/ |

[jboss-user] [JBoss Seam] - Re: Using s:selectItems with a list of entities

2007-02-28 Thread pgmjsd
So anyway... the end behavior is that I get: Invalid selection. Selected item cannot be loaded from persistence context When the form is submitted because the value in the option is the toString() of the User entity, which the EntityConverter doesn't understand. View the original post :

[jboss-user] [JBoss Seam] - Re: Using s:selectItems with a list of entities

2007-02-28 Thread pgmjsd
Okay, this looks like some sort of incompatibility with s:selectItems and ec:entityConverter. The NoSelectionConverter is effectively overriding the EntityConverter in the ConverterChain. I was able to work around the problem by using my own bean that generates SelectIems with labels and