You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2011/02/05 00:06:11 UTC
svn commit: r1067333 -
/myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/java/org/apache/myfaces/tobago/example/reference/PartialReloadController.java
Author: bommel
Date: Fri Feb 4 23:06:11 2011
New Revision: 1067333
URL: http://svn.apache.org/viewvc?rev=1067333&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=1067333&r1=1067332&r2=1067333&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 23:06:11 2011
@@ -67,7 +67,8 @@ 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");
+ //((HttpServletResponse) FacesContext.getCurrentInstance()
+ //.getExternalContext().getResponse()).sendRedirect("/tobago-example-demo/index.jsp");
//FacesContext.getCurrentInstance().responseComplete();
AjaxUtils.redirect(FacesContext.getCurrentInstance(), "/tobago-example-demo/index.jsp");