[jboss-user] [JBoss Seam] - Re: Oracle ADF

mrohad do-not-reply at jboss.com
Fri Sep 22 06:55:46 EDT 2006


I am using Trinidad which is the same as ADF and it doesn't work , I wonder if u can tell me why

web.xml:
<?xml version="1.0" encoding="UTF-8"?>
  | <web-app 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">
  | 
  | 	<!-- trinidad -->
  | 	<filter>
  |     <filter-name>trinidad</filter-name>
  |     <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
  |   </filter>
  | 
  |   <filter-mapping>
  |     <filter-name>trinidad</filter-name>
  |     <!-- This assumes that the FacesServlet has been registered -->
  |     <!-- under the name "faces" -->
  |     <servlet-name>Faces Servlet</servlet-name>
  |   </filter-mapping>
  | 	
  | 	<servlet>
  |   <servlet-name>resources</servlet-name>
  |   <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
  |  </servlet>
  | 
  | <!-- This cannot be configured currently -->
  | <servlet-mapping>
  |     <servlet-name>resources</servlet-name>
  |     <url-pattern>/adf/*</url-pattern>
  | </servlet-mapping>
  | <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.ALTERNATE_VIEW_HANDLER</param-name>
  |   <param-value>com.sun.facelets.FaceletViewHandler</param-value>
  | </context-param>
  | <context-param>
  |   <param-name>org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION</param-name>
  |   <param-value>true</param-value>
  | </context-param>
  | 
  | 
  | 
  |   <context-param>
  |     <param-name>facelets.VIEW_MAPPINGS</param-name>
  |     <param-value>*.jsp</param-value>
  |   </context-param>
  | 	
  | 	
  | 	
  | 	
  | 	
  | 	
  | 	
  | 	
  |     <!-- Seam -->
  |    <listener>
  |        <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
  |    </listener>
  | 
  |    <!-- Propagate conversations across redirects -->
  |    <filter>
  |        <filter-name>Seam Redirect Filter</filter-name>
  |        <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
  |    </filter>
  |    
  |    <!--  ajax4jsf -->
  |    <filter>
  |        <display-name>Ajax4jsf Filter</display-name>
  |        <filter-name>ajax4jsf</filter-name>
  |        <filter-class>org.ajax4jsf.Filter</filter-class>
  |    </filter>
  |    <filter-mapping>
  |       <filter-name>ajax4jsf</filter-name>
  |       <url-pattern>*.seam</url-pattern>
  |    </filter-mapping>
  | 
  |    <filter-mapping>
  |        <filter-name>Seam Redirect Filter</filter-name>
  |        <url-pattern>*.seam</url-pattern>
  |    </filter-mapping>
  |    
  |   <filter>
  |     <filter-name>Seam Exception Filter</filter-name>
  |     <filter-class>org.jboss.seam.servlet.SeamExceptionFilter</filter-class>
  |   </filter>
  | 
  |   <filter-mapping>
  |       <filter-name>Seam Exception Filter</filter-name>
  |       <url-pattern>*.jsf</url-pattern>
  |   </filter-mapping>
  |   
  |   <!-- JSF --> 
  |   <context-param>
  |     <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
  |     <param-value>client</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>javax.faces.DEFAULT_SUFFIX</param-name>
  |     <param-value>.jsp</param-value>
  |   </context-param>
  |   <context-param>
  |     <param-name>facelets.REFRESH_PERIOD</param-name>
  |     <param-value>2</param-value>
  |   </context-param>
  |   <context-param>
  |     <param-name>facelets.DEVELOPMENT</param-name>
  |     <param-value>true</param-value>
  |   </context-param>
  |   <context-param>
  |     <param-name>com.sun.faces.validateXml</param-name>
  |     <param-value>true</param-value>
  |   </context-param>
  |   <context-param>
  |     <param-name>com.sun.faces.verifyObjects</param-name>
  |     <param-value>true</param-value>
  |   </context-param>
  |   <context-param>
  |     <param-name>org.ajax4jsf.SKIN</param-name>
  |     <param-value>DEFAULT</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>
  | 
  |   <!-- Faces Servlet Mapping -->
  |   <servlet-mapping>
  |       <servlet-name>Faces Servlet</servlet-name>
  |       <url-pattern>*.seam</url-pattern>
  |   </servlet-mapping>
  | 
  |   <!-- MyFaces ok-->
  |   <listener>
  |       <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
  |   </listener>  
  |   <!-- tomo -->
  |     <context-param>
  |         <param-name>facelets.LIBRARIES</param-name>
  |         <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
  |     </context-param>  
  |     
  |     
  |     <filter>
  | 	<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>
  |    	 </init-param>
  | 	</filter>
  | 
  | <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages  -->
  | <filter-mapping>
  |     <filter-name>MyFacesExtensionsFilter</filter-name>
  |     <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
  |     <servlet-name>Faces Servlet</servlet-name>
  | </filter-mapping>
  | 
  | <!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.)  -->
  | <filter-mapping>
  |     <filter-name>MyFacesExtensionsFilter</filter-name>
  |     <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
  | </filter-mapping>
  | 	
  | 	
  | 
  | 	
  | 	
  |  
  | </web-app>
  |    
faces-config
<?xml version="1.0" encoding="UTF-8"?>
  | <!DOCTYPE faces-config
  |     PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
  |     "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
  | 
  | <faces-config>
  | 
  | 	<!--trinidad-->
  | 	<application>
  | 	<variable-resolver>org.jboss.seam.jsf.SeamVariableResolver</variable-resolver>
  |     <default-render-kit-id>org.apache.myfaces.trinidad.core</default-render-kit-id>
  |     
  |     		<locale-config>
  | 			<default-locale>en</default-locale>
  | 			<supported-locale>iw_il</supported-locale>
  | 		</locale-config>
  | 		<message-bundle>com.wannabet.utils.validationMessages</message-bundle>
  |   </application>
  | 
  | 	
  | 	
  | 	
  | 	
  |     <!-- Navigation rules for the Booking demo app -->
  | 
  |     <navigation-rule>
  |         <navigation-case>
  |             <from-outcome>catEvents</from-outcome>
  |             <to-view-id>/event/categoryEvetns.jsp</to-view-id>
  |             <redirect />
  |         </navigation-case>
  | 
  |         <navigation-case>
  |             <from-outcome>login</from-outcome>
  |             <to-view-id>/home.jsp</to-view-id>
  |             <redirect />
  |         </navigation-case>
  | 
  |         <navigation-case>
  |             <from-outcome>register</from-outcome>
  |             <to-view-id>/register.jsp</to-view-id>
  |             <redirect />
  |         </navigation-case>
  | 
  |         <navigation-case>
  |             <from-outcome>joinWager</from-outcome>
  |             <to-view-id>/wager/joinWager.jsp</to-view-id>
  |             <redirect />
  |         </navigation-case>
  | 
  |         <navigation-case>
  |             <from-outcome>suggestions</from-outcome>
  |             <to-view-id>/suggestion/suggestions.jsp</to-view-id>
  |             <redirect />
  |         </navigation-case>
  | 
  |         <navigation-case>
  |             <from-outcome>eventWagers</from-outcome>
  |             <to-view-id>/wager/eventWagers.jsp</to-view-id>
  |             <redirect />
  |         </navigation-case>
  | 
  | 				<navigation-case>
  | 					<from-outcome>addWager</from-outcome>
  | 					<to-view-id>/wager/addWager.jsp</to-view-id>
  | 					<redirect/>
  | 				</navigation-case>
  | 
  | 		</navigation-rule>
  | 
  |     <navigation-rule>
  | 
  |         <from-view-id>/hotel.jsp</from-view-id>
  | 
  |         <navigation-case>
  |             <from-outcome>book</from-outcome>
  |             <to-view-id>/book.jsp</to-view-id>
  |             <redirect />
  |         </navigation-case>
  | 
  |     </navigation-rule>
  | 
  |     <navigation-rule>
  | 
  |         <from-view-id>/book.jsp</from-view-id>
  | 
  |         <navigation-case>
  |             <from-outcome>confirm</from-outcome>
  |             <to-view-id>/confirm.jsp</to-view-id>
  |             <redirect />
  |         </navigation-case>
  | 
  |     </navigation-rule>
  | 
  |     <navigation-rule>
  | 
  |         <from-view-id>/confirm.jsp</from-view-id>
  | 
  |         <navigation-case>
  |             <from-outcome>catEvents</from-outcome>
  |             <to-view-id></to-view-id>
  |             <redirect/>
  |         </navigation-case>
  | 
  |         <navigation-case>
  |             <from-outcome>back</from-outcome>
  |             <to-view-id>/book.jsp</to-view-id>
  |             <redirect />
  |         </navigation-case>
  | 
  |     </navigation-rule>
  | 
  | 
  | 	<component>
  | 		<component-type>requestTimeOutput</component-type>
  | 		<component-class>com.wannabet.core.tags.UIRequestTimeOutput</component-class>
  | 	</component>
  | 
  |     <!-- Select one of the two standard persistence lifecycle models for the Seam application -->
  | 
  |     <lifecycle>
  |         <phase-listener>org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener</phase-listener>
  |     </lifecycle>
  | 
  | 
  | 	<!--convertors-->
  | 	<converter>
  | 	  <converter-id>ParsedQuestionConverter</converter-id>
  | 	   <converter-class>com.wannabet.converter.ParsedQuestionConverter</converter-class>
  |     </converter>
  | 
  | 	<!-- ADF -->
  | 
  | 
  | 
  | </faces-config>
  | 

i am not getting any exception although the tags ain't rendered and this is what i am getting in my console

  | 14:53:29,796 WARN  [HtmlRenderKitImpl] Unsupported component-family/renderer-type: org.apache.myfaces.trinidad.Output/org.apache.myfaces.trinidad.Text
  | 14:53:29,796 ERROR [STDERR] 22/09/2006 14:53:29 org.apache.myfaces.trinidad.component.UIXComponentBase _getRendererImpl
  | WARNING: Could not find renderer for CoreOutputText[UIXFacesBeanImpl, id=_id46], rendererType = org.apache.myfaces.trinidad.Text
  | 14:53:29,816 ERROR [HtmlResponseStateManager] No component states to be saved in client response!
  | 14:53:29,826 INFO  [MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
  | 14:53:29,826 INFO  [MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
  | 14:53:29,826 INFO  [MyfacesConfig] No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false
  | 14:53:29,826 INFO  [MyfacesConfig] No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
  | 14:53:29,826 INFO  [MyfacesConfig] No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using default value org.apache.myfaces.renderkit.html.util.DefaultAddResource
  | 14:53:29,826 INFO  [MyfacesConfig] No context init parameter 'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found, using default value true
  | 14:53:29,826 WARN  [HtmlRenderKitImpl] Unsupported component-family/renderer-type: org.apache.myfaces.trinidad.Output/org.apache.myfaces.trinidad.Text

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973522#3973522

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973522



More information about the jboss-user mailing list