3 Replies Latest reply on Dec 24, 2008 5:39 AM by Ilya Shaikovsky

    pickList with modal panel

    Paul Smith Newbie

      I seem to be having problems getting a rich:pickList to work within a rich:modalPanel. I have stripped out some other code but just left in the bare bones structure of the panels that i'm using. If I debug my code then listOfAddedDogs always contains an empty list. If I remove the modal panel then listOfAddedDogs contains anything I have added using the pickList.

      <h:form id="createNewUserForm">
       <a4j:outputPanel id="myModal">
       <rich:modalPanel>
       <h:panelGrid id="selectedGameShuttlePanel" columns="2"
       columnClasses="top,top">
       <rich:pickList value="{Wizard.listOfAddedDogs}">
       <f:selectItems value="#Wizard.listOfAvailableDogs}" />
       <a4j:support event="onlistchanged" />
       </rich:pickList>
       </h:panelGrid>
       </rich:modalPanel>
       </a4j:outputPanel>
      </h:form>


      Is there a way of using pickLists in modal panels or do I have to use the pickList in a non-modal way?

      Cheers,
      Paul