Uploaded image for project: 'Click'
  1. Click
  2. CLK-105

Add Page onRender() method

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • core
    • None
    • Targeting Click release 0.21

    Description

      Add a Page onRender() method which is invoked immediately after the onPost() or onGet() method is executed (if page controls have allowed processing to continue).

      ClickServlet processPage() method:
      ..

      if (continueProcessing) {
      if (isPost)

      { page.onPost(); }

      else

      { page.onGet(); }

      page.onRender();
      }

      ..

      ---------------------------------------------------------

      From Stephen's "click hacks" email:

      5. onRender event hook

      For just before the template is rendered, to do interesting stuff like
      throwing in some tools into our model, hook up Links (see next point), etc.

      Otherwise we had people having both doGet/doPost, and just having doPost
      call doGet, when all they were doing was some pre-render logic.

      Attachments

        Activity

          People

            medgar Malcolm Edgar
            click_stephen Stephen Haberman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: