Author: chris.laprun(a)jboss.com
Date: 2008-08-10 16:22:59 -0400 (Sun, 10 Aug 2008)
New Revision: 11684
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/confirmDeleteInstance.xhtml
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/dashboards.xhtml
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/displayNameObject.xhtml
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editContext.xhtml
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPage.xhtml
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPageLayout.xhtml
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPageSecurity.xhtml
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPageTheme.xhtml
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPortalSecurity.xhtml
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPortalTheme.xhtml
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editProperties.xhtml
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editWindowSecurity.xhtml
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editWindowTheme.xhtml
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/instances.xhtml
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/objectNavigation.xhtml
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/objectTemplate.xhtml
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/objects.xhtml
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/portlets.xhtml
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/renameObject.xhtml
Log:
- No need to load bundle on each page as it's loaded in the templates...
- renameObject wasn't using a localized value.
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/confirmDeleteInstance.xhtml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/confirmDeleteInstance.xhtml 2008-08-10
20:04:17 UTC (rev 11683)
+++
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/confirmDeleteInstance.xhtml 2008-08-10
20:22:59 UTC (rev 11684)
@@ -7,7 +7,6 @@
xmlns:c="http://java.sun.com/jstl/core"
class="admin-ui">
- <f:loadBundle basename="Resource" var="bundle" />
<ui:composition template="instancesTemplate.xhtml">
<ui:define name="content">
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/dashboards.xhtml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/dashboards.xhtml 2008-08-10
20:04:17 UTC (rev 11683)
+++
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/dashboards.xhtml 2008-08-10
20:22:59 UTC (rev 11684)
@@ -5,7 +5,6 @@
xmlns:c="http://java.sun.com/jstl/core"
template="dashboardsTemplate.xhtml">
- <f:loadBundle basename="Resource" var="bundle" />
<ui:define name="content">
<!-- -->
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/displayNameObject.xhtml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/displayNameObject.xhtml 2008-08-10
20:04:17 UTC (rev 11683)
+++
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/displayNameObject.xhtml 2008-08-10
20:22:59 UTC (rev 11684)
@@ -4,8 +4,7 @@
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jstl/core">
- <f:loadBundle basename="Resource" var="bundle" />
- <ui:composition template="/jsf/objectTemplate.xhtml">
+ <ui:composition template="objectTemplate.xhtml">
<ui:param name="portalObjectScreen"
value="#{bundle.DISPLAY_NAMES}"/>
<ui:define name="content">
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editContext.xhtml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editContext.xhtml 2008-08-10
20:04:17 UTC (rev 11683)
+++
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editContext.xhtml 2008-08-10
20:22:59 UTC (rev 11684)
@@ -5,7 +5,6 @@
xmlns:h="http://java.sun.com/jsf/html"
xmlns:c="http://java.sun.com/jstl/core">
- <f:loadBundle basename="Resource" var="bundle" />
<ui:composition template="objectTemplate.xhtml">
<ui:define name="content">
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPage.xhtml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPage.xhtml 2008-08-10
20:04:17 UTC (rev 11683)
+++
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPage.xhtml 2008-08-10
20:22:59 UTC (rev 11684)
@@ -5,7 +5,6 @@
xmlns:c="http://java.sun.com/jstl/core"
xmlns:h="http://java.sun.com/jsf/html">
- <f:loadBundle basename="Resource" var="bundle" />
<ui:composition template="objectTemplate.xhtml">
<ui:define name="content">
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPageLayout.xhtml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPageLayout.xhtml 2008-08-10
20:04:17 UTC (rev 11683)
+++
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPageLayout.xhtml 2008-08-10
20:22:59 UTC (rev 11684)
@@ -6,7 +6,6 @@
xmlns:ct="http://www.julien.com"
xmlns:jbp="http://www.jboss.org/portal"
xmlns:c="http://java.sun.com/jstl/core">
- <f:loadBundle basename="Resource" var="bundle" />
<ui:composition template="objectTemplate.xhtml">
<ui:param name="portalObjectScreen"
value="#{bundle.COMMON_LAYOUT}"/>
<ui:define name="content">
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPageSecurity.xhtml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPageSecurity.xhtml 2008-08-10
20:04:17 UTC (rev 11683)
+++
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPageSecurity.xhtml 2008-08-10
20:22:59 UTC (rev 11684)
@@ -3,7 +3,6 @@
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
- <f:loadBundle basename="Resource" var="bundle" />
<ui:composition template="objectTemplate.xhtml">
<ui:param name="portalObjectScreen"
value="#{bundle.SECURITY}"/>
<ui:define name="content">
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPageTheme.xhtml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPageTheme.xhtml 2008-08-10
20:04:17 UTC (rev 11683)
+++
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPageTheme.xhtml 2008-08-10
20:22:59 UTC (rev 11684)
@@ -3,7 +3,6 @@
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
- <f:loadBundle basename="Resource" var="bundle" />
<ui:composition template="objectTemplate.xhtml">
<ui:param name="portalObjectScreen"
value="#{bundle.THEME}"/>
<ui:define name="content">
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPortalSecurity.xhtml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPortalSecurity.xhtml 2008-08-10
20:04:17 UTC (rev 11683)
+++
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPortalSecurity.xhtml 2008-08-10
20:22:59 UTC (rev 11684)
@@ -3,8 +3,7 @@
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
- <f:loadBundle basename="Resource" var="bundle" />
- <ui:composition template="/jsf/objectTemplate.xhtml">
+ <ui:composition template="objectTemplate.xhtml">
<ui:param name="portalObjectScreen"
value="#{bundle.SECURITY}"/>
<ui:define name="content">
<h3>#{bundle.SET_PORTAL_PERMISSIONS}</h3>
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPortalTheme.xhtml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPortalTheme.xhtml 2008-08-10
20:04:17 UTC (rev 11683)
+++
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPortalTheme.xhtml 2008-08-10
20:22:59 UTC (rev 11684)
@@ -3,7 +3,6 @@
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
- <f:loadBundle basename="Resource" var="bundle" />
<ui:composition template="objectTemplate.xhtml">
<ui:param name="portalObjectScreen"
value="#{bundle.THEME}"/>
<ui:define name="content">
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editProperties.xhtml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editProperties.xhtml 2008-08-10
20:04:17 UTC (rev 11683)
+++
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editProperties.xhtml 2008-08-10
20:22:59 UTC (rev 11684)
@@ -5,7 +5,6 @@
xmlns:h="http://java.sun.com/jsf/html"
xmlns:c="http://java.sun.com/jstl/core">
- <f:loadBundle basename="Resource" var="bundle" />
<ui:composition template="objectTemplate.xhtml">
<ui:param name="portalObjectScreen"
value="#{bundle.COMMON_PROPERTIES}"/>
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editWindowSecurity.xhtml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editWindowSecurity.xhtml 2008-08-10
20:04:17 UTC (rev 11683)
+++
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editWindowSecurity.xhtml 2008-08-10
20:22:59 UTC (rev 11684)
@@ -3,7 +3,6 @@
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
- <f:loadBundle basename="Resource" var="bundle" />
<ui:composition template="objectTemplate.xhtml">
<ui:param name="portalObjectScreen"
value="#{bundle.SECURITY}"/>
<ui:define name="content">
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editWindowTheme.xhtml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editWindowTheme.xhtml 2008-08-10
20:04:17 UTC (rev 11683)
+++
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editWindowTheme.xhtml 2008-08-10
20:22:59 UTC (rev 11684)
@@ -3,7 +3,6 @@
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
- <f:loadBundle basename="Resource" var="bundle" />
<ui:composition template="objectTemplate.xhtml">
<ui:param name="portalObjectScreen"
value="#{bundle.THEME}"/>
<ui:define name="content">
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/instances.xhtml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/instances.xhtml 2008-08-10
20:04:17 UTC (rev 11683)
+++
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/instances.xhtml 2008-08-10
20:22:59 UTC (rev 11684)
@@ -6,7 +6,6 @@
xmlns:jbp="http://www.jboss.com/portal"
xmlns:c="http://java.sun.com/jstl/core">
-<f:loadBundle basename="Resource" var="bundle" />
<ui:composition template="instancesTemplate.xhtml">
<ui:define name="content">
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/objectNavigation.xhtml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/objectNavigation.xhtml 2008-08-10
20:04:17 UTC (rev 11683)
+++
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/objectNavigation.xhtml 2008-08-10
20:22:59 UTC (rev 11684)
@@ -7,8 +7,6 @@
xmlns:pfc="http://www.jboss.com/portal/facelet/common"
xmlns:c="http://java.sun.com/jstl/core">
-
-<f:loadBundle basename="Resource" var="bundle"/>
<h:form>
<c:if test="#{not empty portalobjectmgr.selectedObject.portals}">
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/objectTemplate.xhtml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/objectTemplate.xhtml 2008-08-10
20:04:17 UTC (rev 11683)
+++
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/objectTemplate.xhtml 2008-08-10
20:22:59 UTC (rev 11684)
@@ -33,23 +33,23 @@
<li class="pathSeparator"><h:graphicImage
url="/img/pathSeparator.png" alt=">"/></li>
</c:if>
<li class="#{node.id == portalobjectmgr.selectedObject.id ?
'selected' : 'pathItem'}">
- <c:choose>
- <c:when
test="#{fn:startsWith(node.declaredProperties['portal.windowContentType'],
'widget/')}">
- <!-- If window is of contentType widget -->
- <h:panelGroup
rendered="#{fn:startsWith(node.declaredProperties['portal.windowContentType'],
'widget/')}">
- <span class="objectName">#{node.name}</span>
#{node.typeName}
- </h:panelGroup>
- </c:when>
- <c:otherwise>
- <h:commandLink
action="#{portalobjectmgr.selectObject}">
- <f:param name="id"
value="#{node.id}"/>
- <c:choose>
- <c:when test="#{node.type ==
PortalObject.TYPE_CONTEXT}">#{bundle.PORTALS}</c:when>
- <c:otherwise><span
class="objectName">#{node.name}</span>
#{node.typeName}</c:otherwise>
- </c:choose>
- </h:commandLink>
- </c:otherwise>
- </c:choose>
+ <c:choose>
+ <c:when
test="#{fn:startsWith(node.declaredProperties['portal.windowContentType'],
'widget/')}">
+ <!-- If window is of contentType widget -->
+ <h:panelGroup
rendered="#{fn:startsWith(node.declaredProperties['portal.windowContentType'],
'widget/')}">
+ <span
class="objectName">#{node.name}</span> #{node.typeName}
+ </h:panelGroup>
+ </c:when>
+ <c:otherwise>
+ <h:commandLink
action="#{portalobjectmgr.selectObject}">
+ <f:param name="id"
value="#{node.id}"/>
+ <c:choose>
+ <c:when test="#{node.type ==
PortalObject.TYPE_CONTEXT}">#{bundle.PORTALS}</c:when>
+ <c:otherwise><span
class="objectName">#{node.name}</span>
#{node.typeName}</c:otherwise>
+ </c:choose>
+ </h:commandLink>
+ </c:otherwise>
+ </c:choose>
<h:outputText value=" #{portalObjectScreen}"
rendered="#{portalObjectScreen != null and
node.id == portalobjectmgr.selectedObject.id}"/>
</li>
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/objects.xhtml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/objects.xhtml 2008-08-10
20:04:17 UTC (rev 11683)
+++
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/objects.xhtml 2008-08-10
20:22:59 UTC (rev 11684)
@@ -5,8 +5,6 @@
xmlns:h="http://java.sun.com/jsf/html"
xmlns:c="http://java.sun.com/jstl/core">
-
- <f:loadBundle basename="Resource" var="bundle" />
<c:choose>
<c:when test="#{portalobjectmgr.selectedObject.type ==
PortalObject.TYPE_CONTEXT}">
<ui:include src="editContext.xhtml"/>
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/portlets.xhtml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/portlets.xhtml 2008-08-10
20:04:17 UTC (rev 11683)
+++
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/portlets.xhtml 2008-08-10
20:22:59 UTC (rev 11684)
@@ -8,7 +8,6 @@
xmlns:pfc="http://www.jboss.com/portal/facelet/common"
xmlns:portlet="http://java.sun.com/portlet">
-<f:loadBundle basename="Resource" var="bundle" />
<ui:composition template="portletsTemplate.xhtml">
<ui:define name="content">
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/renameObject.xhtml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/renameObject.xhtml 2008-08-10
20:04:17 UTC (rev 11683)
+++
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/renameObject.xhtml 2008-08-10
20:22:59 UTC (rev 11684)
@@ -4,9 +4,8 @@
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jstl/core">
- <f:loadBundle basename="Resource" var="bundle" />
- <ui:composition template="/jsf/objectTemplate.xhtml">
- <ui:param name="portalObjectScreen" value="Rename"/>
+ <ui:composition template="objectTemplate.xhtml">
+ <ui:param name="portalObjectScreen"
value="#{bundle.RENAME}"/>
<ui:define name="content">
<h3>#{bundle.RENAME} #{portalobjectmgr.selectedObjectType}</h3>
<h:form id="renameForm">