[portal-commits] JBoss Portal SVN: r11911 - in branches/JBoss_Portal_Branch_2_7: core-admin/src/resources/portal-admin-war/jsf/common and 1 other directory.

portal-commits at lists.jboss.org portal-commits at lists.jboss.org
Tue Sep 16 16:50:00 EDT 2008


Author: prabhat.jha at jboss.com
Date: 2008-09-16 16:50:00 -0400 (Tue, 16 Sep 2008)
New Revision: 11911

Modified:
   branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/common/editPageLayout.xhtml
   branches/JBoss_Portal_Branch_2_7/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp
Log:
[JBPORTAL-2104] adding id to select boxes for different regions and available portlets

Modified: branches/JBoss_Portal_Branch_2_7/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_7/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp	2008-09-16 20:23:48 UTC (rev 11910)
+++ branches/JBoss_Portal_Branch_2_7/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp	2008-09-16 20:50:00 UTC (rev 11911)
@@ -116,10 +116,12 @@
       <div class="portlet-editor-content">
          <table style="width:100%;" cellspacing="0" cellpadding="0">
             <%
+               int index;
                for (IteratorStatus i = new IteratorStatus(instances); i.hasNext();)
                {
                   Instance instance = (Instance)i.next();
-                  String rowClass = instance == selectedInstance ? "portlet-section-selected" : (i.getIndex() % 2 == 0 ? "portlet-section-body" : "portlet-section-alternate");
+                  index = i.getIndex();
+                  String rowClass = instance == selectedInstance ? "portlet-section-selected" : (index % 2 == 0 ? "portlet-section-body" : "portlet-section-alternate");
                   String displayName = instance.getDisplayName().getString(locale, true);
                   PortletInfo info = instance.getPortlet().getInfo();
                   MetaInfo portletMetaInfo = info.getMeta();
@@ -130,6 +132,7 @@
                   }
 
                   String iconLocation = getIcon(info);
+                  String linkId="portlet-instance-link"+"_"+index;
             %>
             <portlet:actionURL var="url">
                <portlet:param name="content.action.select" value="true"/>
@@ -157,7 +160,7 @@
                   <span
                      onmouseover="domTT_activate(this, event, 'content', document.getElementById('info-container-<%= displayName %>'),'delay', 0, 'trail', false, 'fade', 'both', 'fadeMax', 95, 'styleClass', 'none');"><a
                      href="javascript:void(0);" onclick="submitForm('<%= url %>');return false"
-                     id="portlet-instance-link"><%= displayName %>
+                     id="<%= linkId %>"><%= displayName %>
                   </a></span>
                </td>
             </tr>

Modified: branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/common/editPageLayout.xhtml
===================================================================
--- branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/common/editPageLayout.xhtml	2008-09-16 20:23:48 UTC (rev 11910)
+++ branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/common/editPageLayout.xhtml	2008-09-16 20:50:00 UTC (rev 11911)
@@ -111,6 +111,7 @@
                      <td width="100%">
                         <h:selectManyListbox
                            value="#{pageManager.assignedWindows[regionName]}"
+                           id="selectMany_#{regionName}"
                            size="7" styleClass="windowList portlet-form-field">
                            <f:selectItems
                               value="#{pageManager.windowItemsMap[regionName]}"/>




More information about the portal-commits mailing list