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 HU...@LILLY.COM on 2001/10/17 00:39:20 UTC

Writing Portlets that support "User Preferences"

I have been searching through the documentation and mailing lists and I 
can't seem to figure out how to do a portlet that a user can customize.  I 
apologize for the soft question but here goes....

Take the simple example of the Stock Quote Portlet.  I would like for a 
user to click on an edit button, get a new window either inside the 
portlet window or a new window, allow the user to type in (validate) a 
stock ticker, and return to the portal window with the updated ticker 
list.  This customization information would be saved in a file or in a 
database and pulled the next time the user logs in.

Similar examples would include MyFavoriteWebLinks or MyCustomerOrders, 
etc.

Do each of these require that a custom portlet be written?  Should I be 
using the Jetspeed Persistence Service?  Would this be a candidate for 
Velocity?

We currently use ejbs, coccon, xml/xsl in our current architecture.  I 
considered the XSLPortlet but that only uses a single xml/xsl combination, 
and the CocoonPortlet is not yet ready.

I am currently thinking that I need to write a custom portlets with a 
small database schema to store some of this metadata.

Any recommendations are welcome!

Thanks.
Jim Hughes

Re: Writing Portlets that support "User Preferences"

Posted by ZHU Jia <ji...@ains.at>.
Just want to add that I'd be really interested in the answer too!;-)

regards
ZHU Jia

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


Re: Writing Portlets that support "User Preferences"

Posted by Vinay Peddapuram <vi...@bms.com>.
When is new portlet api is due to come out? Is it gona be the same lines of IBM
webspear portal Server API ?

thanks
Vinay

David Sean Taylor wrote:

> > Take the simple example of the Stock Quote Portlet.  I would
> > like for a
>
> Im working on now that now, hopefully I can get it checked in by the end of
> the week.
> Had a minor setback, decided to use Torque + Cloudscape in my web service
> implementation to store preferences in the web service.
> Its mostly worked out, except for inserts still don't work. If anyone has
> experience writing Torque db impls I'd appreciate a little help...
>
> > Similar examples would include MyFavoriteWebLinks or
>
> I wrote a bookmark portlet a while back for a client, still need to decouple
> it from their specific code.
> Don't want to bother with it until the new portlet api comes out (its going
> to be the old portlet api at this rate ;-)
>
> > Do each of these require that a custom portlet be written?
> > Should I be
> > using the Jetspeed Persistence Service?  Would this be a
> > candidate for
> > Velocity?
>
> Usually you have to write specific portlet customizers for specific
> portlets, although you can choose to inherit the default.
>
> JetspeedPersistenceService stores back to the PSML file.
> In the case of the StockQuotePortlet, I chose to store everything back to
> the web service.
>
> > -----Original Message-----
> > From: HUGHES_JAMES_B@LILLY.COM [mailto:HUGHES_JAMES_B@LILLY.COM]
> > Sent: Tuesday, October 16, 2001 3:39 PM
> > To: jetspeed-user@jakarta.apache.org
> > Subject: Writing Portlets that support "User Preferences"
> >
> >
> > I have been searching through the documentation and mailing
> > lists and I
> > can't seem to figure out how to do a portlet that a user can
> > customize.  I
> > apologize for the soft question but here goes....
> >
> > Take the simple example of the Stock Quote Portlet.  I would
> > like for a
> > user to click on an edit button, get a new window either inside the
> > portlet window or a new window, allow the user to type in
> > (validate) a
> > stock ticker, and return to the portal window with the updated ticker
> > list.  This customization information would be saved in a
> > file or in a
> > database and pulled the next time the user logs in.
> >
> > Similar examples would include MyFavoriteWebLinks or
> > MyCustomerOrders,
> > etc.
> >
> > Do each of these require that a custom portlet be written?
> > Should I be
> > using the Jetspeed Persistence Service?  Would this be a
> > candidate for
> > Velocity?
> >
> > We currently use ejbs, coccon, xml/xsl in our current
> > architecture.  I
> > considered the XSLPortlet but that only uses a single xml/xsl
> > combination,
> > and the CocoonPortlet is not yet ready.
> >
> > I am currently thinking that I need to write a custom portlets with a
> > small database schema to store some of this metadata.
> >
> > Any recommendations are welcome!
> >
> > Thanks.
> > Jim Hughes
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


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


RE: Writing Portlets that support "User Preferences"

Posted by David Sean Taylor <da...@bluesunrise.com>.
> Take the simple example of the Stock Quote Portlet.  I would
> like for a

Im working on now that now, hopefully I can get it checked in by the end of
the week.
Had a minor setback, decided to use Torque + Cloudscape in my web service
implementation to store preferences in the web service.
Its mostly worked out, except for inserts still don't work. If anyone has
experience writing Torque db impls I'd appreciate a little help...

> Similar examples would include MyFavoriteWebLinks or

I wrote a bookmark portlet a while back for a client, still need to decouple
it from their specific code.
Don't want to bother with it until the new portlet api comes out (its going
to be the old portlet api at this rate ;-)

> Do each of these require that a custom portlet be written?
> Should I be
> using the Jetspeed Persistence Service?  Would this be a
> candidate for
> Velocity?

Usually you have to write specific portlet customizers for specific
portlets, although you can choose to inherit the default.

JetspeedPersistenceService stores back to the PSML file.
In the case of the StockQuotePortlet, I chose to store everything back to
the web service.





> -----Original Message-----
> From: HUGHES_JAMES_B@LILLY.COM [mailto:HUGHES_JAMES_B@LILLY.COM]
> Sent: Tuesday, October 16, 2001 3:39 PM
> To: jetspeed-user@jakarta.apache.org
> Subject: Writing Portlets that support "User Preferences"
>
>
> I have been searching through the documentation and mailing
> lists and I
> can't seem to figure out how to do a portlet that a user can
> customize.  I
> apologize for the soft question but here goes....
>
> Take the simple example of the Stock Quote Portlet.  I would
> like for a
> user to click on an edit button, get a new window either inside the
> portlet window or a new window, allow the user to type in
> (validate) a
> stock ticker, and return to the portal window with the updated ticker
> list.  This customization information would be saved in a
> file or in a
> database and pulled the next time the user logs in.
>
> Similar examples would include MyFavoriteWebLinks or
> MyCustomerOrders,
> etc.
>
> Do each of these require that a custom portlet be written?
> Should I be
> using the Jetspeed Persistence Service?  Would this be a
> candidate for
> Velocity?
>
> We currently use ejbs, coccon, xml/xsl in our current
> architecture.  I
> considered the XSLPortlet but that only uses a single xml/xsl
> combination,
> and the CocoonPortlet is not yet ready.
>
> I am currently thinking that I need to write a custom portlets with a
> small database schema to store some of this metadata.
>
> Any recommendations are welcome!
>
> Thanks.
> Jim Hughes



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


RE: Writing Portlets that support "User Preferences"

Posted by David Sean Taylor <da...@bluesunrise.com>.
> Should I be
> using the Jetspeed Persistence Service?  Would this be a

look at the HelloVelocityPortlet as an example
For any portlet, setAttribute() method stores an attribute as a param to the
psml
see  HelloAction.doUpdate():

portlet.setAttribute("text",text,data);

the setAttribute method on AbstractPortlet is calling the persistence
service

> -----Original Message-----
> From: HUGHES_JAMES_B@LILLY.COM [mailto:HUGHES_JAMES_B@LILLY.COM]
> Sent: Tuesday, October 16, 2001 3:39 PM
> To: jetspeed-user@jakarta.apache.org
> Subject: Writing Portlets that support "User Preferences"
>
>
> I have been searching through the documentation and mailing
> lists and I
> can't seem to figure out how to do a portlet that a user can
> customize.  I
> apologize for the soft question but here goes....
>
> Take the simple example of the Stock Quote Portlet.  I would
> like for a
> user to click on an edit button, get a new window either inside the
> portlet window or a new window, allow the user to type in
> (validate) a
> stock ticker, and return to the portal window with the updated ticker
> list.  This customization information would be saved in a
> file or in a
> database and pulled the next time the user logs in.
>
> Similar examples would include MyFavoriteWebLinks or
> MyCustomerOrders,
> etc.
>
> Do each of these require that a custom portlet be written?
> Should I be
> using the Jetspeed Persistence Service?  Would this be a
> candidate for
> Velocity?
>
> We currently use ejbs, coccon, xml/xsl in our current
> architecture.  I
> considered the XSLPortlet but that only uses a single xml/xsl
> combination,
> and the CocoonPortlet is not yet ready.
>
> I am currently thinking that I need to write a custom portlets with a
> small database schema to store some of this metadata.
>
> Any recommendations are welcome!
>
> Thanks.
> Jim Hughes



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