1. Tapestry
  2. TAPESTRY-330

Add uninitialization tag to Script specification and component


    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1.2
    • Component/s: Framework
    • Labels:
    • Environment:


      The uninitialization tag will enable components and pages to
      have custom javascript executed when the page unloads.
      I am aware of many use cases where this is useful, but here is one I recently came across:
      Assume that a StylesheetSwitcher component exists (it does ) which allows the user to
      change the skin of a web-app. It does this by providing special javasript links that do the work.
      However, in many browsers, the user can change the skin from the browser menu. Of course,
      this action does not trigger any custom javascript. However, if we could have some script executed
      when the page unloads, we could determine if the user has performed the above action, and
      act appropriately!

      I expect this new tag to be used just the way the initialization tag is used.
      Also, implementing this requires nothing more than duplicating the existing code that
      allows the initialization feature.


        Andreas Andreou created issue -
        Jesse Kuhnert made changes -
        Field Original Value New Value
        Assignee Andreas Andreou [ andyhot ]
        Fix Version/s 4.1.2 [ 12312202 ]
        Andreas Andreou made changes -
        Resolution Won't Fix [ 2 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Mark Thomas made changes -
        Workflow jira [ 42586 ] Default workflow, editable Closed status [ 12566900 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12566900 ] jira [ 12591911 ]


          • Assignee:
            Andreas Andreou
            Andreas Andreou
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: