2 Replies Latest reply on Jul 23, 2010 4:59 PM by fjkjava.febinjk.gmail.com

    How to use selectBooleanCheckbox

    fjkjava.febinjk.gmail.com

      Hi All,


      I am trying to use selectBooleanCheckbox  in my DataTable. I wrote code like this


      //In My SessionBean
      @Out(required=false)
      private Map<String, Boolean> selectedPo = new HashMap<String, Boolean>();
      
      //xhtml
      
      <rich:column>
      <h:selectBooleanCheckbox value="#{myManager.selectedPo[po.id.poNum]}"  />
      </rich:column>
      
      <h:commandButton action="#{myManager.send}" value="Send"/>
      
      


      And when i check selectedPo in send Method it is Null there(NullPointerException)


      Anybody knows the problem here.


      Advance thanks for you help