2 Replies Latest reply on Jul 4, 2009 12:50 PM by nbelaevski

    problems with rich:datascroller

    giacomino

      Hi to everybody, I'm a newbie of Jboss tecnologies.
      I'm developing a project that use the rich:datascroll component.
      I have integrated the richfaces-ui-3.2.2.GA.jar library in my developer tool and when i run the application on the server appears the following exception:

      ]] Root cause of ServletException.
      java.lang.NoClassDefFoundError: org/richfaces/taglib/DatascrollerTag
      at jsp_servlet.__untitled3_jspx._jspx___tag16(__untitled3_jspx.java:810)
      at jsp_servlet.__untitled3_jspx._jspx___tag15(__untitled3_jspx.java:777)
      at jsp_servlet.__untitled3_jspx._jspx___tag14(__untitled3_jspx.java:734)
      at jsp_servlet.__untitled3_jspx._jspx___tag6(__untitled3_jspx.java:389)
      at jsp_servlet.__untitled3_jspx._jspx___tag5(__untitled3_jspx.java:343)
      Truncated. see log file for complete stacktrace
      java.lang.ClassNotFoundException: org.richfaces.taglib.DatascrollerTag
      at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
      at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
      at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      Truncated. see log file for complete stacktrace
      >

      I don't understand why the system don't find the taglib DatascrollerTag.
      Can you help me to resolve this my problem? I'm desperate!!!
      Thank's to everybody

      Giacomo

      Ps. I think it's not very important but I'm using the Jdeveloper like developer tool.

        • 1. Re: problems with rich:datascroller
          giacomino

          Ok. it was a problem of library. But now it occurs onother exception:

          -------------------------------------------------------------------
          ]] Root cause of ServletException.
          org.richfaces.component.EnclosingFormRequiredException: class org.richfaces.component.html.HtmlDatascroller (id="j_id_id3") did not find parent form.
          at org.richfaces.component.util.FormUtil.throwEnclFormReqExceptionIfNeed(FormUtil.java:45)
          at org.richfaces.renderkit.html.DatascrollerTemplate.doEncodeEnd(DatascrollerTemplate.java:195)
          at org.richfaces.renderkit.html.DatascrollerTemplate.doEncodeEnd(DatascrollerTemplate.java:682)
          at org.ajax4jsf.renderkit.RendererBase.encodeEnd(RendererBase.java:134)
          at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:850)
          Truncated. see log file for complete stacktrace
          ---------------------------------------------------------------


          There is in the following rows the sample piece of code:

          --------------------------------------------------------------

          <af:form><rich:datascroller for="sampleData" maxPages="10"/>
          <rich:dataTable id="sampleData" value="#{JavaBeatRichfacesBean.employees}" var="loc" rows="10">
          <rich:column>
          <h:outputText value="#{loc.title}"/>
          </rich:column>
          <rich:column>
          <h:outputText value="#{loc.description}"/>
          </rich:column>

          </rich:dataTable>
          </af:form>

          ---------------------------------------------------------
          can anybody help me? Thank's
          Giacomo

          • 2. Re: problems with rich:datascroller
            nbelaevski

            Hi Giacomo,

            Try h:form instead of af:form.