You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by Mark Orciuch <ma...@ngsltd.com> on 2002/09/20 22:45:45 UTC

How does a portlet know that its settings have changed?

We have a variety of methods to refresh portlet's content after customizing.
Currently, CustomizeAction invokes the customized portlet's init() method to
refresh the portlet's content. This seems to work for some portlets, notably
the ones which generate their content during init() (RSSPortlet, for
example). Portlets which implement their own customizer (for example,
HelloVelocity or DatabaseBrowserTest) have the "luxury" of knowing when they
were customized. What about portlets which use the default customizer, cache
their content and only want to be refreshed when their settings change?

I am trying to come up with a standard approach for notifying a portlet that
its settings have changed. One simple approach that comes to mind is to set
a special portlet attribute "settings-changed" which would be set in the
CustomizeAction. Also, in the proposed new Portlet API, there's mention of
the message events which would apply here nicely. I am open to any other
suggestions. Thanks in advance for your comments and ideas.

Best regards,

Mark C. Orciuch
Next Generation Solutions, Ltd.
e-Mail: mark_orciuch@ngsltd.com
web: http://www.ngsltd.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>