0 Replies Latest reply on Apr 21, 2008 3:29 PM by Michal Malczewski

    listShuttle and checkbox column ?

    Michal Malczewski Newbie

      Hi there,

      I wanted to use listShuttle to create some kind of configuration file. Each entry have it's position and additionaly two boolean properties. With a listShuttle positions are obtained correctly, but the additional properties not.

      I've made a short debugging and found the reason. getAsString method of my converter is called only once, during populating items in the listShuttle. Is it proper behavior?
      Should I call some JS action when checkbox is clicked (in order to update corresponding item)?

      This is my listShuttle code:

      <rich:listShuttle id="listShuttle"
       sourceValue="#{MXASSETServiceBean.displayConfiguration.MBODetailedFields}"
       targetValue="#{MXASSETServiceBean.displayConfiguration.selectedMBOFields}"
       var="field" targetListWidth="300" sourceListWidth="300" listsHeight="500"
       converter="converters.MBOField">
       <rich:column id="column1">
       <f:facet name="header">
       <h:outputText value="Field name" />
       </f:facet>
       <h:outputText value="#{field.wsName}" />
       </rich:column>
       <rich:column id="column2">
       <f:facet name="header">
       <h:outputText value="Required?" />
       </f:facet>
       <h:selectBooleanCheckbox value="#{field.required}" />
       </rich:column>
       <rich:column id="column3">
       <f:facet name="header">
       <h:outputText value="In Overview?" />
       </f:facet>
       <h:selectBooleanCheckbox value="#{field.overview}" />
       </rich:column>
      </rich:listShuttle>
      


      Any suggestions?