7 Replies Latest reply on Mar 10, 2010 6:51 AM by brendan Richards

    How to get Multiple selected CheckBox's Value?

    Sachin Parnami Newbie
      Hi All,

      I am trying to get selected check box's value(multiple)


      JSF View.............

      <h:dataTable value="#{forward}" var="phone">
      <h:column>
      <h:selectBooleanCheckbox value="#{deleteSelections[phone]}" />
      </h:column>

      Maping in Action.........

      @Out(scope=ScopeType.CONVERSATION, required=false)
          Map<Forward, Boolean> deleteSelections;
      deleteSelections = new HashMap<Forward , Boolean>();

      And when i am trying to retrieve the value its getting Null for selected checkBox's....
      for (Forward phoneAddress : forward)
      {
                     
               System.out.println(deleteSelections.get(phoneAddress));     
      }

      Any Idea what's wrong with my code?