[jboss-svn-commits] JBL Code SVN: r14300 - in labs/shotoku/trunk/shotoku-cache/cache-admin/src/web: WEB-INF and 1 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Aug 16 05:46:04 EDT 2007
Author: adamw
Date: 2007-08-16 05:46:04 -0400 (Thu, 16 Aug 2007)
New Revision: 14300
Added:
labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/WEB-INF/
labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/WEB-INF/faces-config.xml
labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/WEB-INF/web.xml
labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/index.jsp
labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/pages/
labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/pages/admin.jsp
Log:
Admin boootstrap
Added: labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/WEB-INF/faces-config.xml
===================================================================
--- labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/WEB-INF/faces-config.xml (rev 0)
+++ labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/WEB-INF/faces-config.xml 2007-08-16 09:46:04 UTC (rev 14300)
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC
+ "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>admin</managed-bean-name>
+ <managed-bean-class>org.jboss.shotoku.cache.admin.AdminBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+</faces-config>
\ No newline at end of file
Added: labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/WEB-INF/web.xml
===================================================================
--- labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/WEB-INF/web.xml (rev 0)
+++ labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/WEB-INF/web.xml 2007-08-16 09:46:04 UTC (rev 14300)
@@ -0,0 +1,99 @@
+<?xml version="1.0"?>
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
+ http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+ version="2.4">
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>server</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
+ <param-value>false</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
+ <param-value>true</param-value>
+ </context-param>
+
+
+ <!-- WelcomeFile Filter -->
+ <!--
+ <filter>
+ <filter-name>WelcomeFile Filter</filter-name>
+ <filter-class>org.apache.myfaces.webapp.filter.WelcomeFileFilter</filter-class>
+ <description>
+ Due to the manner in which the JSP / servlet lifecycle
+ functions, it is not currently possible to specify default
+ welcome files for a web application and map them to the
+ MyFacesServlet. Normally they will be mapped to the
+ default servlet for the JSP container. To offset this
+ shortcoming, we utilize a servlet Filter which examines
+ the URI of all incoming requests.
+ </description>
+ </filter>
+ -->
+
+ <filter>
+ <filter-name>ajax4jsf</filter-name>
+ <filter-class>org.ajax4jsf.Filter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>ajax4jsf</filter-name>
+ <servlet-name>Faces Servlet</servlet-name>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>INCLUDE</dispatcher>
+ </filter-mapping>
+
+ <!-- Listener, that does all the startup work (configuration, init). -->
+ <listener>
+ <listener-class>
+ org.apache.myfaces.webapp.StartupServletContextListener
+ </listener-class>
+ </listener>
+
+ <!-- Faces Servlet -->
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+
+ <!-- Faces Servlet Mapping -->
+
+ <!-- virtual path mapping -->
+
+ <!--
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>/faces/*</url-pattern>
+ </servlet-mapping>
+ -->
+
+ <!-- extension mapping -->
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+
+
+ <!-- Welcome files -->
+
+ <welcome-file-list>
+ <welcome-file>index.jsf</welcome-file>
+ <welcome-file>index.jsp</welcome-file>
+ <welcome-file>index.html</welcome-file>
+ </welcome-file-list>
+
+</web-app>
Added: labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/index.jsp
===================================================================
--- labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/index.jsp (rev 0)
+++ labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/index.jsp 2007-08-16 09:46:04 UTC (rev 14300)
@@ -0,0 +1,5 @@
+<html>
+ <body>
+ <jsp:forward page="/pages/admin.jsf" />
+ </body>
+</html>
Added: labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/pages/admin.jsp
===================================================================
--- labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/pages/admin.jsp (rev 0)
+++ labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/pages/admin.jsp 2007-08-16 09:46:04 UTC (rev 14300)
@@ -0,0 +1,21 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
+
+<html>
+ <head>
+ <title>Hello world page.</title>
+ </head>
+ <body>
+ <f:view>
+ <h1><h:outputText value="#{admin.text}" /></h1>
+
+ <h:form>
+ <h:inputText size="50" value="#{admin.testText}">
+ <a4j:support event="onkeyup" reRender="rep" />
+ </h:inputText>
+ <h:outputText value="#{admin.testText}" id="rep" />
+ </h:form>
+ </f:view>
+ </body>
+</html>
More information about the jboss-svn-commits
mailing list