1 Reply Latest reply on Nov 18, 2011 3:17 AM by Roy Song

    <rich:simpleTogglePanel> Tag Library supports namespace: http://richfaces.org/rich, but no tag was defined for name: simpleTogglePanel

    Roy Song Newbie

      Hi,

       

      I am trying out Richfaces 4.0.0 with project created by Maven and have some problems.

       

      E.g, rich:panel works but rich:simpleTogglePanel and rich:datascroller don't work. I get following error message:

      <rich:simpleTogglePanel> Tag Library supports namespace: http://richfaces.org/rich, but no tag was defined for name: simpleTogglePanel

       

      I use eclipse 3.7.1 + jboss tools + tomcat 7.0.14 + Richfaces 4.0.0. I searched a blog(http://community.jboss.org/message/575404) discussed this issue, which is applied to Richfaces 3.3 but his method doesn't work for me.

       

      my page is simple:

       

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html>
      <body>
      <ui:composition 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">

       

          <rich:simpleTogglePanel switchType="client"
              label="Add AJAX capability to existing JSF applications">
              The framework is implemented by using a component library. The library
              set Ajax functionality into existing pages, so there is no need to write
              any JavaScript code or to replace existing components with new Ajax one.
              Ajax4jsf enables page-wide Ajax support instead of the traditional
              component-wide support and it gives the opportunity to define the event
              on the page. An event invokes an Ajax request and areas of the page
              which are synchronized with the JSF Component Tree after changing the
              data on the server by Ajax request in accordance with events fired on
              the client.              
          </rich:simpleTogglePanel>
      </ui:composition>
      </body>
      </html>

       

      Does anyone have an idea?

       

      Thanks in Advance!

        • 1. Re: <rich:simpleTogglePanel> Tag Library supports namespace: http://richfaces.org/rich, but no tag was defined for name: simpleTogglePanel
          Roy Song Newbie

          I tried out other two components: rich:modalPanel and rich:panelBar, the result is the same - no tag was defined. So I belive there must be a configuration issue, but I failed to resolve it by update my web.xml.

           

          The following is my web.xml, which is created by Maven 3.0.3:

           

          <?xml version="1.0" encoding="UTF-8"?>
          <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
          <display-name>Sample RichFaces 4 Application</display-name>
          <context-param>
            <param-name>javax.faces.PROJECT_STAGE</param-name>
            <param-value>Development</param-value>
          </context-param>
          <context-param>
            <param-name>javax.faces.SKIP_COMMENTS</param-name>
            <param-value>true</param-value>
          </context-param>
          <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
          </servlet>
          <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>*.jsf</url-pattern>
          </servlet-mapping>
          <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>/faces/*</url-pattern>
          </servlet-mapping>
          <session-config>
            <session-timeout>30</session-timeout>
          </session-config>
          <mime-mapping>
            <extension>ecss</extension>
            <mime-type>text/css</mime-type>
          </mime-mapping>
          <welcome-file-list>
            <welcome-file>faces/index.xhtml</welcome-file>
          </welcome-file-list>
          <login-config>
            <auth-method>BASIC</auth-method>
          </login-config>
          </web-app>

          Any idea?