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)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.2.0
    • 5.2.0
    • tapestry-core
    • 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

            hlship Howard Lewis Ship
            hlship Howard Lewis Ship
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: