3 Replies Latest reply on Jun 2, 2009 7:21 AM by ilya_shaikovsky

    richfaces List Shuttle problem

      Hi,
      Im facing some issues in List Shuttle.
      my List shuttle is defined in jsf as:

      <rich:listShuttle id="componentListShuttle" binding="#{RoleComponent.componentListShuttle}"
      sourceValue="#{RoleComponent.availableItems}" targetValue="#{RoleComponent.selectedItems}"
      var="items" converter="#{RoleComponentConverter}"
      sourceCaptionLabel="#{dbsLabel.availableItems}" targetCaptionLabel="#{dbsLabel.selectedItems}"
      rowKeyVar="row" targetSelection="#{RoleComponent.keys}">

      <rich:column id="col1">
      <h:outputText value="#{items.clCompId}" >
      </h:outputText>
      </rich:column>

      <rich:column id="col2">
      <h:outputText value="#{items.clCompDesc}" />
      </rich:column>

      <rich:column id="col3">
      <h:panelGrid columns="2" width="30" cellspacing="5" styleClass="defPanel" >
      <h:selectBooleanCheckbox id="updateChkBox" binding="#{RoleComponent.updateChkBox}" value="#{RoleComponent.update}" />
      <h:outputText value="#{dbsLabel.update}" />
      <h:selectBooleanCheckbox id="deleteChkBox" binding="#{RoleComponent.deleteChkBox}" value="#{RoleComponent.delete}" />
      <h:outputText value="#{dbsLabel.delete}" />
      <h:selectBooleanCheckbox id="createChkBox" binding="#{RoleComponent.createChkBox}" value="#{RoleComponent.create}" />
      <h:outputText value="#{dbsLabel.create}" />
      <h:selectBooleanCheckbox id="enquiryChkBox" binding="#{RoleComponent.enquiryChkBox}" value="#{RoleComponent.enquiry}" />
      <h:outputText value="#{dbsLabel.enquiry}" />
      <a4j:support event="oncomplete" action="#{RoleComponent.print}" />
      </h:panelGrid>
      </rich:column>

      </rich:listShuttle>

      as u can see there is a oanel grid with 4 check boxes as one of the columns of the list shuttle but they are not part the the source or taget list.i i need to check some check boxes n store the value for each row of list shuttle.

      How can i retrieve the values along with the checkboxes from the list shuttle?Kindly help me.