0 Replies Latest reply on Feb 2, 2012 2:36 PM by sv kap

    checkbox + value + ajax

    sv kap Newbie

      Hi.

       

      I have some problems with checkbox ajax calls. The following code does not work:

       

      <h:selectBooleanCheckbox styleClass="checkbox" 
          value="#{bean.getMembers().containsKey(m.getId())}" >
          <f:ajax event="click" listener="#{bean.selectMember(m)}" />
      </h:selectBooleanCheckbox>
      

       

      However, if I leave it like that ajax works and bean.selectMember(m) is called:

       

      <h:selectBooleanCheckbox styleClass="checkbox" >

          <f:ajax event="click" listener="#{bean.selectMember(m)}" />

      </h:selectBooleanCheckbox>

       

      Has anyone encountered such problems?