Problem with URLGeneration
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > Problem with URLGeneration




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Problem with URLGeneration  
Justin Rosenberg


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-21-04 10:50 PM

PLEASE HELP!

I have figured out how to create a link that sets the current Portlet to
SOLO mode.

<a href="<portletAPI:createURI state="Solo"/>">Self</a>

But I can't seem to create a link to start a Portlet in SOLO State on a
seperate page. 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.

The tag produces:
http://localhost:9081/wps/myportal/!ut/p/_s.7_0_A/7_0_FQ?cID=6_0_LU&nID=7_0_
P2

It should produce something that looks like:
http://localhost:9081/wps/myportal/!ut/p/_s.7_0_A/7_0_P2/.cmd/ad/.ps/S/.c/6_
0_LU/.ce/7_0_P4/.p/5_0_LT/.d/0#7_0_P4



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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:35 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register