Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf726a8
commit bdb91cb
Showing
4 changed files
with
143 additions
and
0 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
10 changes: 10 additions & 0 deletions
10
examples/jsf/numberguess/src/main/webapp-jboss5-servlet/META-INF/context.xml
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Context> | ||
<Manager pathname=""/> <!-- disables storage of sessions across restarts --> | ||
<Resource name="BeanManager" | ||
auth="Container" | ||
type="javax.enterprise.inject.spi.BeanManager" | ||
factory="org.jboss.weld.resources.ManagerObjectFactory"/> | ||
<!-- Uncomment to enable injection into Servlet --> | ||
<!-- <Listener className="org.jboss.weld.environment.tomcat.WeldLifecycleListener"/> --> | ||
</Context> |
11 changes: 11 additions & 0 deletions
11
examples/jsf/numberguess/src/main/webapp-jboss5-servlet/WEB-INF/faces-config.xml
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?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_1_2.xsd" | ||
version="1.2"> | ||
<application> | ||
<view-handler>com.sun.facelets.FaceletViewHandler</view-handler> | ||
</application> | ||
|
||
</faces-config> |
51 changes: 51 additions & 0 deletions
51
examples/jsf/numberguess/src/main/webapp-jboss5-servlet/WEB-INF/web.xml
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<web-app version="2.5" | ||
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-app_2_5.xsd"> | ||
|
||
<display-name>Weld Numberguess example</display-name> | ||
|
||
<context-param> | ||
<param-name>javax.faces.DEFAULT_SUFFIX</param-name> | ||
<param-value>.xhtml</param-value> | ||
</context-param> | ||
|
||
<context-param> | ||
<param-name>facelets.REFRESH_PERIOD</param-name> | ||
<param-value>2</param-value> | ||
</context-param> | ||
<context-param> | ||
<param-name>facelets.DEVELOPMENT</param-name> | ||
<param-value>true</param-value> | ||
</context-param> | ||
|
||
<listener> | ||
<listener-class>org.jboss.weld.environment.servlet.Listener</listener-class> | ||
</listener> | ||
|
||
<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>*.jsf</url-pattern> | ||
</servlet-mapping> | ||
|
||
<session-config> | ||
<session-timeout>10</session-timeout> | ||
</session-config> | ||
|
||
<resource-env-ref> | ||
<description>Object factory for the CDI Bean Manager</description> | ||
<resource-env-ref-name>BeanManager</resource-env-ref-name> | ||
<resource-env-ref-type>javax.enterprise.inject.spi.BeanManager</resource-env-ref-type> | ||
<mapped-name>java:/comp/env/BeanManager</mapped-name> | ||
</resource-env-ref> | ||
|
||
</web-app> |