3 Replies Latest reply on Jan 27, 2011 4:22 PM by ilya40umov

    editor and combobox not found in netbeans

    oortdg

      Hello,

       

      Sinds i've got problems with eclipse i've tryed to setup a richfaces project in Netbeans. I've created a maven web project and add the dependicies for richfaces as it is on the website:

       

            <org.richfaces.bom.version>4.0.0.20101226-M5</org.richfaces.bom.version>

          </properties>

          <dependencyManagement>

              <dependencies>

                  <dependency>

                      <groupId>org.richfaces</groupId>

                      <artifactId>richfaces-bom</artifactId>

                      <version>${org.richfaces.bom.version}</version>

                      <scope>import</scope>

                      <type>pom</type>

                  </dependency>

              </dependencies>

          </dependencyManagement>

          <dependencies>

              <dependency>

                  <groupId>org.richfaces.ui</groupId>

                  <artifactId>richfaces-components-ui</artifactId>

       

              </dependency>

              <dependency>

                  <groupId>org.richfaces.core</groupId>

                  <artifactId>richfaces-core-impl</artifactId>

       

              </dependency>  

       

      But in de xhtml editor of netbeans the rich:editor and rich:combobox are not there.

      When i do add this to the page and i run it then i've got the next stack trace

       

      javax.servlet.ServletException: /index.xhtml @15,22 <rich:editor> Tag Library supports namespace: http://richfaces.org/rich, but no tag was defined for name: editor
           javax.faces.webapp.FacesServlet.service(FacesServlet.java:321)

      root cause

      javax.faces.view.facelets.TagException: /index.xhtml @15,22 <rich:editor> Tag Library supports namespace: http://richfaces.org/rich, but no tag was defined for name: editor
           com.sun.faces.facelets.compiler.CompilationManager.pushTag(CompilationManager.java:289)
           com.sun.faces.facelets.compiler.SAXCompiler$CompilationHandler.startElement(SAXCompiler.java:228)
           org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
           org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
           org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
           org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
           org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
           org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
           org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
           org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
           org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
           org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
           org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
           javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
           com.sun.faces.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:388)
           com.sun.faces.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:364)
           com.sun.faces.facelets.compiler.Compiler.compile(Compiler.java:122)
           com.sun.faces.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:294)
           com.sun.faces.facelets.impl.DefaultFaceletFactory.access$100(DefaultFaceletFactory.java:89)
           com.sun.faces.facelets.impl.DefaultFaceletFactory$1.newInstance(DefaultFaceletFactory.java:159)
           com.sun.faces.facelets.impl.DefaultFaceletFactory$1.newInstance(DefaultFaceletFactory.java:158)
           com.sun.faces.facelets.impl.DefaultFaceletCache$1.newInstance(DefaultFaceletCache.java:79)
           com.sun.faces.facelets.impl.DefaultFaceletCache$1.newInstance(DefaultFaceletCache.java:75)
           com.sun.faces.util.ExpiringConcurrentCache$1.call(ExpiringConcurrentCache.java:95)
           java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
           java.util.concurrent.FutureTask.run(FutureTask.java:138)
           com.sun.faces.util.ExpiringConcurrentCache.get(ExpiringConcurrentCache.java:110)
           com.sun.faces.facelets.impl.DefaultFaceletCache.getFacelet(DefaultFaceletCache.java:115)
           com.sun.faces.facelets.impl.DefaultFaceletCache.getFacelet(DefaultFaceletCache.java:58)
           com.sun.faces.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:245)
           com.sun.faces.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:190)
           com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:731)
           com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:96)
           com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
           com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135)
           javax.faces.webapp.FacesServlet.service(FacesServlet.java:309)

      What do i wrong

      (rich:calendar works fine)
        • 1. editor and combobox not found in netbeans
          ilya40umov

          Please take a look at the following links:

          About rich:editor:

          http://community.jboss.org/message/583140

          About NetBean:

          http://community.jboss.org/thread/160348

          • 2. editor and combobox not found in netbeans
            oortdg

            Thanks for your anwser

             

            So my eclipse is ready and i create a jsf project in eclispe.

            Add

            <context-param>

                  <param-name>org.richfaces.CONTROL_SKINNING</param-name>

                  <param-value>enable</param-value>

            </context-param>

            <!-- Defining and mapping the RichFaces filter -->

             

             

            <listener>

               <listener-class>com.sun.faces.config.ConfigureListener</listener-class>

            </listener>

             

            to my web.xml

             

            My problems view says:

            Description    Location    Resource    Path    Type

            NLS missing message: CANNOT_FIND_FACELET_TAGLIB in: org.eclipse.jst.jsf.core.validation.internal.facelet.messages    line 5    edit.xhtml

             

            and in the generated html the tags are there without js script or what ever there be need. Also calendar does't work here. This is wit the new 3.2.0.cr1 tools

            • 3. editor and combobox not found in netbeans
              ilya40umov

              Please, could you split your problems? I suggest you the following:

              1) Any problems with Jboss Tools are better to be placed here:

              http://community.jboss.org/en/tools?view=discussions

              2) If you are facing any deployment issues, please, create a separated thread for each problem. And, please, mention your app server, RichFaces version, etc.

               

              Because now it's hard to say if rich:calendar is not working in xhtml editor or on App Server. And what actually is not working(auto complete, validation etc).