Hello,
I would like to have a portlet that first is minimized, and is restored
when a user makes an action (clicks a hyperlink) on another portlet.
I thought the solution would be easy:
In the buildNormalContext function of the Action class of the minimized
portlet i put a:
String id = portlet.getID();
rundata.getSession().setAttribute("ID", id);
and in the JSP template of the other portlet (the one that performs the
action) i put a :
<%
StringBuffer Buffer = new StringBuffer();
String id = (String)session.getAttribute("ID");
String restore =
"http://139.91.183.233:8381/jetspeed/portal/user/athanasi/page/default.psml/js_peid/"+id+"?action=controls.Restore";
Buffer.append("<a href="+"\""+restore+"\""+"><h2>Restore the other portlet</h2></a>");
String buf = Buffer.toString();
out.println(buf);
%>
BUT:
It seems that the:
String id = (String)session.getAttribute("ID"); is always return null!
My question is:
If a portlet is first minimized, does it perform the buildNormalContext
function of its Action class, or not?
If not, where do i have to write code so that it handle it, when it is
minimized?
Thanks in advance!
Nikos.
ps. I tried another way as well:
if (((PortletState)portlet).isMinimized(rundata))
{
((PortletState)portlet).setMinimized(false, rundata);
}
else //togle
((PortletState)portlet).setMinimized( true, rundata);
but nothing happend.....
I believe that when the portlet is minimized, the code in
buildnormalContext() is not executed. Am I correct?
What can i do?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]