3 Replies Latest reply on Jul 16, 2008 6:38 AM by Pagera

    No RenderingContext has been created( Richfaces,Trinidad)

    Pagera Newbie

      hello
      i have problem when using Richfaces with Trinidad
      the <rich:tabPanel> it doesnt switch between tabs
      and its log

      SEVERE: No RenderingContext has been created

      ...........
      i search on the internet and i saw that there r a lot of people having the same problem but i couldnt see any way to get over this problem
      ...........
      ist possible to use Richfaces withTrinidad??
      ............

        • 2. Re: No RenderingContext has been created( Richfaces,Trinidad
          Pagera Newbie

          thankx for reply...

          web.xml
          ..................

          <?xml version="1.0"?>
          <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>TrindadRichFaces</display-name>
          
          
          
           <!-- Rich Faces Filter Start -->
           <filter>
          
           <display-name>RichFaces Filter</display-name>
          
           <filter-name>richfaces</filter-name>
          
           <filter-class>org.ajax4jsf.Filter</filter-class>
           <init-param>
           <param-name>forceparser</param-name>
           <param-value>false</param-value>
           </init-param>
          
           </filter>
           <filter-mapping>
          
           <filter-name>richfaces</filter-name>
          
           <servlet-name>Faces Servlet</servlet-name>
          
           <dispatcher>REQUEST</dispatcher>
          
           <dispatcher>FORWARD</dispatcher>
          
           <dispatcher>INCLUDE</dispatcher>
          
           </filter-mapping>
           <!-- Rich Faces Filter End -->
          
          
          
          
           <!-- Trinidad Start -->
          
          
           <filter>
           <filter-name>Trinidad</filter-name>
           <filter-class>
           org.apache.myfaces.trinidad.webapp.TrinidadFilter
           </filter-class>
           </filter>
          
           <filter-mapping>
           <filter-name>Trinidad</filter-name>
           <!--<servlet-name>Faces Servlet</servlet-name>-->
           <url-pattern>*.jsf</url-pattern>
           </filter-mapping>
          
           <context-param>
           <param-name>javax.faces.CONFIG_FILES</param-name>
           <param-value>/WEB-INF/faces-config.xml</param-value>
           </context-param>
           <context-param>
           <param-name>
           org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE
           </param-name>
           <param-value>false</param-value>
           </context-param>
           <context-param>
           <param-name>
           org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION
           </param-name>
           <param-value>false</param-value>
           </context-param>
           <context-param>
           <param-name>
           org.apache.myfaces.trinidad.CHANGE_PERSISTENCE
           </param-name>
           <param-value>session</param-value>
           </context-param>
           <context-param>
           <param-name>
           org.apache.myfaces.trinidad.resource.DEBUG
           </param-name>
           <param-value>false</param-value>
           </context-param>
          
           <servlet>
           <servlet-name>Trinidad Resources</servlet-name>
           <servlet-class>
           org.apache.myfaces.trinidad.webapp.ResourceServlet
           </servlet-class>
           </servlet>
          
           <!-- This cannot be configured currently -->
           <servlet-mapping>
           <servlet-name>Trinidad Resources</servlet-name>
           <url-pattern>/adf/*</url-pattern>
           </servlet-mapping>
          
           <!-- Trinidad END -->
           <context-param>
           <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
           <param-value>server</param-value>
           </context-param>
           <listener>
           <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
           </listener>
           <!-- Faces Servlet -->
           <servlet>
           <servlet-name>Faces Servlet</servlet-name>
           <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
           <load-on-startup>1</load-on-startup>
           </servlet>
           <!-- Faces Servlet Mapping -->
           <servlet-mapping>
           <servlet-name>Faces Servlet</servlet-name>
           <url-pattern>*.jsf</url-pattern>
           </servlet-mapping>
           <login-config>
           <auth-method>BASIC</auth-method>
           </login-config>
          </web-app>
          

          ......................

          faces-config.xml
          ..................
          <?xml version="1.0" encoding="UTF-8"?>
          <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
           xmlns:xi="http://www.w3.org/2001/XInclude"
           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-facesconfig_1_2.xsd">
          <application>
          <default-render-kit-id>
          org.apache.myfaces.trinidad.core
          </default-render-kit-id>
          </application>
          
          </faces-config>
          

          ........................

          trinidad-config.xml
          ..................................
          <?xml version="1.0"?>
          <trinidad-config xmlns="http://myfaces.apache.org/trinidad/config">
           <debug-output>false</debug-output>
           <accessibility-mode>default</accessibility-mode>
          </trinidad-config>

          .......................
          my libz r
          richfaces 3.2.1.GA
          trinidad 1.2.8
          JSF 1.2
          ................


          • 3. Re: No RenderingContext has been created( Richfaces,Trinidad
            Pagera Newbie

            hello...
            is there any answer please.