2 Replies Latest reply on Jun 30, 2008 5:58 AM by Pagera

    NoSuchMethodError (Richfaces + myfaces) (may bug)

    Pagera Newbie

      Hello
      im using Richfaces .. buidl 20 june 2008
      and myfaces 1.2.3

      when i used <rich:dataTable> inside my page
      throw an Exception
      i just wondering ist a bug or something wrong

      this is my page

      ...............................

      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
      <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
      <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
      <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
      <HTML>
      <HEAD>
      <title>Greeting Page</title>
      </HEAD>
      
      <body bgcolor="white">
      <f:view>
       <h:form>
       <t:panelLayout style="width:100%" border="1" cellpadding="1"
       cellspacing="1" navigationStyle="width:10%" bodyStyle="width:90%">
       <jsp:include page="/net/pagera/template/header.jsp"></jsp:include>
       <jsp:include page="/net/pagera/template/navigation.jsp"></jsp:include>
      
       <f:facet name="body">
       <rich:panel id="tabPanel_ID" style="height:100%;width:98%"
       header="#{threadBean.topic.topicName}">
      
       <rich:dataTable var="thread" value="#{threadBean.threadz}" frame="border">
       <f:facet name="header">
       <h:outputText value="#{threadBean.topic.topicName}" />
       </f:facet>
       <t:column >
       <f:facet name="header">Thread Address
       </f:facet>
       <h:outputText value="#{thread.threadName}" />
       </t:column>
      
       <t:column>
       <f:facet name="header">
       Thread Writer
       </f:facet>
       <h:outputText value="#{thread.userName}" />
      
       </t:column>
      
       <t:column>
       <f:facet name="header">
       Reply
       </f:facet>
       <h:outputText value="#{thread.threadReplyCount}" />
      
       </t:column>
      
       <t:column>
       <f:facet name="header">
       View
       </f:facet>
       <h:outputText value="#{thread.threadView}" />
      
       </t:column>
      
       </rich:dataTable>
      
       </rich:panel>
       </f:facet>
      
       <jsp:include page="/net/pagera/template/footer.jsp"></jsp:include>
       </t:panelLayout>
       </h:form>
      
      </f:view>
      </body>
      </HTML>
      


      .............................
      and this what throws

      SEVERE: Servlet.service() for servlet Faces Servlet threw exception
      java.lang.NoSuchMethodError: org.richfaces.model.ModifiableModel.<init>(Lorg/aja
      x4jsf/model/ExtendedDataModel;Ljava/lang/String;Ljava/util/List;Ljava/util/List;
      )V
       at org.richfaces.component.UIDataTable.createDataModel(UIDataTable.java:124)
       at org.ajax4jsf.component.UIDataAdaptor.getExtendedDataModel(UIDataAdaptor.java
      :622)
       at org.ajax4jsf.component.UIDataAdaptor.setRowKey(UIDataAdaptor.java:340)
       at org.richfaces.renderkit.AbstractTableRenderer.encodeTableStructure(AbstractT
      ableRenderer.java:73)
       at org.richfaces.renderkit.html.DataTableRenderer.doEncodeBegin(DataTableRender
      er.java:206)
       at org.richfaces.renderkit.html.DataTableRenderer.doEncodeBegin(DataTableRender
      er.java:194)
       at org.ajax4jsf.renderkit.RendererBase.encodeBegin(RendererBase.java:101)
       at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:579)
       at javax.faces.component.UIData.encodeBegin(UIData.java:510)
       at org.ajax4jsf.component.UIDataAdaptor.encodeBegin(UIDataAdaptor.java:1221)
       at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:280)
       at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
       at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.ja
      va:220)
       at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.ja
      va:215)
       at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:121)
       at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:59
      4)
       at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(Rende
      rerUtils.java:414)
       at org.apache.myfaces.custom.layout.HtmlLayoutRenderer.renderTableCell(HtmlLayo
      utRenderer.java:262)
       at org.apache.myfaces.custom.layout.HtmlLayoutRenderer.renderClassic(HtmlLayout
      Renderer.java:121)
       at org.apache.myfaces.custom.layout.HtmlLayoutRenderer.encodeEnd(HtmlLayoutRend
      erer.java:69)
       at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:607)
       at javax.faces.component.UIComponent.encodeAll(UIComponent.java:250)
       at javax.faces.component.UIComponent.encodeAll(UIComponent.java:246)
       at javax.faces.component.UIComponent.encodeAll(UIComponent.java:246)
       at org.apache.myfaces.application.jsp.JspViewHandlerImpl.actuallyRenderView(Jsp
      ViewHandlerImpl.java:424)
       at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHand
      lerImpl.java:380)
       at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.ja
      va:108)
       at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:190
      )
       at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseEx
      ecutor.java:41)
       at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
      FilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
      ain.java:206)
       at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.
      java:147)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
      FilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
      ain.java:206)
       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
       at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
       at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.jav
      a:366)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
      FilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
      ain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
      va:233)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
      va:175)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128
      )
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102
      )
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
      :109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http
      11Protocol.java:583)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Unknown Source)
      
      


      ................

      Note : when i used <t:datatable> its work fine
      but i wanna use <rich:dataTable>
      ..........
      thank for help...