Java Reference
In-Depth Information
Click here to view code image
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
If no Project Stage is defined, the default stage is Development . You can also add cus-
tom stages according to your requirements.
Including the Classes, Pages, and Other Resources
When packaging web applications using the included build scripts, you'll notice that the
scripts package resources in the following ways:
• All web pages are placed at the top level of the WAR file.
• The faces-config.xml file and the web.xml file are packaged in the WEB-
INF directory.
• All packages are stored in the WEB-INF/classes/ directory.
• All application JAR files are packaged in the WEB-INF/lib/ directory.
• All resource files are either under the root of the web application /resources
directory, or in the web application's classpath, META-INF/resources/ re-
sourceIdentifier directory. For more information on resources, see Chapter 5 , “In-
troduction to Facelets,” in The Java EE 6 Tutorial: Basic Concepts .
When packaging your own applications, you can use NetBeans IDE or you can use the
build scripts such as those created for Ant. You can modify the build scripts to fit your
situation. However, you can continue to package your WAR files by using the directory
structure described in this section, because this technique complies with the commonly
accepted practice for packaging web applications.
Search WWH ::




Custom Search