2 Replies Latest reply on Jul 23, 2010 4:59 PM by Fabin Riako

    How to use selectBooleanCheckbox

    Fabin Riako Newbie

      Hi All,

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

      //In My SessionBean
      private Map<String, Boolean> selectedPo = new HashMap<String, Boolean>();
      <h:selectBooleanCheckbox value="#{myManager.selectedPo[po.id.poNum]}"  />
      <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