[
https://issues.apache.org/jira/browse/WICKET-1095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12539321
]
Juergen Donnerstag commented on WICKET-1095:
--------------------------------------------
Just as a side note. The root cause of the problem is that we require
transparent resolvers which essentially destroy the tree like hierarchy of
components. The reason why we need transparent resolvers is because in 1.3 we
not yet able to read/analyze the associated markup of a component within its
constructor, to create these automatic components which require transparent
resolvers within the constructure and to add user components to the correct
container (the automatically created one) instead of the container the user is
adding his child component to.
> invisible TransparentResolver skips markup of visible children and thus
> resulting in an exception in Page#checkRendering (component not found in
> markup)
> --------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: WICKET-1095
> URL: https://issues.apache.org/jira/browse/WICKET-1095
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 1.3.0-beta4
> Reporter: Gerolf Seitz
> Assignee: Johan Compagner
> Fix For: 1.3.0-beta5
>
> Attachments: WICKET-1095.zip
>
>
> the code involved can be found at http://papernapkin.org/pastebin/view/13287
> if a transparent (= isTransparentResolver() {return true;}) markupContainer
> is set to invisible, the component's markup is skipped
> (markupStream.skipComponent() in Component.java line 2319).
> if the parent containing the transparent markupContainer is added to the ajax
> request target and there is a component (in this case a button) "inside" the
> transparent markupcontainer's markup but is actually a child of the
> transparent markupcontainer's parent, the button is never actually rendered
> (due to skipping the markup of the transparent webmarkupcontainer) but is
> still visibleInHierarchy (see Page.java line 1005), because the invisible
> transparent markupcontainer is not a parent of the button.
> the ultimate question is: what is the desired behavior for an invisible
> transparentResolver? render it's "children" or not?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.