Jen,

We set the mode in the onSubmitAction method:

protected void onSubmitAction(ActionRequest request,
            ActionResponse response, Object command, BindException bind)
            throws Exception {
            //Logic here to save preferences or whatever.
            response.setPortletMode(PortletMode.VIEW);
}

On 9/7/07, Jennifer Bourey <[EMAIL PROTECTED]> wrote:
>
> How do you handle sending the portlet back to view mode?  Does this happen
> automatically, or are you manually setting the mode?
>
> Thanks!
>
> - Jen
>
>
> On Sep 7, 2007, at 11:50 AM, Parker Grimes wrote:
>
> Here are some screenshots of one of our portlets. One in "view" mode and
> the other in "edit" mode. When you click "Save" or "Cancel" in edit mode it
> returns you to view mode.
>
> -Parker
>
>
>
> ---------------------------------
> Jennifer Bourey
> Technology and Planning
> Yale University ITS
> 203.432.5718
>
>
>
>
> --
> You are currently subscribed to [email protected] as: [EMAIL 
> PROTECTED]
> To unsubscribe, change settings or access archives, see 
> http://www.ja-sig.org/wiki/display/JSG/uportal-dev
>
>

-- 
You are currently subscribed to [email protected] as: [EMAIL 
PROTECTED]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/uportal-dev

Reply via email to