I want to create a URL string from a portlet.
THe URL need to invoke the authentication of the user.
I am not sure how to command the portal renderrespoonse to create the the correct URL with "auth" portion. I went through the jboss portal source code, it seems that some code like "wantAuthenticated" ...... But i don't know how to make it work.
Try the following :
PortalNode window = ((JBossRenderResponse)resp).getPortalNode(); PortalNodeURL url = ((JBossRenderResponse)resp).createRenderURL(window); url.setAuthenticated(Boolean.TRUE); String s = url.toString();