[jboss-user] [JBoss Portal] - Re: windowState not set on ActionRequest

2009-07-15 Thread hilmer
Okay

I simply do a return from my processAction and then, (according to the spec), 
in the subsequent doView call renderRequest.getWindowState() should return 
WindowState.MINIMIZED, but it also returns WindowState.NORMAL, so then the bug 
lies here?

What does work is if you call 
actionResponse.setWindowState(WindowState.MINIMIZED) in processAction, in this 
case the doView is not called at all, and the portlet is indeed minimized.
But if this is how it is supposed to work I really need a way to check the 
incomming actionRequest for the windowstate parameter.

Something like: 
  | if (actionRequest.getWindowState() == WindowState.MINIMIZED)
  |actionResponse.setWindowState(WindowState.MINIMIZED)
  | 

But as stated before this does not work.

To me there is definitely a bug somewhere.

--Soren

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4243664#4243664

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243664
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: windowState not set on ActionRequest

2009-07-14 Thread apemberton
I think JSR168/286 define that the WindowState change won't be propagated until 
the subsequent RenderRequest (after your ActionRequest).

From JSR286:

anonymous wrote : The setWindowState method allows a portlet to change its 
current window state. The new window state will be effective in the following 
processEvent and render requests. 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4243623#4243623

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243623
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user