[richfaces-svn-commits] JBoss Rich Faces SVN: r5958 - in trunk/sandbox/samples/inplaceInput-sample/src/main/webapp: WEB-INF and 1 other directories.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Fri Feb 8 12:05:47 EST 2008


Author: vmolotkov
Date: 2008-02-08 12:05:47 -0500 (Fri, 08 Feb 2008)
New Revision: 5958

Added:
   trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/index.jsp
Modified:
   trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/WEB-INF/web.xml
   trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp
   trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.xhtml
Log:
inplaceInput demo

Modified: trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/WEB-INF/web.xml	2008-02-08 16:51:08 UTC (rev 5957)
+++ trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/WEB-INF/web.xml	2008-02-08 17:05:47 UTC (rev 5958)
@@ -2,37 +2,31 @@
 <web-app version="2.4" 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">
  <display-name>Archetype Created Web Application</display-name>
+
+  <context-param>
+  	<param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
+  	<param-value>com.sun.facelets.FaceletViewHandler</param-value>
+ </context-param>
  <context-param>
+ 	<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ 	<param-value>.xhtml</param-value>
+ </context-param>  
+ <context-param>
   <param-name>javax.faces.CONFIG_FILES</param-name>
   <param-value>/WEB-INF/faces-config.xml</param-value>
  </context-param>
  <context-param>
+  <param-name>org.ajax4jsf.SKIN</param-name>
+  <param-value>#{skinBean.skin}</param-value>
+ </context-param>
+ <context-param>
   <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
   <param-value>server</param-value>
  </context-param>
- <!-- Use Documents Saved as *.xhtml -->	
- <context-param>
-    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
-    <param-value>.jsp</param-value>
-  </context-param>
-
-  <!-- Facelets pages will use the .xhtml extension -->
   <context-param>
-    <param-name>facelets.VIEW_MAPPINGS</param-name>
-    <param-value>*xhtml</param-value>
-  </context-param>   
-  
-   <context-param>
-  <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
-  <param-value>com.sun.facelets.FaceletViewHandler</param-value>
- </context-param>
-
- <context-param>
-  <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
-  <param-value>false</param-value>
- </context-param>
- <!-- 
- --> 
+	<param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
+	<param-value>false</param-value>
+</context-param>
  <filter>
   <display-name>Ajax4jsf Filter</display-name>
   <filter-name>ajax4jsf</filter-name>
@@ -44,21 +38,20 @@
   <dispatcher>REQUEST</dispatcher>
   <dispatcher>FORWARD</dispatcher>
   <dispatcher>INCLUDE</dispatcher>
-  <dispatcher>ERROR</dispatcher>
  </filter-mapping>
- <!-- Faces Servlet -->
-  <servlet>
-    <servlet-name>Faces Servlet</servlet-name>
-    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
-  </servlet>
- 
-  <!-- Use prefix mapping for Facelets pages, e.g. http://localhost:8080/webapp/faces/mypage.xhtml -->
-  <servlet-mapping>
-    <servlet-name>Faces Servlet</servlet-name>
-    <url-pattern>/faces/*</url-pattern>
-  </servlet-mapping>
-
- 
+ <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>/faces/*</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+  <servlet-name>Faces Servlet</servlet-name>
+  <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
  <login-config>
   <auth-method>BASIC</auth-method>
  </login-config>

Copied: trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/index.jsp (from rev 5860, trunk/samples/listShuttleDemo/src/main/webapp/index.jsp)
===================================================================
--- trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/index.jsp	                        (rev 0)
+++ trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/index.jsp	2008-02-08 17:05:47 UTC (rev 5958)
@@ -0,0 +1,11 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+
+<html>
+
+<head></head>
+
+	<body>
+		<jsp:forward page="/pages/index.jsf" />
+	</body>
+
+</html>
\ No newline at end of file

Modified: trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp	2008-02-08 16:51:08 UTC (rev 5957)
+++ trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp	2008-02-08 17:05:47 UTC (rev 5958)
@@ -0,0 +1,27 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/ui/inplaceInput" prefix="ii"%>
+<html>
+	<head>
+		<title></title>
+	</head>
+	<body>
+		<f:view>
+			
+			<h:form>
+				<h:selectOneRadio binding="#{skinBean.component}" />
+				<h:commandLink action="#{skinBean.change}" value="set skin" />
+				<h:outputText value="Current skin: #{skinBean.skin}"/><br />
+			</h:form>
+									
+			<h:form>
+														
+				<ii:inplaceInput value="Perec"/>
+				<br/>
+				<h:commandButton action="none" value="submit"></h:commandButton>
+				<br>
+			</h:form>
+		</f:view>
+	</body>	
+</html>  

Modified: trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.xhtml
===================================================================
--- trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.xhtml	2008-02-08 16:51:08 UTC (rev 5957)
+++ trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.xhtml	2008-02-08 17:05:47 UTC (rev 5958)
@@ -0,0 +1,29 @@
+<!--  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  --> 
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
+<html xmlns="http://www.w3.org/1999/xhtml"
+	  xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:ui="http://java.sun.com/jsf/facelets"
+      xmlns:ii="http://labs.jboss.com/jbossrichfaces/ui/ui/inplaceInput">
+      
+ <head>
+		<title></title>
+	</head>
+	<body>
+		<f:view>
+			
+			<h:form>
+				<h:selectOneRadio binding="#{skinBean.component}" />
+				<h:commandLink action="#{skinBean.change}" value="set skin" />
+				<h:outputText value="Current skin: #{skinBean.skin}"/><br />
+			</h:form>
+									
+			<h:form>
+				
+				<ii:inplaceInput value="Perec"/>		
+				<br/>
+				<h:commandButton action="none" value="submit"></h:commandButton>
+			</h:form>
+		</f:view>
+	</body>	
+</html>      
\ No newline at end of file




More information about the richfaces-svn-commits mailing list