0 Replies Latest reply on Jun 23, 2009 12:44 PM by camille_wall2000

    Using listShuttle with a4j:support

      I am trying to add an a4j:support onclick event to a listShuttle. Everything seems to work fine until I use the copy button for the first time. Then whenever I click on anything again in the listShuttle I get the following error in my log file.

      Component profileBuilderForm:listShuttleChooseNewProfileItems has invalid value expression null

      Here is my form that is giving me problems.

      <h:form id="profileBuilderForm" styleClass="formNoPadding">
       <a4j:commandButton id="retrievePossibleProfileItemsButton"
       value="#{msg.goButtonLabel}"
       action="#{profileBuilderBean.retrievePossibleProfileItems}"
       disabled="#{profileBuilderBean.working}"
       reRender="profilePanelPhase1"/>
       <hr/>
      
       <h:panelGroup id="profilePanelPhase1" style="#{profileBuilderBean.profilePhase1Style}">
       <h:panelGrid id="orderingGrid" columns="2" columnClasses="leftInfoCol, rightInfoCol">
       <rich:listShuttle id="listShuttleChooseNewProfileItems"
       sourceValue="#{profileBuilderBean.sourceItems}"
       targetValue="#{profileBuilderBean.targetItems}" var="items"
       sourceSelection="#{profileBuilderBean.sourceSelection}"
       sourceListWidth="250" listsHeight="250" targetListWidth="250"
       sourceCaptionLabel="Available Items"
       targetCaptionLabel="Currently Active Items"
       converter="correctedAudioItemConverter"
       fastOrderControlsVisible="false"
       orderControlsVisible="false">
      
       <rich:column>
       <h:outputText id="itemIdValue" value="#{items.itemId}"></h:outputText>
       </rich:column>
       <rich:column>
       <h:outputText id="itemWordCountText" value="#{items.wordCount}"></h:outputText>
       </rich:column>
      
       <a4j:support event="onclick" reRender="profileAddSelectOutput"/>
       </rich:listShuttle>
      
       <rich:panel id="profileAddSelectOutput" header="#{msg.currentSelection}"
       style="display: #{!empty profileBuilderBean.sourceSelection ? '' : 'none'}">
       <h:outputText id="testText" value="Hello I have values"/>
       </rich:panel>
       </h:panelGrid>
       </h:panelGroup>
      </h:form>


      My goal is to make it so when the user choose something on the source side of the listShuttle the details of that item are displayed in a panel to the right of the listShuttle, kinda how the orderingList demo works in the live demo.

      Any help would be appreciated.