1 Reply Latest reply on Mar 4, 2008 10:58 AM by xuantoan2510

    rich:listShuttle with javax.faces.model.SelectItem

    thoemmes86

      Is it possible to use listShuttle with an ArrayList of javax.faces.model.SelectItem. I must use this class because it is used in a userconfig XML file so I cannot change the type.

      In my example there is always a validation exception and i think the problem is, that I cannot overwrite the two methods "equals" and "hashCode".

      Can anybody help me?

        • 1. Re: rich:listShuttle with javax.faces.model.SelectItem

          I think you can use a class that has SelectItem attribute . Then you overwrite the two method "equals" and "hashcode" for this class. Example

          public class ObjWrap implements Serializable{
           SelectItem si;
           .....
           public int hashCode(){}
           public boolean equals(Object obj){}
          
          }
          

          To use ListShuttle you declare an ArrayList of ObjWrap.Hopefully, it can help you.