0 Replies Latest reply on Jun 4, 2008 10:03 AM by balavp

    Richfaces is not defined in weblogic portal 10.2 integration

    balavp

      Hi,
      I'm using the following jar is my WEB-INF/Lib directory
      commons-beanutils.jar
      commons-collections-3.2.1.jar
      commons-digester-1.8.jar
      commons-logging-1.1.1.jar
      richfaces-api-3.2.0.SR1.jar
      richfaces-impl-3.2.0.SR1.jar
      richfaces-ui-3.2.0.SR1.jar
      jsf-api.jar
      jsf-impl.jar
      jsf-facelets.jar
      ================================================
      web.xml
      ================================================

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
      <display-name>RichFacesPocFinalWEB</display-name>
      <context-param>
      <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
      <param-value>server</param-value>
      <!--
      State saving method: "client" or "server" (= default)
      See JSF Specification 2.5.2
      -->
      </context-param>
      <context-param>
      <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
      <param-value>true</param-value>
      <!--
      This parameter tells MyFaces if javascript code should be allowed in the
      rendered HTML output.
      If javascript is allowed, command_link anchors will have javascript code
      that submits the corresponding form.
      If javascript is not allowed, the state saving info and nested parameters
      will be added as url parameters.
      Default: "true"
      -->
      </context-param>
      <context-param>
      <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
      <param-value>true</param-value>
      <!--
      If true, rendered HTML code will be formatted, so that it is "human readable".
      i.e. additional line separators and whitespace will be written, that do not
      influence the HTML code.
      Default: "true"
      -->
      </context-param>
      <context-param>
      <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
      <param-value>false</param-value>
      </context-param>
      <context-param>
      <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
      <param-value>true</param-value>
      <!--
      If true, a javascript function will be rendered that is able to restore the
      former vertical scroll on every request. Convenient feature if you have pages
      with long lists and you do not want the browser page to always jump to the top
      if you trigger a link or button action that stays on the same page.
      Default: "false"
      -->
      </context-param>
      <context-param>
      <param-name>org.richfaces.SKIN</param-name>
      <param-value>blueSky</param-value>
      </context-param>

      <filter-name>richfaces</filter-name>
      <filter-class>org.ajax4jsf.Filter</filter-class>

      <filter-mapping>
      <filter-name>richfaces</filter-name>
      <servlet-name>Faces Servlet</servlet-name>
      REQUEST
      FORWARD
      INCLUDE
      </filter-mapping>
      <filter-mapping>
      <filter-name>MyFacesExtensionsFilter</filter-name>
      <servlet-name>faces</servlet-name>
      REQUEST
      FORWARD
      </filter-mapping>
      <filter-mapping>
      <filter-name>MyFacesExtensionsFilter</filter-name>
      <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
      REQUEST
      FORWARD
      </filter-mapping>

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


      <servlet-name>faces</servlet-name>
      <servlet-class>org.apache.myfaces.webapp.MyFacesServlet</servlet-class>
      <load-on-startup>1</load-on-startup>


      <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>1</load-on-startup>

      <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.jsf</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>faces</servlet-name>
      <url-pattern>*.jsf</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>faces</servlet-name>
      <url-pattern>*.faces</url-pattern>
      </servlet-mapping>
      <welcome-file-list>
      <welcome-file>index.jsf</welcome-file>
      <welcome-file>index.faces</welcome-file>
      <welcome-file>index.html</welcome-file>
      <welcome-file>index.htm</welcome-file>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>default.html</welcome-file>
      <welcome-file>default.htm</welcome-file>
      <welcome-file>default.jsp</welcome-file>
      </welcome-file-list>

      <filter-name>MyFacesExtensionsFilter</filter-name>
      <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
      <init-param>
      <param-name>maxFileSize</param-name>
      <param-value>20m</param-value>
      <!--
      Set the size limit for uploaded files. Format: 10 - 10
      bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB
      -->
      </init-param>


      <filter-name>PageFlowJspFilter</filter-name>
      <filter-class>org.apache.beehive.netui.pageflow.PageFlowJspFilter</filter-class>


      <filter-name>PageFlowForbiddenFilter</filter-name>
      <filter-class>org.apache.beehive.netui.pageflow.PageFlowForbiddenFilter</filter-class>
      <init-param>
      <param-name>response-code</param-name>
      <param-value>404</param-value>
      </init-param>

      <filter-mapping>
      <filter-name>PageFlowJspFilter</filter-name>
      <url-pattern>*.jsp</url-pattern>
      FORWARD
      REQUEST
      INCLUDE
      </filter-mapping>
      <filter-mapping>
      <filter-name>PageFlowJspFilter</filter-name>
      <url-pattern>*.jspx</url-pattern>
      FORWARD
      REQUEST
      INCLUDE
      </filter-mapping>
      <filter-mapping>
      <filter-name>PageFlowForbiddenFilter</filter-name>
      <url-pattern>*.java</url-pattern>
      REQUEST
      </filter-mapping>
      <filter-mapping>
      <filter-name>PageFlowForbiddenFilter</filter-name>
      <url-pattern>*.jsfb</url-pattern>
      REQUEST
      </filter-mapping>
      <filter-mapping>
      <filter-name>PageFlowForbiddenFilter</filter-name>
      <url-pattern>*.jpfs</url-pattern>
      REQUEST
      </filter-mapping>

      <!--Listener, that does all the startup work (configuration, init).-->
      <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>


      <listener-class>org.apache.beehive.netui.pageflow.PageFlowContextListener</listener-class>


      <listener-class>org.apache.beehive.netui.pageflow.HttpSessionMutexListener</listener-class>


      <servlet-name>action</servlet-name>
      <servlet-class>org.apache.beehive.netui.pageflow.PageFlowActionServlet</servlet-class>
      <init-param>
      <param-name>config</param-name>
      <param-value>/_pageflow/struts-config.xml</param-value>
      </init-param>
      <init-param>
      <param-name>debug</param-name>
      <param-value>2</param-value>
      </init-param>
      <init-param>
      <param-name>detail</param-name>
      <param-value>2</param-value>
      </init-param>
      <load-on-startup>2</load-on-startup>


      <servlet-name>XmlHttpRequestServlet</servlet-name>
      <servlet-class>org.apache.beehive.netui.pageflow.xmlhttprequest.XmlHttpRequestServlet</servlet-class>

      <servlet-mapping>
      <servlet-name>action</servlet-name>
      <url-pattern>*.jpf</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>action</servlet-name>
      <url-pattern>*.do</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>XmlHttpRequestServlet</servlet-name>
      <url-pattern>*.xhr</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>XmlHttpRequestServlet</servlet-name>
      <url-pattern>*.render</url-pattern>
      </servlet-mapping>

      <filter-name>PageFlowFacesFilter</filter-name>
      <filter-class>org.apache.beehive.netui.pageflow.PageFlowFacesFilter</filter-class>

      <filter-mapping>
      <filter-name>PageFlowFacesFilter</filter-name>
      <url-pattern>*.faces</url-pattern>
      FORWARD
      REQUEST
      INCLUDE
      </filter-mapping>
      <filter-mapping>
      <filter-name>PageFlowFacesFilter</filter-name>
      <url-pattern>*.jsf</url-pattern>
      FORWARD
      REQUEST
      INCLUDE
      </filter-mapping>

      </web-app>

      =================== End web.xml ====================
      =================Sample.jsp========================
      <%@ page language="java" contentType="text/html;charset=UTF-8"%>
      <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
      <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
      <f:view>
      <rich:comboBox>
      <f:selectItem itemValue="test 1"/>
      <f:selectItem itemValue="test 2"/>
      </rich:comboBox>
      </f:view>

      ================================================

      i'm getting script error "Richfaces is not defined". Please let me know if any one having solution for this. And also please let me know if there any reference manual i can get.

      Thanks in advance.