Author: chris.laprun(a)jboss.com
Date: 2007-06-25 21:00:48 -0400 (Mon, 25 Jun 2007)
New Revision: 7545
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editProperties.xhtml
Log:
- Only show property list if there are properties.
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editProperties.xhtml
===================================================================
---
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editProperties.xhtml 2007-06-26
00:46:19 UTC (rev 7544)
+++
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsf/common/editProperties.xhtml 2007-06-26
01:00:48 UTC (rev 7545)
@@ -71,63 +71,66 @@
<!-- defines property list section -->
- <table cellpadding="0" cellspacing="0"
width="100%">
- <tr>
- <th class="portlet-section-title">Manage currently defined
properties.</th>
- </tr>
- <tr>
- <td class="portlet-section-body" valign="top">
+ <c:if test="#{!empty properties.entries}">
+ <table cellpadding="0" cellspacing="0"
width="100%">
+ <tr>
+ <th class="portlet-section-title">Manage currently defined
properties.</th>
+ </tr>
+ <tr>
+ <td class="portlet-section-body" valign="top">
- <h:form>
- <!-- defines layout of property table -->
- <table width="100%">
- <thead class="portlet-section-header">
- <tr>
- <th>Name</th>
- <th>Description</th>
- <th>Inherited</th>
- <th>Value</th>
- <th>Delete</th>
- </tr>
- </thead>
- <tbody>
- <c:forEach items="#{properties.entries}"
var="prop" varStatus="status">
- <tr class="#{status.index % 2 == 0 ?
'portlet-section-body' : 'portlet-section-alternate'}">
- <td>
- <h:outputText title="#{prop.name}"
value="#{prop.displayName}"/>
- </td>
- <td>
-
<h:outputText>#{prop.description}</h:outputText>
- </td>
- <td>#{prop.inherited ? 'Yes' :
'No'}</td>
- <td>
- <c:choose>
- <c:when test="#{prop.type ==
'java.lang.Boolean'}">
- <h:selectBooleanCheckbox
styleClass="portlet-form-button" value="#{prop.value}"
-
readonly="#{prop.readOnly}"/>
- </c:when>
- <c:otherwise>
- <h:inputText
styleClass="portlet-form-input-field" value="#{prop.value}"
-
readonly="#{prop.readOnly}"/>
- </c:otherwise>
- </c:choose>
- </td>
- <td>
- <h:commandLink
action="#{properties.action.removeProperty}"
rendered="#{!prop.inherited}">
- <h:outputText value="Delete"/>
- <f:param name="name"
value="#{prop.name}"/>
- </h:commandLink>
- </td>
+ <h:form>
+ <!-- defines layout of property table -->
+ <table width="100%">
+ <thead class="portlet-section-header">
+ <tr>
+ <th>Name</th>
+ <th>Description</th>
+ <th>Inherited</th>
+ <th>Value</th>
+ <th>Delete</th>
</tr>
- </c:forEach>
- </tbody>
- </table>
- <!-- ends property list -->
- <h:commandButton value="Update"
styleClass="portlet-form-button portlet-section-buttonrow"/></h:form>
+ </thead>
+ <tbody>
+ <c:forEach items="#{properties.entries}"
var="prop" varStatus="status">
+ <tr class="#{status.index % 2 == 0 ?
'portlet-section-body' : 'portlet-section-alternate'}">
+ <td>
+ <h:outputText title="#{prop.name}"
value="#{prop.displayName}"/>
+ </td>
+ <td>
+
<h:outputText>#{prop.description}</h:outputText>
+ </td>
+ <td>#{prop.inherited ? 'Yes' :
'No'}</td>
+ <td>
+ <c:choose>
+ <c:when test="#{prop.type ==
'java.lang.Boolean'}">
+ <h:selectBooleanCheckbox
styleClass="portlet-form-button" value="#{prop.value}"
+
readonly="#{prop.readOnly}"/>
+ </c:when>
+ <c:otherwise>
+ <h:inputText
styleClass="portlet-form-input-field" value="#{prop.value}"
+
readonly="#{prop.readOnly}"/>
+ </c:otherwise>
+ </c:choose>
+ </td>
+ <td>
+ <h:commandLink
action="#{properties.action.removeProperty}"
+
rendered="#{!prop.inherited}">
+ <h:outputText value="Delete"/>
+ <f:param name="name"
value="#{prop.name}"/>
+ </h:commandLink>
+ </td>
+ </tr>
+ </c:forEach>
+ </tbody>
+ </table>
+ <!-- ends property list -->
+ <h:commandButton value="Update"
styleClass="portlet-form-button portlet-section-buttonrow"/></h:form>
- </td>
- </tr>
- </table>
+ </td>
+ </tr>
+ </table>
+ </c:if>
<!-- ends property list section -->
</td>
Show replies by date