[jboss-user] [JBoss Portal] - Re: Portlet printing
do-not-reply at jboss.com
Wed Aug 1 04:51:09 EDT 2007
I would be very interested in seeing your solution as I am trying to achieve the same thing.
I am a JBoss portal newbie so I did not want to create my own layout on my first attempt.
Instead I modified the generic layout in portal-core.war/WEB-INF/portal-layouts.xml to include a uri state mapping to my custom layout jsp print.jsp.
| <uri state="maximized">/layouts/generic/maximized.jsp</uri>
| <uri state="print">/layouts/generic/print.jsp</uri>
| <region name="left"/>
| <region name="center"/>
I then also modified portal-core.war/WEB-INF/portlet.xml to include a custom window state called print as follows:
| <description>print view</description>
In my own portlet, when I switch the window state to print (via processAction) the layout is not mapped to print.jsp but to index.jsp. I'm clearly missing a step.
My new window state is being registered as when I obtain the PortalContext from the ActionRequest and then iterate over the supported window states, my custom state is included. I can't seem to map the layout to print.jsp however.
Help would be appreciated!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069531#4069531
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069531
More information about the jboss-user