0 Replies Latest reply on Feb 23, 2012 4:12 AM by pacman80

    SelectBooleanCheckbox problem

    pacman80

      Hello,

       

      Im using Richfaces 3.1 and jsf 1.1 and i'm having problems with <h:selectBooleanCheckbox> component.

       

       

      <rich:dataTable id="myTable"  value="#{myData.arrayData}" var="aData">

       

       

                                    <h:column id="myColumn">

                                      <f:facet name="header">

                                          <h:outputText value="Select" id="headerSelect"></h:outputText>

                                      </f:facet>

       

                                     <a4j:region>   

                                         <h:selectBooleanCheckbox

                                              id="checkboxRow" value="#{aData.select}">

                                         </h:selectBooleanCheckbox>

                                     </a4j:region>

       

                                  </h:column>

       

      </rich:dataTable>

       

       

      In a dataTable, this returns me a list of records successfully, like :

       

      column1          column2

      (checkbox)      (data)

      .....

       

      It returns me 10 records per page. When i select the last record (selecting checkbox) it throws an error :

       

       

      An Error Occurred:

      Exception while setting value for expression : #{aData.select} of component...

       

      Caused by:

      javax.faces.el.PropertyNotFoundException - Base is null: aData

       

      This happens on each page's last record. No problem with other records.

       

      And this is the stacktrace :

       

      javax.faces.FacesException: Exception while setting value for expression : #{aData.select} of component

       

      at javax.faces.component.UIInput.queueExceptionInRequest(UIInput.java:311)
      at javax.faces.component.UIInput.updateModel(UIInput.java:292)
      at javax.faces.component.UIInput.processUpdates(UIInput.java:215)
      at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:815)
      at org.ajax4jsf.component.AjaxViewRoot$2.invoke(AjaxViewRoot.java:287)

      ........

       

      Googled, checked out lots of web sites, but couldnt find any solution.

       

      Thank you.