Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1065

Non-visual mixin to generate events as it begins/ends rendering (useful for generating matching JavaScript)

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.2.0
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      Often when dealing with Blocks and Ajax, you can't rely on a container's afterRender render phase event, since the container itself doesn't render (just blocks or components within the container). This can make it difficult to generate matching JavaScript when that is itself necessary. A kludgey approach involves
      delegating to an inner class that implements Renderable, but that is most ugly.

      A RenderNotifier mixin could fire a "beginRender" and "afterRender" event from the corresponding phases. A container could add handlers for those phases to handle the events.

        Attachments

          Activity

            People

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              hlship Howard M. Lewis Ship
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: