-
1. Re: getting a portlet to load in maximized state
den74 Jun 7, 2007 2:58 AM (in response to advaittrivedi)if nothing change on portal 2.4.x (i don't know on 2.6) is not possible to define via configuration file the window's portlet mode.
I had a similar problem and solved defining a new layout having the maximized mode only and setting that layout for the page including my portlet. In that way i can't set normal mode but it wasn't neede to me -
2. Re: getting a portlet to load in maximized state
den74 Jun 7, 2007 3:01 AM (in response to advaittrivedi)another way is to force the window state programmaticaly with
setWindowState(WindowState.MAXIMIZED) on ActionResponse -
3. Re: getting a portlet to load in maximized state
julien1 Jun 7, 2007 7:46 AM (in response to advaittrivedi)Try using the org.jboss.portal.api.* stuff.
You can have an event listener that listen of PageRenderEvent and change the window state of the portlet to maximized.
There is an example of page render listener that manipulates window states in the core-samples package of the source code. -
4. Re: getting a portlet to load in maximized state
den74 Jun 7, 2007 10:50 AM (in response to advaittrivedi)hi julien, i looked for solution you suggested but i find PageRenderEvent just in portal 2.6, so maybe it is valid just from that version on.
Actualli I am using 2.4.0 :( but i will remember when i will upgrade to 2.6, thanks -
5. Re: getting a portlet to load in maximized state
advaittrivedi Jun 8, 2007 11:15 AM (in response to advaittrivedi)den,
your solution: "using setWindowState(WindowState.MAXIMIZED) on ActionResponse" is possible in which life cycle method? If its possible only for processAction than how to trigger it unless user initiates an action?
Thanks & Regards, -
6. Re: getting a portlet to load in maximized state
den74 Jun 8, 2007 11:28 AM (in response to advaittrivedi)you are right, i used that way to force the window state during the jsf navigation and not to change the initial state. Sorry for wrong suggestion