[portal-commits] JBoss Portal SVN: r11924 - branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf.
portal-commits at lists.jboss.org
portal-commits at lists.jboss.org
Wed Sep 17 17:51:07 EDT 2008
Author: prabhat.jha at jboss.com
Date: 2008-09-17 17:51:07 -0400 (Wed, 17 Sep 2008)
New Revision: 11924
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/editPage.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/instancesTemplate.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/portletsTemplate.xhtml
Log:
[JBPORTAL-2166] adding ids for portal, portlet instance, definition admin etc
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-09-17 20:54:47 UTC (rev 11923)
+++ branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editContext.xhtml 2008-09-17 21:51:07 UTC (rev 11924)
@@ -33,11 +33,11 @@
</h3>
<!-- Portal addition -->
<div class="tenpx-top-bottom">
- <h:form>
+ <h:form id="create-portal-form">
<span class="portlet-font">#{bundle.CREATE_PORTAL_NAMED}: </span>
<h:inputText id="name" value="#{portalAction.portalName}" styleClass="portlet-form-input-field"
required="true"/>
- <h:commandButton action="#{portalAction.addPortal}" value="#{bundle.CREATE_PORTAL}" styleClass="portlet-form-button"/>
+ <h:commandButton id="create-portal" action="#{portalAction.addPortal}" value="#{bundle.CREATE_PORTAL}" styleClass="portlet-form-button"/>
<h:message for="name" errorClass="portlet-msg-error"/>
</h:form>
</div>
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-09-17 20:54:47 UTC (rev 11923)
+++ branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editPage.xhtml 2008-09-17 21:51:07 UTC (rev 11924)
@@ -11,7 +11,7 @@
<h3 class="sectionTitle tenpx-top-bottom">#{bundle.MANAGE} <span class="objectName">#{portalobjectmgr.selectedObject.name}</span>
#{portalobjectmgr.selectedObject.typeName}</h3>
- <h:form>
+ <h:form id="admin-portal-form">
<h:panelGroup rendered="#{portalobjectmgr.selectedObject.type == PortalObject.TYPE_PAGE}"><h:commandLink
action="editPageLayout" actionListener="#{portalobjectmgr.selectObject}" styleClass="actionLayout">
<f:param name="id" value="#{portalobjectmgr.selectedObject.id}"/>
@@ -62,11 +62,11 @@
#{portalobjectmgr.selectedObject.typeName}</h3>
<!-- Sub page addition -->
<div class="tenpx-top-bottom">
- <h:form>
+ <h:form id="create-page-form">
<span class="portlet-font">#{bundle.CREATE_PAGE_NAMED}: </span>
<h:inputText id="pageName" value="#{addPageAction.pageName}" styleClass="portlet-form-input-field"
required="true"/>
- <h:commandButton action="#{addPageAction.execute}" value="#{bundle.CREATE_PAGE}" styleClass="portlet-form-button"/>
+ <h:commandButton id="create-page" action="#{addPageAction.execute}" value="#{bundle.CREATE_PAGE}" styleClass="portlet-form-button"/>
<h:message for="pageName" errorClass="portlet-msg-error"/>
</h:form>
</div>
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-09-17 20:54:47 UTC (rev 11923)
+++ branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/instances.xhtml 2008-09-17 21:51:07 UTC (rev 11924)
@@ -11,7 +11,7 @@
<ui:define name="content">
<c:if test="#{empty instancemgr.selectedPlugin}">
- <h:form>
+ <h:form id="instances-form">
<ul class="pagination property-container">
<c:if test="#{instancemgr.instanceCount > instancemgr.paginationSize}">
<c:forEach begin="0" end="#{(instancemgr.instanceCount - 1)/ instancemgr.paginationSize}" step="1"
@@ -39,7 +39,7 @@
class="#{instance.id == instancemgr.selectedId ? 'portlet-section-selected' : (status.index % 2 == 0 ? 'portlet-section-body' : 'portlet-section-alternate')}">
<td>
<img src="#{instance.portlet.smallIconLocation}" align="middle" style="margin:0 4px 0 0"/>
- <h:commandLink action="#{instancemgr.selectInstance}">
+ <h:commandLink id="#{instance.id}" action="#{instancemgr.selectInstance}">
<h:outputText value="#{instance.id}"/>
<f:param name="id" value="#{instance.id}"/>
<f:param name="plugin" value="info"/>
@@ -48,17 +48,18 @@
<td>
<h:outputText value="#{instance.displayName}"/>
</td>
- <td><h:commandLink action="#{instancemgr.selectInstance}" styleClass="actionSecurity">
+ <td><h:commandLink id="security-#{instance.id}" action="#{instancemgr.selectInstance}" styleClass="actionSecurity">
<f:param name="id" value="#{instance.id}"/>
<f:param name="plugin" value="security"/>
#{bundle.SECURITY}
</h:commandLink> | <h:panelGroup
- rendered="#{! empty(instancemgr.selectedInstancesPrefs[instance.id])}"><h:commandLink
- action="#{instancemgr.selectInstance}" styleClass="actionPreferences">
+ rendered="#{! empty(instancemgr.selectedInstancesPrefs[instance.id])}">
+ <h:commandLink id="preference-#{instance.id}"
+ action="#{instancemgr.selectInstance}" styleClass="actionPreferences">
<f:param name="id" value="#{instance.id}"/>
<f:param name="plugin" value="preferences"/>
#{bundle.PREFERENCES}
- </h:commandLink> | </h:panelGroup><h:commandLink action="confirmDeleteInstance"
+ </h:commandLink> | </h:panelGroup><h:commandLink id="delete-#{instance.id}" action="confirmDeleteInstance"
styleClass="actionDelete"
actionListener="#{instancemgr.selectInstance}">
<f:param name="id" value="#{instance.id}"/>
Modified: branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/instancesTemplate.xhtml
===================================================================
--- branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/instancesTemplate.xhtml 2008-09-17 20:54:47 UTC (rev 11923)
+++ branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/instancesTemplate.xhtml 2008-09-17 21:51:07 UTC (rev 11924)
@@ -7,18 +7,18 @@
<f:loadBundle basename="Resource" var="bundle" />
<!-- Common nav -->
- <h:form>
+ <h:form id="instance-temp-form">
<ul class="topnav">
<li>
- <h:commandLink value="#{bundle.PORTAL_OBJECTS}" action="objects"
+ <h:commandLink id="portal-obj-link" value="#{bundle.PORTAL_OBJECTS}" action="objects"
actionListener="#{portalobjectmgr.selectRootObject}"/>
</li>
<li id="currentTab"><h:outputText value="#{bundle.PORTLET_INSTANCES}" /></li>
<li>
- <h:commandLink value="#{bundle.PORTLET_DEFINITIONS}" action="#{portletmgr.selectPortlet}"/>
+ <h:commandLink id="portlet-def-link" value="#{bundle.PORTLET_DEFINITIONS}" action="#{portletmgr.selectPortlet}"/>
</li>
<li>
- <h:commandLink value="#{bundle.DASHBOARDS}" action="dashboards"/>
+ <h:commandLink id="dashboard-link" value="#{bundle.DASHBOARDS}" action="dashboards"/>
</li>
</ul>
</h:form>
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-09-17 20:54:47 UTC (rev 11923)
+++ branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/objectTemplate.xhtml 2008-09-17 21:51:07 UTC (rev 11924)
@@ -9,17 +9,17 @@
<!-- Common nav -->
<f:loadBundle basename="Resource" var="bundle" />
- <h:form>
+ <h:form id="admin-subtab-form">
<ul class="topnav">
<li id="currentTab">#{bundle.PORTAL_OBJECTS}</li>
<li>
- <h:commandLink value="#{bundle.PORTLET_INSTANCES}" action="instances"/>
+ <h:commandLink id="portlet-instance-link" value="#{bundle.PORTLET_INSTANCES}" action="instances"/>
</li>
<li>
- <h:commandLink value="#{bundle.PORTLET_DEFINITIONS}" action="#{portletmgr.selectPortlet}"/>
+ <h:commandLink id="portlet-def-link" value="#{bundle.PORTLET_DEFINITIONS}" action="#{portletmgr.selectPortlet}"/>
</li>
<li>
- <h:commandLink value="#{bundle.DASHBOARDS}" action="dashboards"/>
+ <h:commandLink id="dashboard-link" value="#{bundle.DASHBOARDS}" action="dashboards"/>
</li>
</ul>
</h:form>
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-09-17 20:54:47 UTC (rev 11923)
+++ branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/objects.xhtml 2008-09-17 21:51:07 UTC (rev 11924)
@@ -21,8 +21,8 @@
<c:otherwise>FIXME</c:otherwise>
</c:choose>
- <h:form>
- <p style="text-align: right"><h:commandLink action="#{newWindowWizard.reset}">#{bundle.SWITCH_TO_WIZARD_MODE}</h:commandLink></p>
+ <h:form id="switch-wizard-mode-form">
+ <p style="text-align: right"><h:commandLink id="wizard-mode" action="#{newWindowWizard.reset}">#{bundle.SWITCH_TO_WIZARD_MODE}</h:commandLink></p>
</h:form>
</div>
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-09-17 20:54:47 UTC (rev 11923)
+++ branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/portlets.xhtml 2008-09-17 21:51:07 UTC (rev 11924)
@@ -14,7 +14,7 @@
<c:if test="#{empty portletmgr.selectedPlugin}">
<div class="provider-menu-container">
- <h:form>
+ <h:form id="definition-form">
<h:outputLabel for="menu">
<h:outputText value="#{bundle.VIEW_PORTLETS_PROVIDED_BY}: "
styleClass="portlet-form-field-label"/>
@@ -23,16 +23,16 @@
value="#{portletmgr.selectedPortletInvokerId}">
<f:selectItems value="#{portletmgr.portletInvokerItems}"/>
</h:selectOneMenu>
- <h:commandButton value="#{bundle.VIEW_PORTLETS}" styleClass="portlet-form-button"/>
+ <h:commandButton id="view-portlets" value="#{bundle.VIEW_PORTLETS}" styleClass="portlet-form-button"/>
</h:form>
</div>
- <h:form>
+ <h:form id="def-list">
<ul class="pagination property-container">
<c:if test="#{portletmgr.portletCount > portletmgr.paginationSize}">
<c:forEach begin="0" end="#{(portletmgr.portletCount - 1) / portletmgr.paginationSize}" step="1"
var="index">
<li class="#{index == (portletmgr.selectedFrom / portletmgr.paginationSize)? 'selected' : ''}">
- <h:commandLink action="#{portletmgr.selectFrom}">
+ <h:commandLink id="pagination-#{index}" action="#{portletmgr.selectFrom}">
<f:param name="from" value="#{index * portletmgr.paginationSize}"/>
#{index * portletmgr.paginationSize}
</h:commandLink>
@@ -57,6 +57,7 @@
<td>
<img src="#{portlet.smallIconLocation}" align="middle" style="margin:0 4px 0 0"/>
<h:commandLink
+ id="portlet-def-#{status.index}"
action="#{portletmgr.selectPortlet}"
title="#{portlet.context.id}">
<f:param name="id" value="#{portlet.context.id}"/>
@@ -69,12 +70,12 @@
<td><h:selectBooleanCheckbox disabled="true" value="#{portlet.remotable}"/></td>
<td>
<h:panelGroup rendered="#{!empty portlet.info.preferences.keys}">
- <h:commandLink action="#{portletmgr.selectPortlet}" styleClass="actionPreferences">
+ <h:commandLink id="portlet-pref-#{status.index}" action="#{portletmgr.selectPortlet}" styleClass="actionPreferences">
<f:param name="id" value="#{portlet.context.id}"/>
<f:param name="plugin" value="preferences"/>
#{bundle.PREFERENCES}
</h:commandLink> | </h:panelGroup>
- <h:commandLink action="#{portletmgr.selectPortlet}" styleClass="actionCreateInstance">
+ <h:commandLink id="create-instance-#{status.index}" action="#{portletmgr.selectPortlet}" styleClass="actionCreateInstance">
<f:param name="id" value="#{portlet.context.id}"/>
<f:param name="plugin" value="createInstance"/>
#{bundle.CREATE_INSTANCE}
Modified: branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/portletsTemplate.xhtml
===================================================================
--- branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/portletsTemplate.xhtml 2008-09-17 20:54:47 UTC (rev 11923)
+++ branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/portletsTemplate.xhtml 2008-09-17 21:51:07 UTC (rev 11924)
@@ -7,18 +7,18 @@
<!-- Common nav -->
<f:loadBundle basename="Resource" var="bundle" />
- <h:form>
+ <h:form id="def-temp-form">
<ul class="topnav">
<li>
- <h:commandLink value="#{bundle.PORTAL_OBJECTS}" action="objects"
+ <h:commandLink id="portal-obj-link" value="#{bundle.PORTAL_OBJECTS}" action="objects"
actionListener="#{portalobjectmgr.selectRootObject}"/>
</li>
<li>
- <h:commandLink value="#{bundle.PORTLET_INSTANCES}" action="instances"/>
+ <h:commandLink id="portlet-inst-link" value="#{bundle.PORTLET_INSTANCES}" action="instances"/>
</li>
<li id="currentTab">#{bundle.PORTLET_DEFINITIONS}</li>
<li>
- <h:commandLink value="#{bundle.DASHBOARDS}" action="dashboards"/>
+ <h:commandLink id="dashboard-link" value="#{bundle.DASHBOARDS}" action="dashboards"/>
</li>
</ul>
</h:form>
More information about the portal-commits
mailing list