2 Replies Latest reply on May 2, 2007 5:23 PM by Sergey Smirnov

    <rich:dataTable> Problem with binding value

    blablub blablub Newbie

      hi - i have a dataTable with a subDataTable - code:

      .jsp file:

      <rich:dataTable>
       <f:facet name="header">
       <rich:columnGroup>
       <rich:column>
       <h:outputText value="ID" />
       </rich:column>
       <rich:column>
       <h:outputText value="Describtion" />
       </rich:column>
       <rich:column>
       <h:outputText value="Submit"/>
       </rich:column>
       </rich:columnGroup>
       </f:facet>
       <f:facet name="footer">
      <rich:subTable var="diagnose" value="#{searchBean.al2}" binding="#{searchBean.myDataTable}">
       <rich:column>
       <h:outputText value="#{diagnose.id}"></h:outputText>
       </rich:column>
       <rich:column>
       <h:outputText value="#{diagnose.kurzbeschreibung}"></h:outputText>
       </rich:column>
       <rich:column>
       <h:commandLink action="#{searchBean.download}">
       <h:outputText value="Behandlung" />
       </h:commandLink>
       </rich:column>
       </rich:subTable>
       </f:facet>
       </rich:dataTable>
      


      My Error is now that i get this Exception:

      02.05.2007 12:13:58 org.apache.catalina.core.ApplicationDispatcher invoke
      SCHWER: Servlet.service() for servlet jsp threw exception
      java.lang.IllegalArgumentException
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:615)
       at com.sun.faces.el.PropertyResolverImpl.setValue(PropertyResolverImpl.java:178)
       at com.sun.faces.el.impl.ArraySuffix.setValue(ArraySuffix.java:192)
       at com.sun.faces.el.impl.ComplexValue.setValue(ComplexValue.java:171)
       at com.sun.faces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:234)
       at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:393)
       at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1009)
       at javax.faces.webapp.UIComponentTag.createFacet(UIComponentTag.java:1059)
       at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:740)
       at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:429)
       at org.apache.jsp.patient_jsp._jspx_meth_rich_005fsubTable_005f1(patient_jsp.java:2113)
       at org.apache.jsp.patient_jsp._jspx_meth_f_005ffacet_005f2(patient_jsp.java:2082)
       at org.apache.jsp.patient_jsp._jspx_meth_rich_005fdataTable_005f1(patient_jsp.java:1574)
       at org.apache.jsp.patient_jsp._jspx_meth_h_005fform_005f0(patient_jsp.java:201)
       at org.apache.jsp.patient_jsp._jspx_meth_f_005fview_005f0(patient_jsp.java:140)
       at org.apache.jsp.patient_jsp._jspService(patient_jsp.java:100)
       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
       at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
       at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
       at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
       at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
       at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
       at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
       at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
       at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
       at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
       at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
       at java.lang.Thread.run(Thread.java:799)
      


      This is pointed in the line where i used binding = ""...
      So when i use a normal h:dataTable - binding works correctly - but in rich:dataTable binding doesn't work:/
      Here in this developerguide: http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone/docs/devguide/subTable.html
      is a binding used on rich:DataTable or subTable:/ so is anyone able to help me? sry 4 my english:/

      lg triplex