aspose file tools
The moose likes Portals and Portlets and the fly likes Unable to get WindowState to change in Sun Portal 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "Unable to get WindowState to change in Sun Portal 7" Watch "Unable to get WindowState to change in Sun Portal 7" New topic
Author

Unable to get WindowState to change in Sun Portal 7

David Yutzy
tumbleweed and gunslinger
Ranch Hand

Joined: Jun 29, 2001
Posts: 192
Maybe I'm not understanding the concept, but when setting the WindowState to MAXIMIZED, isn't the portlet supposed to take up all of the container space?

Well, mine doesn't. I don't get an error, but the portlet doesn't seem to be able to switch states, although in Pluto is works just fine, in P7 it doesn't.

All of the code works, but when I have the portlet as either "thin" or "thick" or any other width value, it just stays the same size.

Any ideas?

NOTE: What I'm trying to accomplish is this: When the user fills out a search form, the portlet switches to MAXIMIZED to display the results so I cann display more columns than what would normally be shown in the narrow or thin state.
David Yutzy
tumbleweed and gunslinger
Ranch Hand

Joined: Jun 29, 2001
Posts: 192
What I found out was that if the user has not logged in, the "state" or "persistence" is not maintained and is causing this error.

Apparently, when you have the user as "authlessanonymous", no session is kept and thus cannot be persisted from screen to screen and neither are the objects (I was getting null values during state changes and look-ups).

Deploy this portlet to a user who is logged in and everythign worked as expected.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to get WindowState to change in Sun Portal 7
 
Similar Threads
Maximize a portlet
question on portlet maximized
Invalid Window State and null from portlet to JSP
About changing window state of a portlet without a ActionResponse
Set the window state to maximed by default