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



On 9/7/07, Parker Grimes <[EMAIL PROTECTED]> wrote:
>
> Jen,
>
> We have written a several portlets using Spring portlet MVC utilizing the
> portlet edit mode. It is pretty simple to do, just use the
> PortletModeHandlerMapping for "view" and "edit" modes.
>
> Here is a snippet from our weather.xml Spring config file:
>
> <!-- Handler Mapping -->
>     <bean id="portletModeHandlerMapping" class="
> org.springframework.web.portlet.handler.PortletModeHandlerMapping ">
>
>         <property name="portletModeMap">
>             <map>
>                 <entry key="view"><ref
> bean="weatherViewController"/></entry>
>                 <entry key="edit"><ref
> bean="weatherEditController"/></entry>
>             </map>
>         </property>
>     </bean>
>
> Let me know if you would like more detail.
>
> Parker
> Programmer / Systems Analyst
> Southern Utah University
>
> On 9/7/07, Jennifer Bourey <[EMAIL PROTECTED] > wrote:
> >
> > Hi all,
> > I was wondering if anyone had some good examples of portlets that use
> > Spring portletMVC in conjunction with edit mode.  It seems like a lot of the
> > spring portlets I've seen bypass the built-in uportal edit button in favor
> > of a configuration link produced by the portlet itself.  I guess I'm
> > specifically looking to be able to use the uportal channel/portlet edit
> > button to enter edit mode, then have the code automatically set the portlet
> > back to normal mode after a successful preferences update.
> >
> > - Jen
> >
> >
> > ---------------------------------
> > Jennifer Bourey
> > Technology and Planning
> > Yale University ITS
> > 203.432.5718
> >
> >
> >
> >
> > --
> > You are currently subscribed to uportal-dev@lists.ja-sig.org 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 uportal-dev@lists.ja-sig.org as: [EMAIL 
PROTECTED]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/uportal-dev

<<attachment: weather-normal.jpg>>

<<attachment: weather-edit-mode.jpg>>

Reply via email to