0 Replies Latest reply on Nov 1, 2010 8:31 AM by Mette Hummel

    RichFaces 4 Milestone 3 Facet over two rows does not work with extendedDataTable

    Mette Hummel Newbie

      I'm using RichFaces4 Milestone 3. I'm trying to split the heading over two rows. It works fine with dataTable, but if I change it to extendedDataTable I get an error-message (see below).

       

      Mette

       

       

      <?xml version= "1.0" encoding= "ISO-8859-1"?>

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

      <html xmlns= " http://www.w3.org/1999/xhtml "

              xmlns:ui= " http://java.sun.com/jsf/facelets"

              xmlns:h="http://java.sun.com/jsf/html"

              xmlns:f="http://java.sun.com/jsf/core"

              xmlns:a4j="http://richfaces.org/a4j"

              xmlns:rich="http://richfaces.org/rich">

      <h:head>

      </h:head>

      <h:body>

              <h:form id="form">

                      <f:view>

                              <rich:extendedDataTable

                                      value="#{ltoKodeBean.gldDataModel}" var="linje" id="gkbeTabell"

                                      selection="#{ltoKodeBean.selection}"

                                      selectedClass="valgtRadStyle">

                                      <f:facet name="header">

                                              <rich:columnGroup>

                                                      <rich:column rowspan="2">

                                                              <h:outputText value="Oppgavekode" />

                                                      </rich:column>

                                                      <rich:column colspan="1">

                                                              <h:outputText value="Feltnr." />

                                                      </rich:column>

                                                      <rich:column breakRowBefore="true">

                                                              <h:outputText

                                                                      value="test" />

                                                      </rich:column>

                                              </rich:columnGroup>

                                      </f:facet>

                                      <rich:column id="inntektsaar">

                                              <h:outputText value="#{linje.id.inarInntektsaar}" />

                                      </rich:column>

                                      <rich:column id="kode" value="#{linje.id.kode}">

                                              <h:outputText value="#{linje.id.kode}" />

                                      </rich:column>

                              </rich:extendedDataTable>

                      </f:view>

              </h:form>

      </h:body>

      </html>

       

       

       

      java.lang.NullPointerException: Argument Error: Parameter name is null

              at com.sun.faces.renderkit.html_basic.HtmlResponseWriter.startElement(HtmlResponseWriter.java:596)

              at org.openfaces.component.validation.ValidationSupportResponseWriter.startElement(ValidationSupportResponseWriter.java:146)

              at org.richfaces.renderkit.AbstractTableBaseRenderer.encodeColumnStart(AbstractTableBaseRenderer.java:86)

              at org.richfaces.renderkit.AbstractTableBaseRenderer.encodeColumn(AbstractTableBaseRenderer.java:77)

              at org.richfaces.renderkit.ColumnGroupRenderer.encodeRow(ColumnGroupRenderer.java:57)

              at org.richfaces.renderkit.AbstractRowsRenderer.process(AbstractRowsRenderer.java:62)

              at org.richfaces.component.AbstractColumnGroup.walk(AbstractColumnGroup.java:69)

              at org.richfaces.renderkit.AbstractRowsRenderer.encodeRows(AbstractRowsRenderer.java:72)

              at org.richfaces.renderkit.AbstractRowsRenderer.processRows(AbstractRowsRenderer.java:80)

              at org.richfaces.renderkit.AbstractRowsRenderer.doEncodeChildren(AbstractRowsRenderer.java:98)

              at org.richfaces.renderkit.RendererBase.encodeChildren(RendererBase.java:158)

              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613)

              at org.richfaces.renderkit.ExtendedDataTableRenderer.encodeHeader(ExtendedDataTableRenderer.java:348)

              at org.richfaces.renderkit.ExtendedDataTableRenderer.doEncodeChildren(ExtendedDataTableRenderer.java:600)

              at org.richfaces.renderkit.RendererBase.encodeChildren(RendererBase.java:158)

              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613)

              at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)

              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616)

              at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:380)

              at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126)

              at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)

              at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127)

              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

              at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)

              at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)

              at no.skd.sl.view.common.filter.LoginFilter.doFilter(LoginFilter.java:78)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)

              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)

              at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)

              at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)

              at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332)

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)

              at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)

              at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)

              at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)

              at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)

              at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)

              at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)

              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)

              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)

              at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)

              at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)

              at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)

              at com.sun.grizzly.ContextTask.run(ContextTask.java:69)

              at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)

              at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)

              at java.lang.Thread.run(Thread.java:619)