0 Replies Latest reply on Mar 7, 2010 12:19 PM by odelya yomtov

    rich:orderingList selected item is not being saved

    odelya yomtov Novice

      Hi!

      I wrote the following code:

      <h:form>

      <rich:orderingList value="#{compareRunsBean.planList}" var="plan" selection="#{compareRunsBean.selectedPlansSet}">

      <rich:column width="180">

      <f:facet name="header">

      <h:outputText value="Plan Name" />

      </f:facet>

      <h:outputText value="#{plan.name}"></h:outputText>

      </rich:column>

      <a4j:support event="onclick" ignoreDupResponses="true"

      requestDelay="200" action="#{compareRunsBean.takeSelection}"

      reRender="output" immediate="true" />

      <a4j:support event="onkeyup" ignoreDupResponses="true"

      requestDelay="200" action="#{compareRunsBean.takeSelection}"

      reRender="output" immediate="true" />

      </rich:orderingList>

      </h:form>

       

      In my bean i have:

      private Set<Plan> selectedPlansSet = new HashSet<Plan>();

      with gettter and setter.

       

      however,in takeSelection method - selectedPlansSet is null!

       

      Am i missing something?