[
https://issues.apache.org/jira/browse/TAP5-2252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13843057#comment-13843057
]
Howard M. Lewis Ship commented on TAP5-2252:
--------------------------------------------
I think you are complecting what the scanner does with full life-cycle
maintenance. That's way beyond its scope ... it is meant to assist with
initialization only.
In your case, you should add your own events.zone.willUpdate event handler to
identify elements that need special handing before being replaced, and do the
necessary work.
> dom.scanner should support a cleanup callback
> ---------------------------------------------
>
> Key: TAP5-2252
> URL: https://issues.apache.org/jira/browse/TAP5-2252
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.4
> Reporter: Jochen Kemnade
>
> In addition to a selector and a create callback, dom.scanner should support a
> (probably optional) cleanup callback that is executed at
> events.zone.willUpdate.
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)