Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2014

ComponentResources should expose the page's lifecycle to interested listeners

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.7
    • 5.0.8
    • None
    • None

    Description

      binding should be aware of at least pageAtached and pageDetached events
      to initialize, or clear contents.

      I've made a binding prefix for zebra effect

      <t:grid source="vessels" rowsPerPage="15" t:id="results" rowClass="cycle:line1,line2">
      </t:grid>

      the problem was that for every reload the first line would alternate. This is because binding is
      attached to a page instance and is not aware of page's lifecycle.

      I've made a workarround by having a static WeakHashmap tracking pages with this binding,
      and by adding:

      ${cycle:reset}

      at the begining of each page that uses this binding.

      some other bindings may also need to clean resources...

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            hrgdavor Davor Hrg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: