Uploaded image for project: 'Jetspeed (Retired)'
  1. Jetspeed (Retired)
  2. JS1-276

[ENH] MVC Portlet Action Life Cycle

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 1.4b4-dev / CVS
    • None
    • Portlets
    • None
    • Operating System: All
      Platform: All
    • 18865

    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

      Attachments

        Activity

          People

            scottweaver Scott Weaver
            scottweaver Scott Weaver
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: