The simplest way to do this is to set the "EDIT" mode on the portlet url
, that you use for the target of the form. So, if edit mode has a form
to fill in certain settings, you need a portlet action url to be the
target for the html form. on that portlet action url, simply have the
portlet mode set to 'VIEW', then when th user submits the form, after
the Action processing is done they will go to the VIEW mode for render.
It's also possible to "set" the portlet mode to view programatically in
the action processing. There might be good reasons to do it either way.
I just view doing it in the PortletURL as less code to write.
---- Cris J H
Jennifer Bourey 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