[jboss-user] [JBoss Seam] - Re: ui example: How to add ajax support for selectItems

jneubert do-not-reply at jboss.com
Fri Jan 18 10:46:06 EST 2008


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.


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

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



More information about the jboss-user mailing list