I'd say that the first thing to check is that your user objects have a
working equals() method.
Ie, make sure that the objects in team.userCollection fulfill
team.getUserSelectItems().contains(userCollection<item>).
Failing that, step through the debugger and see what's going on.
On 3/29/07, Romanowski, Tim <[EMAIL PROTECTED]> wrote:
Hi everyone,
I'm trying to use the SelectManyPicklist component from the sandbox, and I'm
running into exactly the issue that is described at [1]. Basically, I
create an ArrayList of my own User objects, and pass that as the value for
my component as such:
<s:selectManyPickList id="teamMembers" value="#{team.userCollection}">
<f:selectItems value="#{team.userSelectItems}"/>
</s:selectManyPickList>
The "getUserSelectItems" method returns an array of SelectItems, each having
a value equal to a user object, and a label equal to the fullname of the
user.
The problem: when submitting the form containing the Picklist, I get a
validation error "j_id64:teamMembers: Validation Error: Value is not
valid"
What is the correct way to handle this problem, as described in [1]?
Googling shows lots of explanations of the problem, but I haven't found a
solution. I've also tried using t:selectItems, and that causes the same
problem. Any suggestions would be greatly appreciated!
Tim
[1]
http://www.crazysquirrel.com/computing/java/jsf/converter-validation-error.jspx