Skip to content

Commit

Permalink
JSF examples - enable the development mode by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mkouba authored and jharting committed Jun 4, 2015
1 parent a4dbc97 commit cf4693d
Show file tree
Hide file tree
Showing 11 changed files with 78 additions and 24 deletions.
7 changes: 6 additions & 1 deletion examples/jsf/login/src/main/webapp/WEB-INF/web.xml
Expand Up @@ -4,9 +4,14 @@
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">

<display-name>Web Beans Login example</display-name>

<context-param>
<param-name>org.jboss.weld.development</param-name>
<param-value>true</param-value>
</context-param>

<!-- JSF -->

<servlet>
Expand Down
15 changes: 10 additions & 5 deletions examples/jsf/numberguess/src/main/webapp-gae/WEB-INF/web.xml
Expand Up @@ -3,26 +3,31 @@
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">

<display-name>Weld Numberguess example</display-name>


<context-param>
<param-name>org.jboss.weld.development</param-name>
<param-value>true</param-value>
</context-param>

<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>

<!-- GAE doesn't work with the Mojarra default startup -->
<context-param>
<param-name>com.sun.faces.enableMultiThreadedStartup</param-name>
<param-value>false</param-value>
</context-param>

<!-- Specify the expression factory manually, JSF can't find it from JSP in GAE -->
<context-param>
<param-name>com.sun.faces.expressionFactory</param-name>
<param-value>com.sun.el.ExpressionFactoryImpl</param-value>
</context-param>

<listener>
<listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
</listener>
Expand Down
13 changes: 9 additions & 4 deletions examples/jsf/numberguess/src/main/webapp-jetty/WEB-INF/web.xml
Expand Up @@ -3,18 +3,23 @@
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">

<display-name>Weld Numberguess example</display-name>


<context-param>
<param-name>org.jboss.weld.development</param-name>
<param-value>true</param-value>
</context-param>

<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>

<listener>
<listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
</listener>

<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
Expand Down
13 changes: 9 additions & 4 deletions examples/jsf/numberguess/src/main/webapp-tomcat/WEB-INF/web.xml
Expand Up @@ -4,15 +4,20 @@
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">
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

<display-name>Weld Numberguess example</display-name>


<context-param>
<param-name>org.jboss.weld.development</param-name>
<param-value>true</param-value>
</context-param>

<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>

<listener>
<listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
</listener>
Expand Down
Expand Up @@ -5,11 +5,16 @@
xsi:schemaLocation="
http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">

<distributable/>

<display-name>Weld Numberguess example</display-name>


<context-param>
<param-name>org.jboss.weld.development</param-name>
<param-value>true</param-value>
</context-param>

<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
Expand Down
Expand Up @@ -5,9 +5,14 @@
xsi:schemaLocation="
http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">

<display-name>Weld Numberguess example</display-name>


<context-param>
<param-name>org.jboss.weld.development</param-name>
<param-value>true</param-value>
</context-param>

<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
Expand Down
4 changes: 4 additions & 0 deletions examples/jsf/pastecode/src/main/webapp/WEB-INF/web.xml
Expand Up @@ -5,6 +5,10 @@
http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1">
<display-name>Weld PasteCode example</display-name>
<context-param>
<param-name>org.jboss.weld.development</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
Expand Down
11 changes: 8 additions & 3 deletions examples/jsf/permalink/src/main/webapp-jetty/WEB-INF/web.xml
Expand Up @@ -28,15 +28,20 @@
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

<display-name>Weld Permalink Example (Servlet Environment)</display-name>

<listener>
<listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
</listener>

<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>


<context-param>
<param-name>org.jboss.weld.development</param-name>
<param-value>true</param-value>
</context-param>

<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>true</param-value>
Expand Down
Expand Up @@ -28,7 +28,12 @@
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

<display-name>Weld Permalink Example (Servlet Environment)</display-name>


<context-param>
<param-name>org.jboss.weld.development</param-name>
<param-value>true</param-value>
</context-param>

<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>true</param-value>
Expand Down
7 changes: 6 additions & 1 deletion examples/jsf/permalink/src/main/webapp/WEB-INF/web.xml
Expand Up @@ -28,7 +28,12 @@
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">

<display-name>Weld Permalink Example (Servlet Environment)</display-name>


<context-param>
<param-name>org.jboss.weld.development</param-name>
<param-value>true</param-value>
</context-param>

<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>true</param-value>
Expand Down
5 changes: 5 additions & 0 deletions examples/jsf/translator/war/src/main/webapp/WEB-INF/web.xml
Expand Up @@ -7,6 +7,11 @@

<display-name>Web Beans Numbergues example</display-name>

<context-param>
<param-name>org.jboss.weld.development</param-name>
<param-value>true</param-value>
</context-param>

<!-- JSF -->

<servlet>
Expand Down

0 comments on commit cf4693d

Please sign in to comment.