You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2010/01/29 01:17:19 UTC
svn commit: r904318 - in
/myfaces/current20/test-webapp/webapp/src/main/webapp: flashg1.xhtml
flashg2.xhtml home.xhtml
Author: lu4242
Date: Fri Jan 29 00:17:18 2010
New Revision: 904318
URL: http://svn.apache.org/viewvc?rev=904318&view=rev
Log:
add new example for flash scope (thanks to Michael Kurz)
Added:
myfaces/current20/test-webapp/webapp/src/main/webapp/flashg1.xhtml
myfaces/current20/test-webapp/webapp/src/main/webapp/flashg2.xhtml
Modified:
myfaces/current20/test-webapp/webapp/src/main/webapp/home.xhtml
Added: myfaces/current20/test-webapp/webapp/src/main/webapp/flashg1.xhtml
URL: http://svn.apache.org/viewvc/myfaces/current20/test-webapp/webapp/src/main/webapp/flashg1.xhtml?rev=904318&view=auto
==============================================================================
--- myfaces/current20/test-webapp/webapp/src/main/webapp/flashg1.xhtml (added)
+++ myfaces/current20/test-webapp/webapp/src/main/webapp/flashg1.xhtml Fri Jan 29 00:17:18 2010
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:c="http://java.sun.com/jsp/jstl/core"
+ >
+<h:head>
+</h:head>
+<h:body>
+ <h:outputStylesheet name="basic.css"/>
+ <h1>Myfaces Examples</h1>
+ <c:set target="#{flash}" property="name" value="Michi (from 1)"/>
+ <h:outputText value="#{flash.name}"/>
+ <h:link outcome="flashg2" value="to page2"/>
+</h:body>
+</html>
Added: myfaces/current20/test-webapp/webapp/src/main/webapp/flashg2.xhtml
URL: http://svn.apache.org/viewvc/myfaces/current20/test-webapp/webapp/src/main/webapp/flashg2.xhtml?rev=904318&view=auto
==============================================================================
--- myfaces/current20/test-webapp/webapp/src/main/webapp/flashg2.xhtml (added)
+++ myfaces/current20/test-webapp/webapp/src/main/webapp/flashg2.xhtml Fri Jan 29 00:17:18 2010
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:c="http://java.sun.com/jsp/jstl/core"
+ >
+<h:head>
+</h:head>
+<h:body>
+ <h:outputStylesheet name="basic.css"/>
+ <h1>Myfaces Examples</h1>
+ <c:set target="#{flash}" property="name" value="Michi (from 2)"/>
+ <h:outputText value="#{flash.name}"/>
+ <h:link outcome="flashg1" value="to page1"/>
+</h:body>
+</html>
Modified: myfaces/current20/test-webapp/webapp/src/main/webapp/home.xhtml
URL: http://svn.apache.org/viewvc/myfaces/current20/test-webapp/webapp/src/main/webapp/home.xhtml?rev=904318&r1=904317&r2=904318&view=diff
==============================================================================
--- myfaces/current20/test-webapp/webapp/src/main/webapp/home.xhtml (original)
+++ myfaces/current20/test-webapp/webapp/src/main/webapp/home.xhtml Fri Jan 29 00:17:18 2010
@@ -14,11 +14,17 @@
<h:form id="form2">
<h:panelGrid id="grid" columns="1">
<h:outputLink value="flash1.jsf">
- <h:outputText value="Flash" />
+ <h:outputText value="Flash using Post" />
+ </h:outputLink>
+ <h:outputLink value="flashprg1.jsf">
+ <h:outputText value="Flash using Post-Redirect-Get" />
</h:outputLink>
<h:outputLink value="flashhw1.jsf">
<h:outputText value="Flash Hello World" />
</h:outputLink>
+ <h:outputLink value="flashg1.jsf">
+ <h:outputText value="Flash using GET" />
+ </h:outputLink>
<h:outputLink value="ajax1n.jsf">
<h:outputText value="Ajax 1" />
</h:outputLink>