[jboss-svn-commits] JBoss Portal SVN: r5415 - trunk/core/src/main/org/jboss/portal/core/aspects/controller

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Oct 11 08:24:02 EDT 2006


Author: julien at jboss.com
Date: 2006-10-11 08:24:00 -0400 (Wed, 11 Oct 2006)
New Revision: 5415

Modified:
   trunk/core/src/main/org/jboss/portal/core/aspects/controller/PageCustomizerInterceptor.java
Log:
don't show tabs in dashboard

Modified: trunk/core/src/main/org/jboss/portal/core/aspects/controller/PageCustomizerInterceptor.java
===================================================================
--- trunk/core/src/main/org/jboss/portal/core/aspects/controller/PageCustomizerInterceptor.java	2006-10-11 12:08:36 UTC (rev 5414)
+++ trunk/core/src/main/org/jboss/portal/core/aspects/controller/PageCustomizerInterceptor.java	2006-10-11 12:24:00 UTC (rev 5415)
@@ -88,22 +88,26 @@
          PageRendition rendition = (PageRendition)rpc.getResponse();
          if (rendition != null)
          {
-            StringBuffer tabbedNav = injectTabbedNav(rpc);
-            if (tabbedNav != null)
+            // No tab in dashboard mode
+            if (rpc.isDashboard() == false)
             {
-               Map windowProps = new HashMap();
+               StringBuffer tabbedNav = injectTabbedNav(rpc);
+               if (tabbedNav != null)
+               {
+                  Map windowProps = new HashMap();
 
-               windowProps.put(ThemeConstants.PORTAL_PROP_WINDOW_RENDERER, "emptyRenderer");
-               windowProps.put(ThemeConstants.PORTAL_PROP_DECORATION_RENDERER, "emptyRenderer");
-               windowProps.put(ThemeConstants.PORTAL_PROP_PORTLET_RENDERER, "emptyRenderer");
-               WindowResult res = new ModifiableWindowResult("", tabbedNav.toString(), Collections.EMPTY_MAP, windowProps, null, null, WindowState.NORMAL, Mode.VIEW);
-               WindowContext blah = new WindowContext("BLAH", "BLAH", "navigation", 0);
-               rendition.getPageResult().addWindowContext(blah);
-               rendition.getPageResult().addWindowResult("BLAH", res);
+                  windowProps.put(ThemeConstants.PORTAL_PROP_WINDOW_RENDERER, "emptyRenderer");
+                  windowProps.put(ThemeConstants.PORTAL_PROP_DECORATION_RENDERER, "emptyRenderer");
+                  windowProps.put(ThemeConstants.PORTAL_PROP_PORTLET_RENDERER, "emptyRenderer");
+                  WindowResult res = new ModifiableWindowResult("", tabbedNav.toString(), Collections.EMPTY_MAP, windowProps, null, null, WindowState.NORMAL, Mode.VIEW);
+                  WindowContext blah = new WindowContext("BLAH", "BLAH", "navigation", 0);
+                  rendition.getPageResult().addWindowContext(blah);
+                  rendition.getPageResult().addWindowResult("BLAH", res);
 
-               //
-               Region region = rendition.getPageResult().getRegion("navigation");
-               region.setProperty(ThemeConstants.PORTAL_AJAX_OBJECT_DISABLED, "true");
+                  //
+                  Region region = rendition.getPageResult().getRegion("navigation");
+                  region.setProperty(ThemeConstants.PORTAL_AJAX_OBJECT_DISABLED, "true");
+               }
             }
 
             StringBuffer dashboardNav = injectDashboardNav(rpc);




More information about the jboss-svn-commits mailing list