[jboss-dev-forums] [Design of JBoss Portal] - LayouStrategy and StrategyResponse API
radzish
do-not-reply at jboss.com
Mon Jan 8 06:56:35 EST 2007
I am using JBoss Portal 2.4.0.
I consider my question not of 'user' category, because it is related to Portal Theme API, so I am posting it here, not into user forum.
I was trying to write my own strategy implementation for specific layout behaviour and was disapointed of useless of this API. It seems like LayoutStrategy was designed only for MaximizingStrategyImpl implementation.
The problem is in following:
We have method StrategyResponse.addWindowStateChange(WindowContext portlet, WindowState state), which takes a WindowContext instance as parameter. In the same time only WindowLocations are available from StrategyContext.
The only way of using it is for updating state of the target window, which context is available from StrategyEvent, but it would be really nice to update states of other windows.
At the same time we have StrategyResponse.addNoRender(WindowLocation portlet) method that takes WindowLocation as parameter (that was actually needed for MaximizingStrategyImpl implementation).
It would be really nice to have StrategyResponse.addWindowStateChange(WindowLocation location, WindowState state).
The same applies to StrategyResponse.addPortletModeChange() method
For now, I have to use reflection in order to get WindowContext from WindowLocation and use StrategyResponse.addWindowStateChange(WindowContext portlet, WindowState state) method, which is not proper sollution, though it works
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998959#3998959
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3998959
More information about the jboss-dev-forums
mailing list