Details
-
Bug
-
Status: Closed
-
Resolution: Duplicate
-
1.4b4-dev / CVS
-
None
-
None
-
Operating System: All
Platform: All
-
18867
Description
Add a simple lifecycle to portlets, much in the same way that request-based pull
tools work.
I currently have implemented this within MVC portlets. The PortletAction class
now has a public init(Portlet, Context, RunData) method that is initialized
within the GenericMVCPortlet every time the portlet is loaded. The actual
initialization call is not done by the portlet but by a custom
PortletActionLoader class that wraps the existing ActionLoader and calls the
PortletAction init() method at load time.
PortletAction's init() currently populates protected fields such as "portlet",
"portletInstance", "runData" and "context" but could be overriden to provide
whatever initialization maybe required to action being invoked.
-scott