You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Ricardo Mayerhofer (JIRA)" <ji...@apache.org> on 2010/01/02 21:21:54 UTC

[jira] Commented: (WICKET-2238) Keep auto-components after rendering

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

Ricardo Mayerhofer commented on WICKET-2238:
--------------------------------------------

It's seems to work fine, except in one situation. 
Because getParent of a page is always null, when you add a component directly to the page, the onMarkupAttached() method of this component is never called. It breaks in the following verification:

if ((getParent() != null) && (child.getMarkup() != null)) 
Line: 154 
MarkupContainer.java

> Keep auto-components after rendering
> ------------------------------------
>
>                 Key: WICKET-2238
>                 URL: https://issues.apache.org/jira/browse/WICKET-2238
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>            Reporter: Ricardo Mayerhofer
>            Assignee: Juergen Donnerstag
>            Priority: Minor
>             Fix For: 1.5-M1
>
>
> Auto-components are removed after rendering, so components added through component resolvers that take user input don't work.
> The code is located in MarkupContainer.java:
> if (component.isAuto()) { children_remove(i); }
> Thanks for considering.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.