Author: chris.laprun(a)jboss.com
Date: 2008-02-09 15:42:01 -0500 (Sat, 09 Feb 2008)
New Revision: 9911
Modified:
modules/portlet/trunk/test/src/main/java/org/jboss/portal/simple/samples/event/CartPortlet.java
modules/portlet/trunk/test/src/main/java/org/jboss/portal/simple/samples/event/CatalogPortlet.java
Log:
- Minor cosmetic changes.
Modified:
modules/portlet/trunk/test/src/main/java/org/jboss/portal/simple/samples/event/CartPortlet.java
===================================================================
---
modules/portlet/trunk/test/src/main/java/org/jboss/portal/simple/samples/event/CartPortlet.java 2008-02-09
20:41:37 UTC (rev 9910)
+++
modules/portlet/trunk/test/src/main/java/org/jboss/portal/simple/samples/event/CartPortlet.java 2008-02-09
20:42:01 UTC (rev 9911)
@@ -52,7 +52,7 @@
if (!items.isEmpty())
{
-
writer.append("<table><thead><tr><th>Description</th><th>Price</th></tr></thead><tbody>");
+ writer.append("<table width='95%'><thead><tr
align='left'><th width='66%'>Description</th><th
align='right'>Price</th></tr></thead><tbody>");
int total = 0;
for (CatalogItem item : items)
{
@@ -61,7 +61,8 @@
writer.append("<tr><td>").append(item.getDescription()).append("</td><td
align='right'>$").append("" + price)
.append("</td></tr>");
}
- writer.append("<tr><td colspan='2'
align='right'>").append("$" +
total).append("</td></tr></tbody></table>");
+
writer.append("<tr><td><b>Total:</b></td><td
align='right' style='border-top: 2px solid #000;'>")
+ .append("$" +
total).append("</td></tr></tbody></table>");
}
else
{
Modified:
modules/portlet/trunk/test/src/main/java/org/jboss/portal/simple/samples/event/CatalogPortlet.java
===================================================================
---
modules/portlet/trunk/test/src/main/java/org/jboss/portal/simple/samples/event/CatalogPortlet.java 2008-02-09
20:41:37 UTC (rev 9910)
+++
modules/portlet/trunk/test/src/main/java/org/jboss/portal/simple/samples/event/CatalogPortlet.java 2008-02-09
20:42:01 UTC (rev 9911)
@@ -46,7 +46,7 @@
renderResponse.setContentType("text/html");
Writer writer = renderResponse.getWriter();
-
writer.append("<table><thead><tr><th>Description</th><th>Price</th><th>Actions</th></tr></thead><tbody>");
+ writer.append("<table width='95%'><thead><tr
align='left'><th width='50%'>Description</th><th
width='25%'>Price</th><th>Actions</th></tr></thead><tbody>");
PortletURL addURL = renderResponse.createActionURL();
addURL.setParameter("op", "add");
Show replies by date