Java Reference
In-Depth Information
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib
uri="http://xmlns.oracle.com/adf/faces/rich" prefix="af"%>
<f:view>
<af:document id="d1">
<af:form id="f1">
<af:outputText value="Error Generated" id="ot1" />
</af:form>
</af:document>
</f:view>
The web application configuration file
The web.xml configuration file gets generated automatically when a JSF page is
created. The context-param elements and the servlets also get added to the web.xml
automatically when ADF Faces components are added. In the web.xml deployment
descriptor the Faces Servlet and the URL pattern mapping for the Faces Servlet
should get specified automatically. The Faces Servlet is mapped to URL pattern /
faces/* . Similarly, map the ADF Face Servlet class to a URL pattern. The web.xml is
listed below:
<?xml version = '1.0' encoding = 'windows-1252'?>
<web-app 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"
version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</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>
<description>
Whether the 'Generated by...' comment at the bottom of ADF
Faces HTML pages should contain version number information.
</description>
 
Search WWH ::




Custom Search