• Post Reply Bookmark Topic Watch Topic
  • New Topic

'RichFaces' is undefined  RSS feed

 
Jaffar Hussain Atmakur
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I am migrating my application to higher Spring version from 4.0.5 to 4.3.0 , during which Rich-faces got migrated from 4.3.5 to 4.5.2

I am facing 'RichFaces' is undefined when ever i load the login page. Code snippets and further details have been attached. Please help!

newLogin.JSP

<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head></head>
    <body>
    <jsp:forward page="/pages/login/loginMain.jsf"/>
    </body>
</html>

Code Snippet from loginMain.xhtml:

<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"
  xmlns:cls="http://emia.com/emia/ui"
  xmlns:cat360="http://java.sun.com/jsf/composite/components">
  <ui:composition template="/templates/login/loginTemplate.xhtml">

<h:commandButton type="submit" id="login" onclick="loginTest(); return false;" value="login" styleClass="submitButton" />

<a4j:commandLink
  styleClass="forgetPass" value="Forgot Password?">
  <rich:componentControl target="forgotPasswordPopup"
  operation="show" event="click" />
  </a4j:commandLink>
Syntax-error-1.jpg
[Thumbnail for Syntax-error-1.jpg]
Browser-Snapshot-1.jpg
[Thumbnail for Browser-Snapshot-1.jpg]
Browser-Snapshot-2.jpg
[Thumbnail for Browser-Snapshot-2.jpg]
 
Campbell Ritchie
Marshal
Posts: 56223
171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch :)

Don't know, but please supply some more information about RichFaces. Where is it installed, and how is it added to your PATH and CLASSPATH?
 
Jaffar Hussain Atmakur
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You for the Welcome and Response...

Please find all the entries regarding richfaces in web.xml

<web-app id="richfaces-showcase" 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">

<context-param>
<param-name>org.richfaces.enableControlSkinning</param-name>
<param-value>true</param-value>
</context-param>

<context-param>
<param-name>org.richfaces.fileUpload.maxRequestSize</param-name>
<param-value>100000</param-value>
</context-param>

<context-param>
<param-name>org.richfaces.fileUpload.createTempFiles</param-name>
<param-value>false</param-value>
</context-param>

<context-param>
<param-name>org.richfaces.LoadStyleStrategy</param-name>
<param-value>ALL</param-value>
</context-param>

<context-param>
<param-name>org.richfaces.LoadScriptStrategy</param-name>
<param-value>ALL</param-value>
</context-param>

<context-param>
<param-name>org.richfaces.queue.global.enabled</param-name>
<param-value>true</param-value>
</context-param>

<servlet>
<servlet-name>Resource Servlet</servlet-name>
<servlet-class>org.richfaces.webapp.ResourceServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>Resource Servlet</servlet-name>
<url-pattern>/org.richfaces.resources/*</url-pattern>
</servlet-mapping>
 
Campbell Ritchie
Marshal
Posts: 56223
171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pleased to help but that isn't what I meant. I meant where did you install RichFaces? What does your PATH look like? And the CLASSPATH for that application?
 
Jaffar Hussain Atmakur
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Pleased to help but that isn't what I meant. I meant where did you install RichFaces? What does your PATH look like? And the CLASSPATH for that application?


Our Organisation has customised framework built on top of Spring,, i got Rich Faces Libraries everything downloaded from its repository. As such in application we did not configure any thing except what i posted it of web.xml
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!