Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added properties from previous project.
- Loading branch information
Rishabh Rao
committed
Dec 12, 2012
1 parent
ef51679
commit a68bd64
Showing
2 changed files
with
121 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,37 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<faces-config | ||
xmlns="http://java.sun.com/xml/ns/javaee" | ||
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-facesconfig_2_0.xsd" | ||
version="2.0"> | ||
|
||
<!-- JSF and Spring are integrated --> | ||
<application> | ||
<el-resolver> | ||
org.springframework.web.jsf.el.SpringBeanFacesELResolver | ||
</el-resolver> | ||
</application> | ||
|
||
<!-- configuration of navigation rules --> | ||
<navigation-rule> | ||
<from-view-id>/pages/index.xhtml</from-view-id> | ||
<navigation-case> | ||
<from-outcome>success</from-outcome> | ||
<to-view-id>/pages/success.xhtml</to-view-id> | ||
</navigation-case> | ||
<navigation-case> | ||
<from-outcome>error</from-outcome> | ||
<to-view-id>/pages/error.xhtml</to-view-id> | ||
</navigation-case> | ||
</navigation-rule> | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<faces-config | ||
xmlns="http://java.sun.com/xml/ns/javaee" | ||
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-facesconfig_2_0.xsd" | ||
version="2.0"> | ||
|
||
<!-- JSF and Spring are integrated --> | ||
<application> | ||
<el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver> | ||
|
||
<locale-config> | ||
<default-locale>en</default-locale> | ||
<supported-locale>es</supported-locale> | ||
<supported-locale>fr</supported-locale> | ||
</locale-config> | ||
<resource-bundle> | ||
<base-name>properties.i18n.i18n</base-name> | ||
<var>i18n</var> | ||
</resource-bundle> | ||
</application> | ||
|
||
<!-- configuration of navigation rules --> | ||
<navigation-rule> | ||
<from-view-id>/pages/index.xhtml</from-view-id> | ||
<navigation-case> | ||
<from-outcome>success</from-outcome> | ||
<to-view-id>/pages/success.xhtml</to-view-id> | ||
</navigation-case> | ||
<navigation-case> | ||
<from-outcome>error</from-outcome> | ||
<to-view-id>/pages/error.xhtml</to-view-id> | ||
</navigation-case> | ||
</navigation-rule> | ||
|
||
</faces-config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,86 @@ | ||
<?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/web-app_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>oss_scrum</display-name> | ||
|
||
<!-- Spring Context Configuration' s Path definition --> | ||
<context-param> | ||
<param-name>contextConfigLocation</param-name> | ||
<param-value> | ||
/WEB-INF/applicationContext.xml | ||
</param-value> | ||
</context-param> | ||
|
||
<!-- The Bootstrap listener to start up and shut down Spring's root WebApplicationContext. | ||
It is registered to Servlet Container --> | ||
<listener> | ||
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> | ||
</listener> | ||
<listener> | ||
<listener-class> | ||
org.springframework.web.context.request.RequestContextListener | ||
</listener-class> | ||
</listener> | ||
|
||
<!-- Project Stage Level --> | ||
<context-param> | ||
<param-name>javax.faces.PROJECT_STAGE</param-name> | ||
<param-value>Development</param-value> | ||
</context-param> | ||
|
||
<!-- Welcome Page --> | ||
<welcome-file-list> | ||
<welcome-file>/pages/index.xhtml</welcome-file> | ||
</welcome-file-list> | ||
|
||
<!-- JSF Servlet is defined to container --> | ||
<servlet> | ||
<servlet-name>Faces Servlet</servlet-name> | ||
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class> | ||
<load-on-startup>1</load-on-startup> | ||
</servlet> | ||
|
||
<!-- Mapping with servlet and url for the http requests. --> | ||
<servlet-mapping> | ||
<servlet-name>Faces Servlet</servlet-name> | ||
<url-pattern>*.jsf</url-pattern> | ||
</servlet-mapping> | ||
<servlet-mapping> | ||
<servlet-name>Faces Servlet</servlet-name> | ||
<url-pattern>*.faces</url-pattern> | ||
</servlet-mapping> | ||
|
||
<?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/web-app_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>oss_scrum</display-name> | ||
|
||
<!-- Spring Context Configuration' s Path definition --> | ||
<context-param> | ||
<param-name>contextConfigLocation</param-name> | ||
<param-value> | ||
/WEB-INF/applicationContext.xml | ||
</param-value> | ||
</context-param> | ||
|
||
<!-- The Bootstrap listener to start up and shut down Spring's root WebApplicationContext. | ||
It is registered to Servlet Container --> | ||
<listener> | ||
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> | ||
</listener> | ||
<listener> | ||
<listener-class> | ||
org.springframework.web.context.request.RequestContextListener | ||
</listener-class> | ||
</listener> | ||
|
||
<!-- Project Stage Level --> | ||
<context-param> | ||
<param-name>javax.faces.PROJECT_STAGE</param-name> | ||
<param-value>Debug</param-value> | ||
</context-param> | ||
|
||
<!-- Strip XML comments out of Facelets before delivering to the client. See http://myfaces.apache.org/core20/myfaces-impl/webconfig.html#javax_faces_FACELETS_SKIP_COMMENTS --> | ||
<context-param> | ||
<param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name> | ||
<param-value>true</param-value> | ||
</context-param> | ||
|
||
<!-- Welcome Page --> | ||
<welcome-file-list> | ||
<welcome-file>/pages/index.xhtml</welcome-file> | ||
</welcome-file-list> | ||
|
||
<!-- JSF Servlet is defined to container --> | ||
<servlet> | ||
<servlet-name>Faces Servlet</servlet-name> | ||
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class> | ||
<load-on-startup>1</load-on-startup> | ||
</servlet> | ||
|
||
<!-- Mapping with servlet and url for the http requests. --> | ||
<servlet-mapping> | ||
<servlet-name>Faces Servlet</servlet-name> | ||
<url-pattern>/faces/*</url-pattern> | ||
</servlet-mapping> | ||
<servlet-mapping> | ||
<servlet-name>Faces Servlet</servlet-name> | ||
<url-pattern>*.jsf</url-pattern> | ||
</servlet-mapping> | ||
<servlet-mapping> | ||
<servlet-name>Faces Servlet</servlet-name> | ||
<url-pattern>*.faces</url-pattern> | ||
</servlet-mapping> | ||
|
||
<!-- FIXME | ||
Workaround for IllegalStateException: Cannot create a session after the response has been committed | ||
See http://stackoverflow.com/a/8072445 for additional workarounds. | ||
--> | ||
<context-param> | ||
<param-name>com.sun.faces.writeStateAtFormEnd</param-name> | ||
<param-value>false</param-value> | ||
</context-param> | ||
|
||
<!-- MIME type mapping for WOFF and EOT fonts. See http://www.w3.org/TR/WOFF/#appendix-b https://developer.mozilla.org/en/CSS/@font-face#Notes https://developer.mozilla.org/en/About_WOFF --> | ||
<mime-mapping> | ||
<extension>woff</extension> | ||
<mime-type>application/font-woff</mime-type> | ||
</mime-mapping> | ||
|
||
<mime-mapping> | ||
<extension>eot</extension> | ||
<mime-type>application/octet-stream</mime-type> | ||
</mime-mapping> | ||
|
||
</web-app> |