Author: chris.laprun(a)jboss.com
Date: 2008-11-02 15:34:46 -0500 (Sun, 02 Nov 2008)
New Revision: 12225
Modified:
modules/portlet/trunk/samples/src/main/java/org/jboss/portal/portlet/samples/google/GoogleClippingPortlet.java
Log:
- Minor improvement of doEdit markup.
Modified:
modules/portlet/trunk/samples/src/main/java/org/jboss/portal/portlet/samples/google/GoogleClippingPortlet.java
===================================================================
---
modules/portlet/trunk/samples/src/main/java/org/jboss/portal/portlet/samples/google/GoogleClippingPortlet.java 2008-10-31
19:30:05 UTC (rev 12224)
+++
modules/portlet/trunk/samples/src/main/java/org/jboss/portal/portlet/samples/google/GoogleClippingPortlet.java 2008-11-02
20:34:46 UTC (rev 12225)
@@ -90,10 +90,10 @@
else
{
html = "<p class='portlet-font'>Couldn't retrieve result
from Google. Check that '"
- + beg.replaceAll("<", "<") + "'
(value of the <code>beginningString</code> portlet preference) is "
- + "contained in the result of issued query ('" + query
- + "', based on the value of the <code>query</code>
portlet preference). You can adjust these values in "
- + "<code>portlet.xml</code> to tweak this portlet
output...</p>";
+ + beg.replaceAll("<", "<") + "' (value
of the <code>beginningString</code> portlet preference) is "
+ + "contained in the result of issued query ('" + query
+ + "', based on the value of the <code>query</code>
portlet preference). You can adjust these values in "
+ + "<code>portlet.xml</code> to tweak this portlet
output...</p>";
}
renderResponse.setContentType("text/html");
@@ -132,17 +132,14 @@
{
renderResponse.setContentType("text/html");
renderResponse.getWriter().print(
- "<div align='center'>\n" +
- " <br/>\n" +
- " <font class='portlet-font'>Change
Location:</font>\n" +
- "\n" +
- " <form method='post' action='" +
renderResponse.createActionURL() + "'\n" +
- " <font class='portlet-font'>Zip
Code:</font><br/>\n" +
- " <input class='portlet-form-input-field'
type='text' value='' size='12' name='" + ZIP +
"'/>\n" +
- " <br/>\n" +
- " <input class='portlet-form-input-field'
type='submit' name='submit' value='submit'>\n" +
- " </form>\n" +
- "</div>");
+ "<div align='center'>\n" +
+ " <br/>\n" +
+ " <form method='post' action='" +
renderResponse.createActionURL() + "'\n" +
+ " <font class='portlet-font'>Change location (zip
code): </font>\n" +
+ " <input class='portlet-form-input-field'
type='text' value='' size='12' name='" + ZIP +
"'/>\n" +
+ " <input class='portlet-form-input-field'
type='submit' name='submit' value='submit'>\n" +
+ " </form>\n" +
+ "</div>");
}
@Override
Show replies by date