What do you mean by the Page Display name....
Page - node or Browser display name...
Browser display name. The name that gets displayed on the tabs.
I acheived this by putting some logic in tabs.jsp.
But you need to decide on where exactly you want to put it and how you want to change the name...
If you are putting in tabs.jsp then.. i have a question.. are you changing based on the portlets being rendered for a current page...
well usually you set the title using from portlets using renderer.setAttribute("headercontent",""); and having the headercontent tag in your layouts.
this would actually put any of ur meta,script,link or title.. anything for that case..
I am not changing the portlet title. I am changing the page display name. When I say page display name I mean the name of the tab.
My requirement was to change the "Sign In" tab name to "My Account" after user logs in. So I have a logic in tabs.jsp to check if the user has logged in.
I have one issue. I hope you would have a solution for that.
I am trying to get access to objects that i am setting in portal session from portlet session. Is that possible.?
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
I am not using JSF
But i tried using the renderRequest...
ServerInvocationContext serverContext = jrr.getControllerContext().getServerInvocation().getServerContext();
That call is throwing the following exception.
19:36:16,531 ERROR [CommandServlet] Exception in command invocation java.lang.LinkageError: Class org/jboss/portal/core/controller/ControllerContext violates loader constraints at java.lang.ClassLoader.defineClass1(Native Method)
Not sure on the error. Its working for me. Which version of Jboss portal are you using. Am using 2.6.1