[jboss-user] [JBoss Portal] - Re: Change Page DisplayName Programmatically

nidhi_hs do-not-reply at jboss.com
Mon Aug 13 11:16:12 EDT 2007


Yes its possible. I struggled hard to get this solution. 

Here is how you get portal session from a portlet (am using JSF portlet) - 

ExternalContext context = FacesContext.getCurrentInstance().getExternalContext();
JBossActionRequest request = (JBossActionRequest) context.getRequest();
ServerInvocationContext serverContext = request.getControllerContext().getServerInvocation().getServerContext();
HttpServletRequest clientRequest = serverContext.getClientRequest();
HttpSession session = clientRequest.getSession();

context.getRequest() - will return JBossActionRequest or JBossRenderRequest based on the scenario

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073608#4073608

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073608



More information about the jboss-user mailing list