[
https://issues.apache.org/jira/browse/WICKET-2321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12718037#action_12718037
]
Martin Funk commented on WICKET-2321:
-------------------------------------
Ok, I rethought the issue a bit.
I propose to give the component a chance to do final cleanup just before it or
one of its parents is removed. In wicket terms I'd name that removeFromHirarchy.
The attached patch implements just that. The implementation follows the pattern
given by detach().
See: wicket-jira-2321-mf.diff
> create a Component#onRemove() method
> ------------------------------------
>
> Key: WICKET-2321
> URL: https://issues.apache.org/jira/browse/WICKET-2321
> Project: Wicket
> Issue Type: Bug
> Reporter: Martin Funk
>
> Create a Component#onRemove() method as a hook that may be overriden.
> Sort of like Component#onDetach().
> As the name says It should be invoked when a component or any of its parents
> is removed from the component tree.
> See also:
> http://www.nabble.com/Component-lifecycle-question-td23913399.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.