Author: taylor Date: Wed Nov 11 04:56:43 2009 New Revision: 834770 URL: http://svn.apache.org/viewvc?rev=834770&view=rev Log: https://issues.apache.org/jira/browse/JS2-1080 Breadcrumbs for Jet UI jetui.jsp, jetui-portlet.jsp https://issues.apache.org/jira/browse/JS2-1081 A Page without portlets breaks CSS in Jet UI PageTheme.java jetui.jsp, jetui-portlet.jsp Modified: portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/WEB-INF/jetui/yui/jetui-portlet.jsp portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/WEB-INF/jetui/yui/jetui.jsp portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/decoration/PageTheme.java Modified: portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/WEB-INF/jetui/yui/jetui-portlet.jsp URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/WEB-INF/jetui/yui/jetui-portlet.jsp?rev=834770&r1=834769&r2=834770&view=diff ============================================================================== --- portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/WEB-INF/jetui/yui/jetui-portlet.jsp (original) +++ portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/WEB-INF/jetui/yui/jetui-portlet.jsp Wed Nov 11 04:56:43 2009 @@ -30,7 +30,7 @@ <%@ page import="org.apache.jetspeed.PortalReservedParameters" %> <% String content = (String)request.getAttribute("content"); - String pageDec = (String)request.getAttribute("pageDec"); + String decorator = (String)request.getAttribute("decorator"); ContentFragment fragment = (ContentFragment)request.getAttribute("fragment"); LayoutCoordinate coordinate = (LayoutCoordinate)request.getAttribute("coordinate"); String title = ""; @@ -38,7 +38,7 @@ title = fragment.getPortletContent().getTitle(); %>
-
+
<%=title%>
Modified: portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/WEB-INF/jetui/yui/jetui.jsp URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/WEB-INF/jetui/yui/jetui.jsp?rev=834770&r1=834769&r2=834770&view=diff ============================================================================== --- portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/WEB-INF/jetui/yui/jetui.jsp (original) +++ portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/WEB-INF/jetui/yui/jetui.jsp Wed Nov 11 04:56:43 2009 @@ -37,13 +37,14 @@ String navContent = jetui.renderPortletWindow("_PageNavigator", "j2-admin::PageNavigator", rc); String spacesNavContent = jetui.renderPortletWindow("_SpaceNavigator", "j2-admin::SpaceNavigator", rc); String tbContent = jetui.renderPortletWindow("_JetspeedToolbox", "j2-admin::JetspeedToolbox", rc); + String breadcrumbs = jetui.renderPortletWindow("_BreadcrumbMenu", "j2-admin::BreadcrumbMenu", rc); String encoding = "text/html"; if (response.getCharacterEncoding() != null) { encoding += "; charset=" + response.getCharacterEncoding(); } String baseUrl = jetui.getBaseURL(rc); - String pageDec = jetui.getTheme(rc).getPageLayoutDecoration().getName(); + String pageDec = jetui.getTheme(rc).getPageLayoutDecoration().getName(); %> @@ -100,6 +101,7 @@
+
 <%=breadcrumbs%>
<% ContentFragment maximized = (ContentFragment)request.getAttribute(PortalReservedParameters.MAXIMIZED_FRAGMENT_ATTRIBUTE); @@ -107,9 +109,12 @@ { String content = jetui.getRenderedContent(maximized, rc); request.setAttribute("content", content); - request.setAttribute("pageDec", pageDec); + String decorator = maximized.getDecorator(); + if (decorator == null) + decorator = pageDec; + request.setAttribute("decorator", decorator); request.setAttribute("fragment", maximized); - request.setAttribute("coordinate", columnLayout.getCoordinate(maximized)); + request.setAttribute("coordinate", columnLayout.getCoordinate(maximized)); %>
Modified: portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/decoration/PageTheme.java URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/decoration/PageTheme.java?rev=834770&r1=834769&r2=834770&view=diff ============================================================================== --- portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/decoration/PageTheme.java (original) +++ portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/decoration/PageTheme.java Wed Nov 11 04:56:43 2009 @@ -73,6 +73,13 @@ } } } + if (!portletDecorationNames.containsKey(this.layoutDecoration.getName())) + { + portletDecorationNames.put(this.layoutDecoration.getName(), this.layoutDecoration.getName()); + Decoration decoration = decorationFactory.getPortletDecoration(this.layoutDecoration.getName(), requestContext); + this.styleSheets.add(decoration.getStyleSheet()); + this.styleSheets.add(decoration.getStyleSheetPortal()); + } this.portletDecorationNames = Collections.unmodifiableCollection( new ArrayList( portletDecorationNames.keySet() ) ); } --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org For additional commands, e-mail: jetspeed-dev-help@portals.apache.org