4 Replies Latest reply on Apr 27, 2010 1:50 AM by Sunay Shah

    ListShuttle - and SelectItem

    Sunay Shah Apprentice

      Hello All,

       

      Can i pass the List of select Item to <rich:listShuttl> 's sourceValue and targetValue. If answer is converter then i created conveter class

       

       

       

      public Object getAsObject(FacesContext context, UIComponent component,

      String value) {

      SelectItem selectItem =

      new SelectItem();

      selectItem.setLabel(value);

      selectItem.setValue(value);

       

      return selectItem;

      }

       

       

      public String getAsString(FacesContext context, UIComponent component,

      Object value) {

      SelectItem selectItem = (SelectItem)value;

      return selectItem.getLabel(); 

      }

       

       

      but in list shuttle i m getting the object of SelectItem ?

       

       

      Any help would be appriciable..

       

      I need selectItem's list becuase i want to enable and disable select item in the list. My Intention is make grouping in the <rich:ListShuttle> like

       

      User

      ----------------------

      abc

      xyz

      Groups

      ----------------

      GroupA

      GroupB

      GroupC

       

      I don't want that user can allow User ang Groups Title

       

       

      Thanks

      Sunay

       

      Thanks

      Sunay