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/10/30 10:56:22 UTC
svn commit: r1195140 -
/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/SynchronizeNavigationPhaseListener.java
Author: bommel
Date: Sun Oct 30 09:56:22 2011
New Revision: 1195140
URL: http://svn.apache.org/viewvc?rev=1195140&view=rev
Log:
checkstyle
Modified:
myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/SynchronizeNavigationPhaseListener.java
Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/SynchronizeNavigationPhaseListener.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/SynchronizeNavigationPhaseListener.java?rev=1195140&r1=1195139&r2=1195140&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/SynchronizeNavigationPhaseListener.java (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/SynchronizeNavigationPhaseListener.java Sun Oct 30 09:56:22 2011
@@ -34,7 +34,8 @@ public class SynchronizeNavigationPhaseL
// synchronizing direct links with controller
FacesContext facesContext = FacesContext.getCurrentInstance();
UIViewRoot viewRoot = facesContext.getViewRoot();
- if (viewRoot != null && viewRoot.getChildCount() == 0) { // in case of direct links the ViewRoot is empty after "restore view".
+ // in case of direct links the ViewRoot is empty after "restore view".
+ if (viewRoot != null && viewRoot.getChildCount() == 0) {
String viewId = viewRoot.getViewId();
Navigation navigation = (Navigation) VariableResolverUtils.resolveVariable(facesContext, "navigation");
navigation.selectByViewId(viewId);