1 Reply Latest reply on Feb 15, 2010 7:41 AM by Ilya Shaikovsky

    NullPointerException AbstractExtendedTableRenderer

    Eugene Bessel Newbie

      hello all,

       

      I implemented extendedDataTable like in example

      http://livedemo.exadel.com/richfaces-demo/richfaces/extendedDataTable.jsf?c=extendedDataTable&tab=usage

       

      it works very well.

       

      but if I click on header of column and try to group the data I get following error message:

      javax.servlet.ServletException
           javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
           org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
           org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
           org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
           org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)

      root cause

      java.lang.NullPointerException
           org.richfaces.renderkit.AbstractExtendedTableRenderer.doDecode(AbstractExtendedTableRenderer.java:1255)
           org.ajax4jsf.renderkit.RendererBase.decode(RendererBase.java:75)
           javax.faces.component.UIComponentBase.decode(UIComponentBase.java:789)
           org.ajax4jsf.component.UIDataAdaptorBase.processDecodes(UIDataAdaptorBase.java:1164)
           org.ajax4jsf.component.UIDataAdaptorBase.processDecodes(UIDataAdaptorBase.java:1173)
           javax.faces.component.UIForm.processDecodes(UIForm.java:208)
           org.ajax4jsf.component.AjaxViewRoot$1.invokeContextCallback(AjaxViewRoot.java:400)
           org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:240)
           org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:417)
           com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
           com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
           com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
           javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
           org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
           org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
           org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
           org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)

      after I sort one column, the group functionality works fine.

      can anybody help me?

      thank you.

           <rich:extendedDataTable value="#{searchModul.columnData}" var="data"
                     width="300px" height="300px" sortMode="single" selectionMode="single"
                     tableState="#{searchModul.tableState}" selection="#{searchModul.selection}">>
                      <f:facet name="header">
                           <h:outputText value="#{searchModul.tableHeader}"></h:outputText>
                      </f:facet>
                           <rich:columns id="col_#{col}" value="#{searchModul.columns}"
                           var="col" index="ind"
                           filterBy="#{data[ind]}" filterEvent="onkeyup" sortBy="#{data[ind]}"
                           sortOrder="#{dataTableStateHolder.sortOrders[col]}"
                          filterValue="#{dataTableStateHolder.columnFilterValues[col]}">
                         
                          <f:facet name="header"> 
                       <h:outputText value="#{col}"/> 
                   </f:facet> 
                   <h:outputText value="#{data[ind]}"></h:outputText>
                     </rich:columns>
                     </rich:extendedDataTable>