Hi All,
I would like to ask if anybody has a good suggestion for showing a
portals Legal Disclaimer or Terms of Use document to a 1st time user of
the portal. This inquiry is a reference to message
http://www.mail-archive.com/[EMAIL PROTECTED]/msg05276.html
RE: How to Maximize a portlet programatically
So far, I created a Velocity portlet and a legal.vm and I thought it
would be a fairly easy task to force the portlet to go into a Maximized
mode immediately, allow the user to read the policy and Accept the
terms, close the portlet after which there would be no further need to
view the terms on future logins if the user agreed to the terms.
In the above reference message, I was not clear on exactly how the
implementation solved the same problem. I have tried using David's
suggestion:
JetspeedLink link = JetspeedLinkFactory.getInstance(rundata);
DynamicURI duri = link.getAction("controls.Maximize");
JetspeedLinkFactory.putInstance(link);
rundata.setRedirectURI(duri.toString());
But I have not been able to make it work. My preference is not to show the
other portlets until acceptance, however a maximized portlet is good enough.
Perhaps I am not putting this code in the right place. Using the above the
portlet displays in its normal location but not maximized.
I thank you in advance for any comments or help in getting this to work.
John Wubbel
John Wubbel Consultancy, Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]