| Justin Rosenberg 2004-06-20, 10:19 pm |
| I figured out how to set the current Portlet to SOLO State
<a href="<portletAPI:createURI state="Solo"/>">Self</a>
But I can't seem to create a link to start a Portlet in SOLO State.
Documentation says I should do it like this:
<wps:urlGeneration contentNode="2P" compositionNode="aboutPortal"
portletWindowState="Solo" pacCheck="NoCheck">
<a href="<% wpsURL.write(out); %>">Solo</a>
</wps:urlGeneration>
Where "2P" is the unique name of the Page containing the Portlet with
the unqiue name of "aboutPortal". This command does create the link,
but the Portlet "aboutPortal" does not start in the SOLO State.
I even tried to do it with some Java code, but I still get the same result:
<%
String URL = "none";
try
{
ObjectID contentNode = ObjectID.read("2P");
ObjectID compNode = ObjectID.read("aboutPortal");
CreateUrlCommand command = new CreateUrlCommand();
command.setRunData(com.ibm.wps.engine.RunData.from(request));
command.setContentNode(contentNode);
command.setCompositionNode(compNode);
command.setPortletWindowState(CreateUrlCommand.PORTLET_MAX);
command.setPacCheck(CreateUrlCommand.PAC_NO_CHECK);
command.setRequestID(true);
command.execute();
URL = command.getURL().toString();
}
catch(Exception e)
{
URL = e.getMessage();
}
%>
<BR>
This is the result <%=URL%>
<BR>
<a href="<%=URL%>"> Try this </a>
<BR>
Please help. Thank you.
Justin
|