Author: chris.laprun(a)jboss.com
Date: 2008-02-12 15:10:38 -0500 (Tue, 12 Feb 2008)
New Revision: 9941
Modified:
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/portal/samples/RemoteControlResourcePortlet.java
Log:
- Removed preference code for now as it's not working.
Modified:
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/portal/samples/RemoteControlResourcePortlet.java
===================================================================
---
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/portal/samples/RemoteControlResourcePortlet.java 2008-02-12
18:47:37 UTC (rev 9940)
+++
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/portal/samples/RemoteControlResourcePortlet.java 2008-02-12
20:10:38 UTC (rev 9941)
@@ -32,14 +32,14 @@
renderResponse.setContentType("text/html");
PrintWriter printWriter = renderResponse.getWriter();
printWriter.print("<script type='text/javascript'>function
openRemote(url){window.name='jbp_parent';" +
- "window.open(url, 'jbp_remote',
'width=400,height=300,scrollable=yes')}</script>");
+ "window.open(url, 'jbp_remote',
'width=400,height=200,scrollable=yes')}</script>");
printWriter.print("<p><a href='#'
onclick=\"openRemote('");
ResourceURL resource = renderResponse.createResourceURL();
printWriter.print(resource);
printWriter.print("')\">Open remote
control!</a></p>");
- String color = renderRequest.getPreferences().getValue("color",
"000");
+ /*String color = renderRequest.getPreferences().getValue("color",
"000");
printWriter.print("<p>Preferred color: <span style='border: 1px
solid #aaa; background-color:#"
- + color + ";'> </span></p>");
+ + color + ";'> </span></p>");*/
}
@Override
@@ -47,7 +47,7 @@
{
resourceResponse.setContentType("text/html");
PrintWriter writer = resourceResponse.getWriter();
- resourceRequest.getPreferences().setValue("color", COLORS[COLOR_INDEX++ %
8]);
+// resourceRequest.getPreferences().setValue("color", COLORS[COLOR_INDEX++
% 8]);
writer.print("<html><head><script
type='text/javascript'>function
openLinkInParent(url){window.open(url,'jbp_parent');}</script>" +
"<link rel=\"stylesheet\"
href=\"/simple/css/master.css\"
type=\"text/css\"/></head><body>");
PortletURL url = resourceResponse.createRenderURL();