Author: julien(a)jboss.com
Date: 2007-02-27 05:10:26 -0500 (Tue, 27 Feb 2007)
New Revision: 6419
Modified:
trunk/core-admin/src/main/org/jboss/portal/core/portlet/management/PortalObjectManagerBean.java
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editPagePreferences.xhtml
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editPageSecurity.xhtml
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editPageTheme.xhtml
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editPortalPreferences.xhtml
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editPortalSecurity.xhtml
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editPortalTheme.xhtml
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editWindowPreferences.xhtml
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editWindowSecurity.xhtml
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editWindowTheme.xhtml
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/nodeNavigation.xhtml
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/objectTemplate.xhtml
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/pageNavigation.xhtml
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/plugins/manager.xhtml
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/windows.xhtml
Log:
added path navigation in order to navigate efficiently in the hierarchy
Modified:
trunk/core-admin/src/main/org/jboss/portal/core/portlet/management/PortalObjectManagerBean.java
===================================================================
---
trunk/core-admin/src/main/org/jboss/portal/core/portlet/management/PortalObjectManagerBean.java 2007-02-27
08:40:26 UTC (rev 6418)
+++
trunk/core-admin/src/main/org/jboss/portal/core/portlet/management/PortalObjectManagerBean.java 2007-02-27
10:10:26 UTC (rev 6419)
@@ -329,6 +329,19 @@
return portalObjectContainer.getObject(id);
}
+ public List getSelectedObjectPath()
+ {
+ PortalObject o = getSelectedObject();
+ ArrayList path = new ArrayList();
+ while (o != null)
+ {
+ path.add(new PortalObjectBean(o));
+ o = o.getParent();
+ }
+ Collections.reverse(path);
+ return path;
+ }
+
public PortalObject getSelectedObject()
{
PortalObject result;
@@ -380,17 +393,14 @@
{
return "portals";
}
- else if (po.getParent().getType() == PortalObject.TYPE_PAGE)
+ else if (po.getType() == PortalObject.TYPE_PAGE)
{
- if (po.getType() == PortalObject.TYPE_PAGE)
- {
- return "pages";
- }
- else if (po.getType() == PortalObject.TYPE_WINDOW)
- {
- return "windows";
- }
+ return "pages";
}
+ else if (po.getType() == PortalObject.TYPE_WINDOW)
+ {
+ return "windows";
+ }
return "";
}
@@ -448,16 +458,25 @@
// Do nothing
}
- /** Proceed to an object selection. */
public void selectObject(ActionEvent ae)
{
+ selectObject();
+ }
+
+ /** Proceed to an object selection. */
+ public String selectObject()
+ {
+ // Clear state
+ selectedId = new PortalObjectId().toString(PortalObjectId.LEGACY_BASE64_FORMAT);
+ selectedPlugin = null;
+ selectedContentType = ContentType.PORTLET;
+ selectedContentURI = null;
+
+ //
+ String next = "portals";
+
try
{
- // Clear state
- selectedId = null;
- selectedPlugin = null;
- selectedContentType = ContentType.PORTLET;
- selectedContentURI = null;
// Get id
Map pmap =
FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();
@@ -474,6 +493,21 @@
{
selectedId = id;
selectedPlugin = "manager";
+ switch(object.getType())
+ {
+ case PortalObject.TYPE_CONTEXT:
+ next = "portals";
+ break;
+ case PortalObject.TYPE_PORTAL:
+ next = "portals";
+ break;
+ case PortalObject.TYPE_PAGE:
+ next = "pages";
+ break;
+ case PortalObject.TYPE_WINDOW:
+ next = "windows";
+ break;
+ }
}
}
}
@@ -481,6 +515,9 @@
{
e.printStackTrace();
}
+
+ //
+ return next;
}
/** Proceed to object destroy. */
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editPagePreferences.xhtml
===================================================================
---
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editPagePreferences.xhtml 2007-02-27
08:40:26 UTC (rev 6418)
+++
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editPagePreferences.xhtml 2007-02-27
10:10:26 UTC (rev 6419)
@@ -9,12 +9,6 @@
<ui:define name="content">
- <h:form>
- <h:commandLink action="pages">
- <h:outputText value="Go back to pages" />
- </h:commandLink>
- </h:form>
-
<h3>You are editing the page: <h:outputText
value="#{portalobjectmgr.selectedObject.name}" /></h3>
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editPageSecurity.xhtml
===================================================================
---
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editPageSecurity.xhtml 2007-02-27
08:40:26 UTC (rev 6418)
+++
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editPageSecurity.xhtml 2007-02-27
10:10:26 UTC (rev 6419)
@@ -8,12 +8,6 @@
<ui:define name="content">
- <h:form>
- <h:commandLink action="pages">
- <h:outputText value="Go back to pages"/>
- </h:commandLink>
- </h:form>
-
<h3>Please set the permissions for the page: <h:outputText
value="#{portalobjectmgr.selectedObject.name}"/></h3>
<ui:include src="/WEB-INF/jsp/management/common/editSecurity.xhtml"/>
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editPageTheme.xhtml
===================================================================
---
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editPageTheme.xhtml 2007-02-27
08:40:26 UTC (rev 6418)
+++
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editPageTheme.xhtml 2007-02-27
10:10:26 UTC (rev 6419)
@@ -8,12 +8,6 @@
<ui:define name="content">
- <h:form>
- <h:commandLink action="pages"
actionListener="#{portalobjectmgr.selectParentObject}">
- <h:outputText value="Go back to pages"/>
- </h:commandLink>
- </h:form>
-
<h3>Please set the display options for the page: <h:outputText
value="#{portalobjectmgr.selectedObject.name}"/></h3>
<br/>
<ui:include src="/WEB-INF/jsp/management/common/editTheme.xhtml"/>
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editPortalPreferences.xhtml
===================================================================
---
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editPortalPreferences.xhtml 2007-02-27
08:40:26 UTC (rev 6418)
+++
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editPortalPreferences.xhtml 2007-02-27
10:10:26 UTC (rev 6419)
@@ -9,12 +9,6 @@
<ui:define name="content">
- <h:form>
- <h:commandLink action="portals"
actionListener="#{portalobjectmgr.selectParentObject}">
- <h:outputText value="Go back to portals" />
- </h:commandLink>
- </h:form>
-
<h3>You are editing the portal: <h:outputText
value="#{portalobjectmgr.selectedObject.name}" /></h3>
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editPortalSecurity.xhtml
===================================================================
---
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editPortalSecurity.xhtml 2007-02-27
08:40:26 UTC (rev 6418)
+++
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editPortalSecurity.xhtml 2007-02-27
10:10:26 UTC (rev 6419)
@@ -8,12 +8,6 @@
<ui:define name="content">
- <h:form>
- <h:commandLink action="portals">
- <h:outputText value="Go back to portals"/>
- </h:commandLink>
- </h:form>
-
<h3>Please set the permissions for the portal: <h:outputText
value="#{portalobjectmgr.selectedObject.name}"/></h3>
<ui:include src="/WEB-INF/jsp/management/common/editSecurity.xhtml"/>
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editPortalTheme.xhtml
===================================================================
---
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editPortalTheme.xhtml 2007-02-27
08:40:26 UTC (rev 6418)
+++
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editPortalTheme.xhtml 2007-02-27
10:10:26 UTC (rev 6419)
@@ -8,13 +8,6 @@
<ui:define name="content">
- <h:form>
- <h:commandLink action="portals">
- <h:outputText value="Go back to portals"/>
- </h:commandLink>
- </h:form>
-
-
<h3>Please set the display options for the portal: <h:outputText
value="#{portalobjectmgr.selectedObject.name}"/></h3>
<p>The settings defined here will be applied to the whole portal including all
the pages and windows unless they have been assigned with different settings</p>
<br/>
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editWindowPreferences.xhtml
===================================================================
---
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editWindowPreferences.xhtml 2007-02-27
08:40:26 UTC (rev 6418)
+++
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editWindowPreferences.xhtml 2007-02-27
10:10:26 UTC (rev 6419)
@@ -9,13 +9,6 @@
<ui:define name="content">
- <h:form>
- <h:commandLink action="windows"
actionListener="#{portalobjectmgr.selectParentObject}">
- <h:outputText value="Go back to windows"/>
- </h:commandLink>
- </h:form>
-
-
<h3>You are editing the window: <h:outputText
value="#{portalobjectmgr.selectedObject.name}" /></h3>
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editWindowSecurity.xhtml
===================================================================
---
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editWindowSecurity.xhtml 2007-02-27
08:40:26 UTC (rev 6418)
+++
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editWindowSecurity.xhtml 2007-02-27
10:10:26 UTC (rev 6419)
@@ -8,12 +8,6 @@
<ui:define name="content">
- <h:form>
- <h:commandLink action="windows"
actionListener="#{portalobjectmgr.selectParentObject}">
- <h:outputText value="Go back to windows"/>
- </h:commandLink>
- </h:form>
-
<h3>Please set the permissions for the window: <h:outputText
value="#{portalobjectmgr.selectedObject.name}"/></h3>
<ui:include src="/WEB-INF/jsp/management/common/editSecurity.xhtml"/>
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editWindowTheme.xhtml
===================================================================
---
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editWindowTheme.xhtml 2007-02-27
08:40:26 UTC (rev 6418)
+++
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/editWindowTheme.xhtml 2007-02-27
10:10:26 UTC (rev 6419)
@@ -8,12 +8,6 @@
<ui:define name="content">
- <h:form>
- <h:commandLink action="windows"
actionListener="#{portalobjectmgr.selectParentObject}">
- <h:outputText value="Go back to windows"/>
- </h:commandLink>
- </h:form>
-
<h3>Please set the display options for the window: <h:outputText
value="#{portalobjectmgr.selectedObject.name}"/></h3>
<br/>
<ui:include src="/WEB-INF/jsp/management/common/editTheme.xhtml"/>
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/nodeNavigation.xhtml
===================================================================
---
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/nodeNavigation.xhtml 2007-02-27
08:40:26 UTC (rev 6418)
+++
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/nodeNavigation.xhtml 2007-02-27
10:10:26 UTC (rev 6419)
@@ -8,7 +8,7 @@
<h:dataTable value="#{portalobjectmgr.portalNodes}"
var="portal" style="border-spacing: 20px 7px" rendered="#{not
empty portalobjectmgr.portalNodes}">
<h:column>
<f:facet name="header"><h:outputText
value="Portal"/></f:facet>
- <h:commandLink action="pages"
actionListener="#{portalobjectmgr.selectObject}">
+ <h:commandLink action="#{portalobjectmgr.selectObject}">
<h:outputText value="#{portal.name}"/>
<f:param name="id" value="#{portal.id}"/>
</h:commandLink>
@@ -37,7 +37,7 @@
<h:dataTable value="#{portalobjectmgr.pageNodes}" var="page"
style="border-spacing: 20px 7px" rendered="#{not empty
portalobjectmgr.pageNodes}">
<h:column>
<f:facet name="header"><h:outputText
value="Page"/></f:facet>
- <h:commandLink action="pages"
actionListener="#{portalobjectmgr.selectObject}">
+ <h:commandLink action="#{portalobjectmgr.selectObject}">
<h:outputText value="#{page.name}"/>
<f:param name="id" value="#{page.id}"/>
</h:commandLink>
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/objectTemplate.xhtml
===================================================================
---
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/objectTemplate.xhtml 2007-02-27
08:40:26 UTC (rev 6418)
+++
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/objectTemplate.xhtml 2007-02-27
10:10:26 UTC (rev 6419)
@@ -1,7 +1,8 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<div
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:ui="http://java.sun.com/jsf/facelets">
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:c="http://java.sun.com/jstl/core">
<!-- h:form>
<div id="navigation">
@@ -25,6 +26,18 @@
</div>
<hr />
+ <!-- Path nav -->
+ <h:form>
+ <c:forEach items="#{portalobjectmgr.selectedObjectPath}"
var="node">
+ >
+ <h:commandLink action="#{portalobjectmgr.selectObject}">
+ <f:param name="id" value="#{node.id}"/>
+ <c:if test="#{node.name == ''}">root</c:if>
+ <c:if test="#{node.name !=
''}">#{node.name}</c:if>
+ </h:commandLink>
+ </c:forEach>
+ </h:form>
+
<br/>
<ui:insert name="content">Content</ui:insert>
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/pageNavigation.xhtml
===================================================================
---
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/pageNavigation.xhtml 2007-02-27
08:40:26 UTC (rev 6418)
+++
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/pageNavigation.xhtml 2007-02-27
10:10:26 UTC (rev 6419)
@@ -1,18 +1,17 @@
<div
-
xmlns="http://www.w3.org/1999/xhtml"
-
xmlns:ui="http://java.sun.com/jsf/facelets"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:f="http://java.sun.com/jsf/core">
+
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:t="http://myfaces.apache.org/tomahawk"
+
xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ct="http://www.julien.com">
-
- <h:form>
- <h:commandLink action="#{portalobjectmgr.goBack}">
- <h:outputText value="Go back"/>
- </h:commandLink>
- </h:form>
-
<ui:include src="nodeNavigation.xhtml"/>
+ <!-- Sub page addition -->
+
+ <hr />
+
<h:form id="portal_form">
<h:inputText id="name" value="#{addPageAction.pageName}"
validator="#{addPageAction.validatePageName}"
@@ -20,5 +19,85 @@
<h:commandButton action="#{addPageAction.execute}" value="Add
portal page" styleClass="portlet-form-button"/>
<h:message for="name" style="color: red"/>
</h:form>
-
+
+ <!-- -->
+
+ <hr />
+
+ <h:form id="page_form_2">
+ <t:dataTable
+ id="data"
+ var="row"
+ value="#{portalobjectmgr.rows}"
+ border="1">
+ <t:columns value="#{portalobjectmgr.cols}" var="col">
+ <f:facet name="header">
+ <h:outputText value="#{col}"/>
+ </f:facet>
+ <h:commandLink rendered="#{row[col] != null}"
action="#{portalobjectmgr.moveUp}">
+ <f:param name="id" value="#{row[col].id}"/>
+ <h:graphicImage value="/images/management/up.png"
style="vertical-align:middle;border-width:0"/>
+ </h:commandLink>
+ <h:commandLink rendered="#{row[col] != null}"
action="#{portalobjectmgr.moveDown}">
+ <f:param name="id" value="#{row[col].id}"/>
+ <h:graphicImage value="/images/management/down.png"
style="vertical-align:middle;border-width:0"/>
+ </h:commandLink>
+ <h:commandLink rendered="#{row[col] != null}"
action="#{portalobjectmgr.moveLeft}">
+ <f:param name="id" value="#{row[col].id}"/>
+ <h:graphicImage value="/images/management/left.png"
style="vertical-align:middle;border-width:0"/>
+ </h:commandLink>
+ <h:commandLink rendered="#{row[col] != null}"
action="#{portalobjectmgr.moveRight}">
+ <f:param name="id" value="#{row[col].id}"/>
+ <h:graphicImage value="/images/management/right.png"
style="vertical-align:middle;border-width:0"/>
+ </h:commandLink>
+ <h:commandLink rendered="#{row[col] != null}"
action="#{portalobjectmgr.selectObject}">
+ <f:param name="id" value="#{row[col].id}"/>
+ <h:outputText value="#{row[col].name}"/>
+ </h:commandLink>
+ </t:columns>
+ </t:dataTable>
+
+ </h:form>
+
+ <!-- -->
+
+ <hr />
+
+ <h:form id="page_form_3">
+ <h:message for="windowName" style="color: red"/>
+ <br />
+ <h:panelGroup>
+ <h:outputLabel for="windowName">
+ <h:outputText value="New Window Name: "
style="font-weight:bold;"/>
+ </h:outputLabel>
+ <h:inputText id="windowName"
value="#{addWindowAction.windowName}"
+ validator="#{addWindowAction.validateWindowName}"
+ required="true"/>
+ </h:panelGroup>
+ <br />
+ <h:selectOneMenu
+ value="#{portalobjectmgr.selectedContentType}">
+ <f:selectItems value="#{registry.availableTypes}"/>
+ </h:selectOneMenu>
+ <h:commandButton
+ value="Change content type"
styleClass="portlet-form-button"/>
+ <ct:content
+ contentType="#{portalobjectmgr.selectedContentType}"
+ contentURI="#{portalobjectmgr.selectedContentURI}"/>
+ <br/>
+ <t:dataTable
+ id="data"
+ var="row"
+ value="#{portalobjectmgr.rows}">
+ <t:columns value="#{portalobjectmgr.cols}" var="col">
+ <f:facet name="footer">
+ <h:commandButton value="Add #{col}"
action="#{addWindowAction.execute}"
styleClass="portlet-form-button"/>
+ </f:facet>
+ </t:columns>
+ </t:dataTable>
+
+ </h:form>
+
+ <h:outputLink value="#{portalobjectmgr.previewURL}" title="Preview
link" target="_blank">Preview link</h:outputLink>
+
</div>
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/plugins/manager.xhtml
===================================================================
---
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/plugins/manager.xhtml 2007-02-27
08:40:26 UTC (rev 6418)
+++
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/plugins/manager.xhtml 2007-02-27
10:10:26 UTC (rev 6419)
@@ -59,87 +59,6 @@
</h:form>
</h:panelGroup>
-<!-- Page tab -->
-<h:panelGroup
- id="c"
- rendered="#{portalobjectmgr.selectedObject.type==2}">
-
- <h2>Add a new window</h2>
-
- <h:form id="page_form_2">
- <t:dataTable
- id="data"
- var="row"
- value="#{portalobjectmgr.rows}"
- border="1">
- <t:columns value="#{portalobjectmgr.cols}" var="col">
- <f:facet name="header">
- <h:outputText value="#{col}"/>
- </f:facet>
- <h:commandLink rendered="#{row[col] != null}"
action="#{portalobjectmgr.moveUp}">
- <f:param name="id" value="#{row[col].id}"/>
- <h:graphicImage value="/images/management/up.png"
style="vertical-align:middle;border-width:0"/>
- </h:commandLink>
- <h:commandLink rendered="#{row[col] != null}"
action="#{portalobjectmgr.moveDown}">
- <f:param name="id" value="#{row[col].id}"/>
- <h:graphicImage value="/images/management/down.png"
style="vertical-align:middle;border-width:0"/>
- </h:commandLink>
- <h:commandLink rendered="#{row[col] != null}"
action="#{portalobjectmgr.moveLeft}">
- <f:param name="id" value="#{row[col].id}"/>
- <h:graphicImage value="/images/management/left.png"
style="vertical-align:middle;border-width:0"/>
- </h:commandLink>
- <h:commandLink rendered="#{row[col] != null}"
action="#{portalobjectmgr.moveRight}">
- <f:param name="id" value="#{row[col].id}"/>
- <h:graphicImage value="/images/management/right.png"
style="vertical-align:middle;border-width:0"/>
- </h:commandLink>
- <h:commandLink rendered="#{row[col] != null}"
action="#{portalobjectmgr.selectObject}">
- <f:param name="id" value="#{row[col].id}"/>
- <h:outputText value="#{row[col].name}"/>
- </h:commandLink>
- </t:columns>
- </t:dataTable>
-
- </h:form>
- <h:form id="page_form_3">
- <h:message for="windowName" style="color: red"/>
- <br />
- <h:panelGroup>
- <h:outputLabel for="windowName">
- <h:outputText value="New Window Name: "
style="font-weight:bold;"/>
- </h:outputLabel>
- <h:inputText id="windowName"
value="#{addWindowAction.windowName}"
- validator="#{addWindowAction.validateWindowName}"
- required="true"/>
- </h:panelGroup>
- <br />
- <h:selectOneMenu
- value="#{portalobjectmgr.selectedContentType}">
- <f:selectItems value="#{registry.availableTypes}"/>
- </h:selectOneMenu>
- <h:commandButton
- value="Change content type"
class="portlet-form-button"/>
- <ct:content
- contentType="#{portalobjectmgr.selectedContentType}"
- contentURI="#{portalobjectmgr.selectedContentURI}"/>
- <br/>
- <t:dataTable
- id="data"
- var="row"
- value="#{portalobjectmgr.rows}">
- <t:columns value="#{portalobjectmgr.cols}" var="col">
- <f:facet name="footer">
- <h:commandButton value="Add #{col}"
action="#{addWindowAction.execute}" class="portlet-form-button"/>
- </f:facet>
- </t:columns>
- </t:dataTable>
-
- </h:form>
-
- <h:outputLink value="#{portalobjectmgr.previewURL}" title="Preview
link" target="_blank">Preview link</h:outputLink>
-
-
-</h:panelGroup>
-
<!-- Window tab -->
<h:panelGroup
id="d"
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/windows.xhtml
===================================================================
---
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/windows.xhtml 2007-02-27
08:40:26 UTC (rev 6418)
+++
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/windows.xhtml 2007-02-27
10:10:26 UTC (rev 6419)
@@ -9,12 +9,6 @@
<ui:define name="content">
- <h:form>
- <h:commandLink action="#{portalobjectmgr.goBack}">
- <h:outputText value="Go back to pages"/>
- </h:commandLink>
- </h:form>
-
<h3>You are editing the windows of: <h:outputText
value="#{portalobjectmgr.selectedObject.name}"/></h3>
<h:message id="status" for="status"/>