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 "Drafts/Site/Core" by BartKummel
Date Sat, 12 Feb 2011 15:21:48 GMT
Dear Wiki user,

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

The "Drafts/Site/Core" page has been changed by BartKummel.
http://wiki.apache.org/myfaces/Drafts/Site/Core?action=diff&rev1=4&rev2=5

--------------------------------------------------

  </faces-config>
  }}}
  
+ === Additional configuration ===
+ To use MyFaces Core as the JSF implementation on a Glassfish 2.x application server, we
have to make some additional settings in a GlassFish-specific configuration file—{{{sun-web.xml}}}.
This file has to be in the {{{WEB-INF}}} folder of our project, along with most of the other
configuration files, such as {{{web.xml}}} and {{{faces-config.xml}}}. The contents of the
file should look like this:
+ {{{#!xml
+ <?xml version="1.0" encoding="UTF-8"?>
+ <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.1 Servlet
2.4//EN"
+                              "http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd">
+ <sun-web-app>
+     <class-loader delegate="false"/>
+     <property name="useMyFaces" value="true"/>
+ </sun-web-app>
+ }}}
+ This disables the default implementation and forces GlassFish to use MyFaces Core instead.
Of course, we have to make sure that the MyFaces Core libraries are added properly to our
application and configured correctly, as described in the previous sections.
+ 

Mime
View raw message