You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by Viktor Malytskyy <vi...@rogers.com> on 2003/12/03 16:52:58 UTC

Re: [portlets] How to change mode programmatically?

Hi!

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:
> portlets-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service 
> <http://docs.yahoo.com/info/terms/>.




---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org