myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Myfaces Wiki] Update of "from ADF to Trinidad" by MatthiasWessendorf
Date Thu, 17 Aug 2006 01:59:55 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The following page has been changed by MatthiasWessendorf:
http://wiki.apache.org/myfaces/from_ADF_to_Trinidad

------------------------------------------------------------------------------
  = 2.) XML configuration =
  
  == web.xml ==
+ For the web.xml file you have to change some entries.
+  * !ResourceServlet
+ For the !ResourceServlet only the package has changed (oracle.adf.view.faces.webapp). For
Trinidad change it like
+ {{{
+ <servlet>
+   <servlet-name>resources</servlet-name>
+   <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
+ </servlet>
+ }}}
+ 
+ ''NOTE'' that it still maps to the "/adf/*" url-pattern. There is ''no'' "/trinidad/*" yet.
+ {{{
+ <servlet-mapping>
+   <servlet-name>resources</servlet-name>
+   <url-pattern>/adf/*</url-pattern>
+ </servlet-mapping>
+ }}}
+ 
+  * Filter
+ The formal ''!AdfFacesFilter'' is now named ''!TrinidadFilter''. The !TrinidadFilter is
available in the same package like the !ResourceServlet. A possible configuration might be
+ {{{
+ <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-name>
+ </filter-mapping>
+ }}}
+ 
+  * Context parameter
  
  == faces-config.xml ==
+ 
+ For the faces-config.xml file you only need to change the entry of the RenderKit ID. Here
is an example:
+ {{{
+ <application>
+   <default-render-kit-id>
+     oracle.adf.core
+   </default-render-kit-id>
+   ...
+ </application>
+ }}}
+ {{{
+ <application>
+   <default-render-kit-id>
+     org.apache.myfaces.trinidad.core
+   </default-render-kit-id>
+   ...
+ </application>
+ }}}
  
  == ADF/Trinidad specific XML files ==
  The two formal ADF Faces configuration files

Mime
View raw message