5 Replies Latest reply on Feb 19, 2008 11:11 AM by xuantoan2510

    list shuttle with dynamic source list

    seammm

      hi - i am trying to implement a drill down mechanism for the source list.

      in order to do that i handle the dblclick as follows and try to get the selection.

      ------------------------------------------------------------
      <rich:listShuttle id="sourceOrganization"
      sourceValue="#{productHome.organizationSourceList}"
      targetValue="#{productHome.organizationTargetList}"
      sourceSelection="#{productHome.organizationSourceSelection}"
      var="organization"
      listHeight="300"
      listWidth="300"
      sourceCaptionLabel="All Organizations"
      targetCaptionLabel="Selected Organizations"
      converter="organizationConverter">

      <rich:column>
      #{organization.name}
      </rich:column>

      <a4j:support event="ondblclick" reRender="sourceOrganization"/>
      </rich:listShuttle>


      and i try to get the size of selection as follows.. once i get the source selection, and determine that it is a drillable category, i will refresh the source list, however size() always returns 0..

      i will appreciate any help.. thanks.

      public List getOrganizationSourceList()
      {
      try
      {
      log.info("ORGANIZATION GET SOURCE LIST CALLED WITH " + getOrganizationSourceSelection().size());
      }
      catch (Exception e) {}

      return organizationSourceList;
      }