Author: chris.laprun(a)jboss.com
Date: 2007-06-25 16:54:14 -0400 (Mon, 25 Jun 2007)
New Revision: 7538
Modified:
trunk/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp
Log:
- Fixed overflow issue on older browsers.
Modified: trunk/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp
===================================================================
---
trunk/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp 2007-06-25
20:38:39 UTC (rev 7537)
+++
trunk/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp 2007-06-25
20:54:14 UTC (rev 7538)
@@ -1,9 +1,9 @@
-<%@ page import="java.util.Collection" %>
+<%@ page import="org.jboss.portal.common.util.IteratorStatus" %>
<%@ page import="org.jboss.portal.core.model.instance.Instance" %>
-<%@ page import="org.jboss.portal.common.util.IteratorStatus" %>
<%@ page import="org.jboss.portal.portlet.Portlet" %>
+<%@ page import="org.jboss.portal.portlet.PortletInvokerException" %>
<%@ page import="org.jboss.portal.portlet.info.MetaInfo" %>
-<%@ page import="org.jboss.portal.portlet.PortletInvokerException" %>
+<%@ page import="java.util.Collection" %>
<%@ page language="java" %>
<%@ taglib
uri="http://java.sun.com/portlet" prefix="portlet"
%>
@@ -17,36 +17,37 @@
if (newContent)
{
%>
- <span class="portlet-font">Portlet instance associated to this
window:</span>
+<span class="portlet-font">Portlet instance associated to this
window:</span>
<%
- }
- else
- {
+}
+else
+{
%>
- <span class="portlet-font">Portlet instance associated to this
window:</span>
+<span class="portlet-font">Portlet instance associated to this
window:</span>
<%
}
%>
-<div style="height:300px; width:300px; overflow-y: scroll; overflow-x: none;
border: 1px solid #333333;">
- <table style="width:100%;" cellspacing="0"
cellpadding="0">
+<div style="height:300px; width:300px; overflow: scroll; border: 1px solid
#333333;">
+ <table style="width:100%;" cellspacing="0"
cellpadding="0">
<%
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");
+ String rowClass = instance == selectedInstance ?
"portlet-section-selected" : (i.getIndex() % 2 == 0 ?
"portlet-section-body" : "portlet-section-alternate");
%>
<portlet:actionURL var="url">
<portlet:param name="content.action.select"
value="true"/>
<portlet:param name="content.uri" value="<%=
instance.getId() %>"/>
</portlet:actionURL>
<tr class="<%= rowClass %>">
- <td><a href="<%= url %>"><%= instance.getId()
%></a></td>
- </tr>
+ <td><a href="<%= url %>"><%= instance.getId()
%>
+ </a></td>
+ </tr>
<%
}
%>
- </table>
+ </table>
</div>
<%
@@ -54,26 +55,39 @@
{
%>
<div class="portlet-font">
-<div><span class="portlet-form-field-label">Portlet
instance:</span><%= selectedInstance.getId() %></div>
-<%
- Portlet portlet = null;
- try
- {
- portlet = selectedInstance.getPortlet();
- }
- catch (PortletInvokerException e)
- {
- e.printStackTrace();
- }
- if (portlet != null)
- {
- MetaInfo metaInfo = portlet.getInfo().getMeta();
-%>
-<div><span class="portlet-form-field-label">Portlet
name:</span><%= metaInfo.getMetaValue(MetaInfo.DISPLAY_NAME).getDefaultString()
%></div>
-<div><span class="portlet-form-field-label">Portlet
description:</span><%=
metaInfo.getMetaValue(MetaInfo.DESCRIPTION).getDefaultString() %></div>
-<div><span class="portlet-form-field-label">Portlet
title:</span><%= metaInfo.getMetaValue(MetaInfo.TITLE).getDefaultString()
%></div>
-<div><span class="portlet-form-field-label">Portlet
keywords:</span><%= metaInfo.getMetaValue(MetaInfo.KEYWORDS).getDefaultString()
%></div>
-<%
+ <div><span class="portlet-form-field-label">Portlet
instance:</span><%= selectedInstance.getId() %>
+ </div>
+ <%
+
+ Portlet portlet = null;
+ try
+ {
+ portlet = selectedInstance.getPortlet();
}
- }
-%>
+ catch (PortletInvokerException e)
+ {
+ e.printStackTrace();
+ }
+ if (portlet != null)
+ {
+ MetaInfo metaInfo = portlet.getInfo().getMeta();
+
+ %>
+ <div><span
+ class="portlet-form-field-label">Portlet name:</span><%=
metaInfo.getMetaValue(MetaInfo.DISPLAY_NAME).getDefaultString() %>
+ </div>
+ <div><span
+ class="portlet-form-field-label">Portlet
description:</span><%=
metaInfo.getMetaValue(MetaInfo.DESCRIPTION).getDefaultString() %>
+ </div>
+ <div><span
+ class="portlet-form-field-label">Portlet title:</span><%=
metaInfo.getMetaValue(MetaInfo.TITLE).getDefaultString() %>
+ </div>
+ <div><span
+ class="portlet-form-field-label">Portlet keywords:</span><%=
metaInfo.getMetaValue(MetaInfo.KEYWORDS).getDefaultString() %>
+ </div>
+ <%
+
+ }
+ }
+
+ %>