-
1. Re: start portlet maximised
yaceek Oct 11, 2006 8:02 AM (in response to shaunenslin)I'm interested in this too.
If it's not possible, what should I modify in jboss portal code to make it possible? -
2. Re: start portlet maximised
yaceek Oct 12, 2006 9:30 AM (in response to shaunenslin)Problem solved by modifying portal source :)
-
3. Re: start portlet maximised
mholzner Oct 12, 2006 9:45 AM (in response to shaunenslin)you don't have to modify portal src!
The correct way to appoach this is the layout strategy. Take a look at the MaximizingStrategy as an example. In the strategy you get all the portal objects and their navigational state and you have the ability to change their state or position on the page, you can filter portlets, etc.
If this doesn't let you do what you need, there is a design problem in the strategy! -
4. Re: start portlet maximised
yaceek Oct 12, 2006 10:02 AM (in response to shaunenslin)From what i've seen in the sources, when a portal page is visited for the first time all portlet windows are assigned new, default navigational states (this being WindowState.NORMAL, Mode.VIEW).
I wanted to create a portlet window initially maximized based on a property taken from configuration. At layout strategy level i didn't find any way to access properties defined in the configuration (but I didn't look for it too long). -
5. Re: start portlet maximised
mholzner Oct 20, 2006 4:23 PM (in response to shaunenslin)Perhaps you could get what you wnat by using several strategies?
The strategy has no access to config info, that is correct. But you could configure different strategies for different layouts, or pages. Not perfect, but perhaps enough? -
6. Re: start portlet maximised
mholzner Oct 20, 2006 4:28 PM (in response to shaunenslin)Where is your configuration, and what does it look like?
-
7. Re: start portlet maximised
sportsbaby1980 Oct 23, 2006 5:21 AM (in response to shaunenslin)you can use ctrl:windowstate=maximized in url .
give a url for example:http://jsports.org/portal/index.html?ctrl:cmd=render&ctrl:windowstate=maximized&ctrl:window=default.forums.ForumsPortletWindow&op=showTopic&t=59