This content has been marked as final.
Show 2 replies
-
1. Re: ui example: How to add ajax support for selectItems
nickarls Jan 18, 2008 6:24 AM (in response to jneubert)Override hashcode() and equals() on your entity
-
2. Re: ui example: How to add ajax support for selectItems
jneubert Jan 18, 2008 10:46 AM (in response to jneubert)Thank you for the hint. To Continent.java, I added
public boolean equals(Object obj) { if(obj != null) { return (this.name == ((Continent)obj).getName()); } else return false; } public int hashCode() { return this.name.hashCode(); }
and it works!
To get the continent set and the country rerenderd with invalid input elsewhere - e.g., empty "Roles" - I had to surround the continent block with <a:region>.
Maybe an extended Seam example for this functionality could be useful for other users.