8 Replies Latest reply on May 7, 2008 6:40 PM by Madhav Inamti

    listShuttle in a modal panel... broken in 3.2 SR1 ?

    Madhav Inamti Novice

       

      <rich:modalPanel id="addFoo" width="650" height="300">
       <f:facet name="header">
       <h:panelGroup>
       <h:outputText value="Add/Edit Foo"></h:outputText>
       </h:panelGroup>
       </f:facet>
       <f:facet name="controls">
       <h:panelGroup>
       <h:graphicImage value="/img/close.png" style="cursor:pointer" id="hideFooLink"/>
       <rich:componentControl for="addFoo" attachTo="hideFooLink" operation="hide" event="onclick"/>
       </h:panelGroup>
       </f:facet>
       <a:form id="modalContent">
      
       <s:decorate id="existingFooDecoration" template="layout/edit.xhtml">
       <ui:define name="label">#{messages.editfoo}</ui:define>
       <rich:listShuttle sourceValue="#{item.availableFoo}"
       targetValue="#{item.existingFoo}"
       var="fooName" listHeight="300"
       listWidth="300"
       sourceCaptionLabel="Available Foo"
       targetCaptionLabel="Currently Active Foo"
       copyControlLabel="Copy Foo"
       copyAllControlLabel="Copy All Foo"
       removeControlLabel="Remove Foo"
       removeAllControlLabel="Remove All Foo"
       converter="fooConverter">
       <rich:column>
       <h:outputText value="#{fooName.name}"></h:outputText>
       </rich:column>
       </rich:listShuttle>
       </s:decorate>
      
       </a:form>
       </rich:modalPanel>
      



      and the invoking code....

      <a:commandLink reRender="modalContent" oncomplete="Richfaces.showModalPanel('addFoo',{width:650, top:200})">
       <h:outputText value="Add/Edit Foo"/>