You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sven Meier (JIRA)" <ji...@apache.org> on 2013/03/20 20:49:16 UTC

[jira] [Commented] (WICKET-5107) onConfigure and onBeforeRender is not called for child after component.replace(child)

    [ https://issues.apache.org/jira/browse/WICKET-5107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13608080#comment-13608080 ] 

Sven Meier commented on WICKET-5107:
------------------------------------

Hi Michael,

when "replacer" replaces a children of its *parent*, the parent already made a copy of its children list to iterate over them, see MarkupContainer#onBeforeRenderChildren().

How is #onBeforeRender() or #onConfigure() supposed to be called on your newly added component then?
                
> onConfigure and onBeforeRender is not called for child after component.replace(child)
> -------------------------------------------------------------------------------------
>
>                 Key: WICKET-5107
>                 URL: https://issues.apache.org/jira/browse/WICKET-5107
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.10
>            Reporter: Michael Mosmann
>              Labels: replace, visible
>         Attachments: de.flapdoodle-wicket-replace-bug.zip
>
>
> If you replace a child component in onBeforeRender for an other Component it will not call onConfigure and onBeforeRender on the replacement, if the component starts with beeing invisible.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira