Return-Path: Delivered-To: apmail-myfaces-commits-archive@www.apache.org Received: (qmail 22244 invoked from network); 29 Jul 2010 16:26:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Jul 2010 16:26:40 -0000 Received: (qmail 69792 invoked by uid 500); 29 Jul 2010 16:26:40 -0000 Delivered-To: apmail-myfaces-commits-archive@myfaces.apache.org Received: (qmail 69672 invoked by uid 500); 29 Jul 2010 16:26:40 -0000 Mailing-List: contact commits-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list commits@myfaces.apache.org Received: (qmail 69665 invoked by uid 99); 29 Jul 2010 16:26:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jul 2010 16:26:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jul 2010 16:26:36 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 9AB6223889EB; Thu, 29 Jul 2010 16:25:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r980499 - in /myfaces/current20/test-webapp/webapp: ./ src/main/java/org/apache/myfaces/flash/ src/main/resources/org/apache/myfaces/examples/resource/ src/main/webapp/ src/main/webapp/WEB-INF/ Date: Thu, 29 Jul 2010 16:25:14 -0000 To: commits@myfaces.apache.org From: jakobk@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100729162514.9AB6223889EB@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jakobk Date: Thu Jul 29 16:25:14 2010 New Revision: 980499 URL: http://svn.apache.org/viewvc?rev=980499&view=rev Log: display the current jsf implementation in home.xhtml + added another flash example Added: myfaces/current20/test-webapp/webapp/src/main/webapp/flashKeep1.xhtml (with props) myfaces/current20/test-webapp/webapp/src/main/webapp/flashKeep2.xhtml (with props) myfaces/current20/test-webapp/webapp/src/main/webapp/flashKeep3.xhtml (with props) Modified: myfaces/current20/test-webapp/webapp/pom.xml myfaces/current20/test-webapp/webapp/src/main/java/org/apache/myfaces/flash/HelloWorldFlashBean.java myfaces/current20/test-webapp/webapp/src/main/resources/org/apache/myfaces/examples/resource/build.properties myfaces/current20/test-webapp/webapp/src/main/webapp/WEB-INF/faces-config.xml myfaces/current20/test-webapp/webapp/src/main/webapp/home.xhtml Modified: myfaces/current20/test-webapp/webapp/pom.xml URL: http://svn.apache.org/viewvc/myfaces/current20/test-webapp/webapp/pom.xml?rev=980499&r1=980498&r2=980499&view=diff ============================================================================== --- myfaces/current20/test-webapp/webapp/pom.xml (original) +++ myfaces/current20/test-webapp/webapp/pom.xml Thu Jul 29 16:25:14 2010 @@ -77,6 +77,13 @@ + + + src/main/resources + true + + + test-webapp @@ -177,6 +184,9 @@ !jsf + + MyFaces ${jsf-myfaces.version} + org.apache.myfaces.core @@ -200,6 +210,9 @@ ri + + Mojarra ${jsf-ri.version} + com.sun.faces Modified: myfaces/current20/test-webapp/webapp/src/main/java/org/apache/myfaces/flash/HelloWorldFlashBean.java URL: http://svn.apache.org/viewvc/myfaces/current20/test-webapp/webapp/src/main/java/org/apache/myfaces/flash/HelloWorldFlashBean.java?rev=980499&r1=980498&r2=980499&view=diff ============================================================================== --- myfaces/current20/test-webapp/webapp/src/main/java/org/apache/myfaces/flash/HelloWorldFlashBean.java (original) +++ myfaces/current20/test-webapp/webapp/src/main/java/org/apache/myfaces/flash/HelloWorldFlashBean.java Thu Jul 29 16:25:14 2010 @@ -112,6 +112,29 @@ public class HelloWorldFlashBean { return "success"; } + + public String keepRedirect() + { + FacesContext facesContext = FacesContext.getCurrentInstance(); + ExternalContext externalContext = facesContext.getExternalContext(); + Flash flash = externalContext.getFlash(); + + flash.putNow("name", getName()); + flash.keep("name"); + + return "flashKeep2.xhtml?faces-redirect=true"; + } + + public String keepPostback() + { + FacesContext facesContext = FacesContext.getCurrentInstance(); + ExternalContext externalContext = facesContext.getExternalContext(); + Flash flash = externalContext.getFlash(); + + flash.keep("name"); // does not work here anymore + + return "flashKeep3.xhtml"; + } public String back(){ Modified: myfaces/current20/test-webapp/webapp/src/main/resources/org/apache/myfaces/examples/resource/build.properties URL: http://svn.apache.org/viewvc/myfaces/current20/test-webapp/webapp/src/main/resources/org/apache/myfaces/examples/resource/build.properties?rev=980499&r1=980498&r2=980499&view=diff ============================================================================== --- myfaces/current20/test-webapp/webapp/src/main/resources/org/apache/myfaces/examples/resource/build.properties (original) +++ myfaces/current20/test-webapp/webapp/src/main/resources/org/apache/myfaces/examples/resource/build.properties Thu Jul 29 16:25:14 2010 @@ -1,4 +1,3 @@ # Do not edit this file, as it will be completed automatically # by maven during the build process -tomahawk_version=${pom.version} -jsf_implementation=${jsf_implementation} +jsfImpl=${jsfImpl} Modified: myfaces/current20/test-webapp/webapp/src/main/webapp/WEB-INF/faces-config.xml URL: http://svn.apache.org/viewvc/myfaces/current20/test-webapp/webapp/src/main/webapp/WEB-INF/faces-config.xml?rev=980499&r1=980498&r2=980499&view=diff ============================================================================== --- myfaces/current20/test-webapp/webapp/src/main/webapp/WEB-INF/faces-config.xml (original) +++ myfaces/current20/test-webapp/webapp/src/main/webapp/WEB-INF/faces-config.xml Thu Jul 29 16:25:14 2010 @@ -320,6 +320,10 @@ org.apache.myfaces.examples.resource.example_messages bundle + + org.apache.myfaces.examples.resource.build + build + \ No newline at end of file Added: myfaces/current20/test-webapp/webapp/src/main/webapp/flashKeep1.xhtml URL: http://svn.apache.org/viewvc/myfaces/current20/test-webapp/webapp/src/main/webapp/flashKeep1.xhtml?rev=980499&view=auto ============================================================================== --- myfaces/current20/test-webapp/webapp/src/main/webapp/flashKeep1.xhtml (added) +++ myfaces/current20/test-webapp/webapp/src/main/webapp/flashKeep1.xhtml Thu Jul 29 16:25:14 2010 @@ -0,0 +1,41 @@ + + + + + + + + +

Myfaces Examples

+ +

+ + + + + +
+
+ Propchange: myfaces/current20/test-webapp/webapp/src/main/webapp/flashKeep1.xhtml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: myfaces/current20/test-webapp/webapp/src/main/webapp/flashKeep1.xhtml ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: myfaces/current20/test-webapp/webapp/src/main/webapp/flashKeep2.xhtml URL: http://svn.apache.org/viewvc/myfaces/current20/test-webapp/webapp/src/main/webapp/flashKeep2.xhtml?rev=980499&view=auto ============================================================================== --- myfaces/current20/test-webapp/webapp/src/main/webapp/flashKeep2.xhtml (added) +++ myfaces/current20/test-webapp/webapp/src/main/webapp/flashKeep2.xhtml Thu Jul 29 16:25:14 2010 @@ -0,0 +1,39 @@ + + + + + + + + +

Myfaces Examples

+ +

+ + Your name is: #{flash.name}
+ +
+
+ Propchange: myfaces/current20/test-webapp/webapp/src/main/webapp/flashKeep2.xhtml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: myfaces/current20/test-webapp/webapp/src/main/webapp/flashKeep2.xhtml ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: myfaces/current20/test-webapp/webapp/src/main/webapp/flashKeep3.xhtml URL: http://svn.apache.org/viewvc/myfaces/current20/test-webapp/webapp/src/main/webapp/flashKeep3.xhtml?rev=980499&view=auto ============================================================================== --- myfaces/current20/test-webapp/webapp/src/main/webapp/flashKeep3.xhtml (added) +++ myfaces/current20/test-webapp/webapp/src/main/webapp/flashKeep3.xhtml Thu Jul 29 16:25:14 2010 @@ -0,0 +1,37 @@ + + + + + + + + +

Myfaces Examples

+ +

+ + This is now empty: #{flash.name} +
+
+ Propchange: myfaces/current20/test-webapp/webapp/src/main/webapp/flashKeep3.xhtml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: myfaces/current20/test-webapp/webapp/src/main/webapp/flashKeep3.xhtml ------------------------------------------------------------------------------ svn:mime-type = text/plain 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=980499&r1=980498&r2=980499&view=diff ============================================================================== --- myfaces/current20/test-webapp/webapp/src/main/webapp/home.xhtml (original) +++ myfaces/current20/test-webapp/webapp/src/main/webapp/home.xhtml Thu Jul 29 16:25:14 2010 @@ -10,7 +10,9 @@ -

Myfaces Examples JSF 2.0 Additions

+

MyFaces Examples running on #{build.jsfImpl}

+ +

Myfaces Examples JSF 2.0 Additions

@@ -25,6 +27,9 @@ + + + @@ -43,7 +48,7 @@ -

Myfaces Examples JSF 1.2 Additions

+

Myfaces Examples JSF 1.2 Additions