1 Reply Latest reply on Jan 14, 2012 2:55 PM by Rishi gautam

    ERROR: tag handler class for "rich:modalPanel" (org.richfaces.taglib.ModalPanelTag) was not found on the Java Build Path

    Rishi gautam Newbie

      Hi,

      I am trying richface 4. But it seems tags class are not setting on JAVA build path. I am getting this error for all rich component: "ERROR: tag handler class for * (org.richfaces.taglib.*) was not found on the Java Build Path"

      For a4j component also, for ll component i am getting same error "The tag handler class for "a4j:*" (org.ajax4jsf.taglib.html.jsp.*) was not found on the Java Build Path"

       

      For richface4, i performed following actoin:

      1) Added following jars:

      annotations-4.0.0.Final.jar

      cssparser-0.9.5.jar

      guava-r08-gwt.jar

      guava-r08.jar

      jsf-api.jar

      jsf-impl.jar

      richfaces-components-api-4.1.0.Final.jar

      richfaces-components-ui-4.1.0.Final.jar

      richfaces-core-api-4.1.0.Final.jar

      richfaces-core-impl-4.1.0.Final.jar

      sac-1.3.jar

      commons-beanutils-1.8.3.jar

      commons-collections-3.2.1.jar

      commons-digester-2.1-sources.jar

      commons-digester-2.1.jar

      commons-discovery-0.4.jar

      jhighlight-1.0.jar

      jsf-facelets-1.1.14.jar

       

      2) set web.xml (addd following lines) (as i used to do in 3.3)

      <context-param>

        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>

        <param-value>server</param-value>

      </context-param>

      <context-param>

        <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>

        <param-value>com.sun.facelets.FaceletViewHandler</param-value>

      </context-param>

      <context-param>

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

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

      </context-param>

      <context-param>

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

        <param-value>extended</param-value>

      </context-param>

      <context-param>

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

        <param-value>deepMarine</param-value>

      </context-param>

      <listener>

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

      </listener>

       

       

      My jsp file is

      <?xml version="1.0" encoding="ISO-8859-1" ?>

      <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"  xmlns:ui="http://java.sun.com/jsf/facelets"  xmlns:f="http://java.sun.com/jsf/core"  xmlns:h="http://java.sun.com/jsf/html"  xmlns:a4j="http://richfaces.org/a4j"  xmlns:rich="http://richfaces.org/rich" version="2.0">

          <jsp:directive.page language="java"

              contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" />

          <jsp:text>

              <![CDATA[ <?xml version="1.0" encoding="ISO-8859-1" ?> ]]>

          </jsp:text>

          <jsp:text>

              <![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ]]>

          </jsp:text>

      <html xmlns="http://www.w3.org/1999/xhtml">

      <head>

      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

      <title>TESTING</title>

      </head>

      <body>

      <f:view>

      <h:form>

                             <a4j:commandLink

                                      value="Opss! I forgot password"

                                      reRender="forgetPasswordPanel"

                                      oncomplete="#{rich:component('forgetPasswordPanel')}.show()">

                             </a4j:commandLink>                       

       

      </h:form>

               <rich:modalPanel id="forgetPasswordPanel" autosized="true" width="380">

                  <f:facet name="header">

                      <h:outputText value="Reset Password"/>

                  </f:facet>

              </rich:modalPanel>

      </f:view>

      </body>

      </html>

      </jsp:root>

       

       

      Thanks