Author: wesleyhales
Date: 2008-02-09 22:38:03 -0500 (Sat, 09 Feb 2008)
New Revision: 9916
Modified:
modules/portlet/trunk/test/src/test/resources/simple-portal-war/WEB-INF/jsp/error.jsp
modules/portlet/trunk/test/src/test/resources/simple-portal-war/css/master.css
Log:
error formatting and other css
Modified:
modules/portlet/trunk/test/src/test/resources/simple-portal-war/WEB-INF/jsp/error.jsp
===================================================================
---
modules/portlet/trunk/test/src/test/resources/simple-portal-war/WEB-INF/jsp/error.jsp 2008-02-10
02:16:32 UTC (rev 9915)
+++
modules/portlet/trunk/test/src/test/resources/simple-portal-war/WEB-INF/jsp/error.jsp 2008-02-10
03:38:03 UTC (rev 9916)
@@ -1,21 +1,34 @@
-<%@ page language="java" %>
-
+<%@ page language="java" %>
<div class="portlet">
<div class="portlet-frame">
<div class="header full-width">
<div class="header-layer full-width">
<div class="title two-third-width float-left">
- <h2><%=
request.getAttribute("org.jboss.portal.portlet.portal.error.portlet_name")%>
+ <h2>
+
${requestScope['org.jboss.portal.portlet.portal.error.portlet_name']}
${requestScope['org.jboss.portal.portlet.portal.error.status'] ==
'not_found' ? ' not found' : ''}
</h2>
</div>
</div>
</div>
- <p style="font-weight: bold;">Portlet was not rendered</p>
- <b>Error status:</b> <%=
request.getAttribute("org.jboss.portal.portlet.portal.error.status")%><br/>
- <b>Portlet name:</b> <%=
request.getAttribute("org.jboss.portal.portlet.portal.error.portlet_name")%><br/>
- <b>Portlet application
- name:</b> <%=
request.getAttribute("org.jboss.portal.portlet.portal.error.application_name")%><br/>
- <b>Exception:</b> <%=
request.getAttribute("org.jboss.portal.portlet.portal.error.cause")%><br/>
- <b>Window id:</b> <%=
request.getAttribute("org.jboss.portal.portlet.portal.error.window_id")%><br/>
+ <h3 class="error-header">Portlet was not rendered</h3>
+ <div class="error-container">
+ <ul>
+ <li>
+ <span>Error status:</span>
${requestScope['org.jboss.portal.portlet.portal.error.status']}
+ </li>
+ <li>
+ <span>Portlet name:</span>
${requestScope['org.jboss.portal.portlet.portal.error.portlet_name']}
+ </li>
+ <li>
+ <span>Portlet application name:</span>
${requestScope['org.jboss.portal.portlet.portal.error.application_name']}
+ </li>
+ <li>
+ <span>Exception:</span> ${!empty
requestScope['org.jboss.portal.portlet.portal.error.cause'] ?
requestScope['org.jboss.portal.portlet.portal.error.cause'] : 'Error cause
unavailable'}
+ </li>
+ <li>
+ <span>Window id:</span>
${requestScope['org.jboss.portal.portlet.portal.error.window_id']}
+ </li>
+ </ul>
+ </div>
</div>
</div>
Modified: modules/portlet/trunk/test/src/test/resources/simple-portal-war/css/master.css
===================================================================
---
modules/portlet/trunk/test/src/test/resources/simple-portal-war/css/master.css 2008-02-10
02:16:32 UTC (rev 9915)
+++
modules/portlet/trunk/test/src/test/resources/simple-portal-war/css/master.css 2008-02-10
03:38:03 UTC (rev 9916)
@@ -118,7 +118,7 @@
}
a {
- color: #e1d77e;
+ color: #666666;
}
p {
@@ -179,7 +179,7 @@
background-repeat: repeat-x;
background-position: top left;
text-decoration:none;
- font: bold 11px Lucida Sans, Trebuchet, tahoma, sans-serif;
+ font: bold 11px;
}
div#container div.nav ul li a{
@@ -215,7 +215,6 @@
div#container div#content div.portlet-frame{
background-color: #fff;
border: 1px solid #fff;
- /*height: 500px;*/
}
div#container div#content div.portlet div.header {
@@ -246,4 +245,40 @@
div#container div#content div.portlet div.header div.header-layer div.controls
span.mode-button{
text-align: right;
padding: 0 5px 0 0;
-}
\ No newline at end of file
+}
+
+div#container div#content div.portlet div.header div.header-layer div.controls
span.mode-button a {
+ color: #e1d77e;
+ font: normal 11px;
+ text-decoration:none;
+}
+
+/*----------------------------------Error portlet*/
+
+div.error-container {
+ padding: 5px;
+ background-color: #fff;
+}
+
+h3.error-header {
+ background-color: #cc1100;
+ color: #fff;
+ padding: 3px;
+}
+
+div.error-container ul {
+ list-style: none;
+ list-style-position: inside;
+}
+
+div.error-container ul li {
+ padding: 3px 0 3px 0;
+ border-bottom: 1px solid #777777;
+}
+
+div.error-container ul li span {
+ font-weight: bold;
+ color: #cc1100
+}
+
+