You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by e....@student.utwente.nl on 2007/02/01 16:59:26 UTC
How do I get the mode the portlet is in?
Hello,
I tried to get the mode(edit or view) from the portlet but my aReq.getParameter("mode")); does not work.
public void processAction(ActionRequest aReq, ActionResponse aRes)throws PortletException, IOException {
PortletMode mode = new PortletMode(aReq.getParameter("mode"));
aRes.setPortletMode(mode);
if (mode.equals(PortletMode.VIEW)) {..........
How do I get the mode the portlet is in from within processAction?
Regarts,
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: How do I get the mode the portlet is in?
Posted by David Sean Taylor <da...@bluesunrise.com>.
On Feb 1, 2007, at 7:59 AM, <e....@student.utwente.nl>
<e....@student.utwente.nl> wrote:
> Hello,
>
> I tried to get the mode(edit or view) from the portlet but my
> aReq.getParameter("mode")); does not work.
>
> public void processAction(ActionRequest aReq, ActionResponse aRes)
> throws PortletException, IOException {
> PortletMode mode = new PortletMode(aReq.getParameter("mode"));
> aRes.setPortletMode(mode);
> if (mode.equals(PortletMode.VIEW)) {..........
>
> How do I get the mode the portlet is in from within processAction?
>
http://www.bluesunrise.com/portlet-api/javax/portlet/
PortletRequest.html#getPortletMode()
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org