You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2014/02/06 01:08:16 UTC
svn commit: r1565007 -
/myfaces/site/cms-site/trunk/content/wiki/core/user-guide/getting-started/configuring-myfaces.mdtext
Author: lu4242
Date: Thu Feb 6 00:08:15 2014
New Revision: 1565007
URL: http://svn.apache.org/r1565007
Log:
test how to fix documentation
Modified:
myfaces/site/cms-site/trunk/content/wiki/core/user-guide/getting-started/configuring-myfaces.mdtext
Modified: myfaces/site/cms-site/trunk/content/wiki/core/user-guide/getting-started/configuring-myfaces.mdtext
URL: http://svn.apache.org/viewvc/myfaces/site/cms-site/trunk/content/wiki/core/user-guide/getting-started/configuring-myfaces.mdtext?rev=1565007&r1=1565006&r2=1565007&view=diff
==============================================================================
--- myfaces/site/cms-site/trunk/content/wiki/core/user-guide/getting-started/configuring-myfaces.mdtext (original)
+++ myfaces/site/cms-site/trunk/content/wiki/core/user-guide/getting-started/configuring-myfaces.mdtext Thu Feb 6 00:08:15 2014
@@ -19,29 +19,28 @@ the web server that there is such a thin
containing a certain pattern should be forwarded to that Faces Servlet. A
minimal <code>web.xml</code> could look like this:</p>
-<ac:macro ac:name="code"><ac:parameter
-ac:name="title">web.xml</ac:parameter><ac:default-parameter>xml</ac:default-parameter><ac:plain-text-body><![CDATA[
- <?xml version="1.0" encoding="UTF-8"?>
- <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:web="http://java.sun.com/xml/ns/javaee/webapp_2_5.xsd"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
-
-http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
- id="WebApp_ID" version="2.5">
- <display-name>MyFaces Test Project</display-name>
- <servlet>
- <servlet-name>Faces Servlet</servlet-name>
- <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
- <servlet-mapping>
- <servlet-name>Faces Servlet</servlet-name>
- <url-pattern>/faces/*</url-pattern>
- </servlet-mapping>
- </web-app>
-]
-]></ac:plain-text-body></ac:macro>
+ :::xml
+ <?xml version="1.0" encoding="UTF-8"?>
+ <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:web="http://java.sun.com/xml/ns/javaee/webapp_2_5.xsd"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+ id="WebApp_ID" version="2.5">
+
+ <display-name>MyFaces Test Project</display-name>
+
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>/faces/*</url-pattern>
+ </servlet-mapping>
+
+ </web-app>
<p>The part between the <code><servlet></code> tags tells the
application server that it has to instantiate an object of the
@@ -102,26 +101,23 @@ application-specific configurations. In
JSF versions it is. A minimalistic <code>faces-config.xml</code> for JSF
1.2 may look like this:</p>
-<ac:macro ac:name="code"><ac:parameter
-ac:name="title">faces-config.xml</ac:parameter><ac:default-parameter>xml</ac:default-parameter><ac:plain-text-body><![CDATA[
-<?xml version="1.0" encoding="UTF-8"?>
-<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
-
-http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
- version="1.2">
- <application>
- <locale-config>
- <default-locale>en</default-locale>
- <supported-locale>en</supported-locale>
- <supported-locale>en_US</supported-locale>
- </locale-config>
- <message-bundle>my.company.Messages</message-bundle>
- </application>
-</faces-config>
-]
-]></ac:plain-text-body></ac:macro>
+ :::xml
+ <?xml version="1.0" encoding="UTF-8"?>
+ <faces-config xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
+
+ http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
+ version="1.2">
+ <application>
+ <locale-config>
+ <default-locale>en</default-locale>
+ <supported-locale>en</supported-locale>
+ <supported-locale>en_US</supported-locale>
+ </locale-config>
+ <message-bundle>my.company.Messages</message-bundle>
+ </application>
+ </faces-config>
<h3>Additional configuration for Glassfish</h3>
<p>To use MyFaces Core as the JSF implementation on a Glassfish 2.x
@@ -132,19 +128,16 @@ with most of the other configuration fil
and <code>faces-config.xml</code>. The contents of the file should look
like this:</p>
-<ac:macro ac:name="code"><ac:parameter
-ac:name="title">sun-web.xml</ac:parameter><ac:default-parameter>xml</ac:default-parameter><ac:plain-text-body><![CDATA[
-<?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>
-]
-]></ac:plain-text-body></ac:macro>
+ :::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>
<p>This disables the default implementation and forces GlassFish to use
MyFaces Core instead. Of course, we have to make sure that the MyFaces Core