myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bom...@apache.org
Subject svn commit: r1067320 - /myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/java/org/apache/myfaces/tobago/example/reference/PartialReloadController.java
Date Fri, 04 Feb 2011 22:54:21 GMT
Author: bommel
Date: Fri Feb  4 22:54:20 2011
New Revision: 1067320

URL: http://svn.apache.org/viewvc?rev=1067320&view=rev
Log:
(TOBAGO-969) Support for redirect in the ajax case

Modified:
    myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/java/org/apache/myfaces/tobago/example/reference/PartialReloadController.java

Modified: myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/java/org/apache/myfaces/tobago/example/reference/PartialReloadController.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/java/org/apache/myfaces/tobago/example/reference/PartialReloadController.java?rev=1067320&r1=1067319&r2=1067320&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/java/org/apache/myfaces/tobago/example/reference/PartialReloadController.java
(original)
+++ myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/java/org/apache/myfaces/tobago/example/reference/PartialReloadController.java
Fri Feb  4 22:54:20 2011
@@ -66,6 +66,14 @@ public class PartialReloadController {
 
   private String logAndNavigate(String navValue) {
     LOG.info("Return navigate value: " + navValue + "");
+    /*try {
+      //((HttpServletResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse()).sendRedirect("/tobago-example-demo/index.jsp");
+      //FacesContext.getCurrentInstance().responseComplete();
+      AjaxUtils.redirect(FacesContext.getCurrentInstance(), "/tobago-example-demo/index.jsp");
+
+    } catch (IOException e) {
+      LOG.error("", e);
+    }*/
     return navValue;
   }
 



Mime
View raw message