• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to get WindowState to change in Sun Portal 7

 
David Yutzy
tumbleweed and gunslinger
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic