This is what you should do:
PortletURL url = response.createActionURL(); // or response.createRenderURL() it depends how you are trying to do this.
url.setPortletMode(PortletMode.VIEW);
and then this url.toString() should be used when you click this button.
Regards, Viktor
Punit Pandey wrote:
Hello,
I want to change the mode of a portlet on a click of a button. How can I do
that? In Portlet API, there is method namely getMode() but nothing like
setMode(). Is there anyway to set mode directly in request.
Thanks in advance & Regards,
Punit Pandey
================================================= http://portlets.blogspot.com - Portlets blog http://groups.yahoo.com/group/portlets/ - Portlets Discussion Group
*Yahoo! Groups Sponsor*
ADVERTISEMENT
<http://rd.yahoo.com/SIG=12c0pf94m/M=267637.4116732.5333197.1261774/D=egroupweb/S=1705007207:HM/EXP=1070545725/A=1853618/R=0/*http://www.netflix.com/Default?mqso=60178338&partid=4116732>
To unsubscribe from this group, send an email to: [EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/>.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
