You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Thomas Singer (JIRA)" <ji...@apache.org> on 2007/05/30 15:48:16 UTC
[jira] Commented: (WICKET-592) A fragment will not be found when it
is nested, e.g., in a border
[ https://issues.apache.org/jira/browse/WICKET-592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500132 ]
Thomas Singer commented on WICKET-592:
--------------------------------------
Do you need a concrete example to reproduce? For now, I can't use Fragments in valid HTML because all our pages make use of a Border.
> A fragment will not be found when it is nested, e.g., in a border
> -----------------------------------------------------------------
>
> Key: WICKET-592
> URL: https://issues.apache.org/jira/browse/WICKET-592
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 1.2.6
> Reporter: Thomas Singer
> Fix For: 1.2.7
>
>
> sketched markup:
> <div wicket:id="myBorder">
> ...
> <wicket:fragment wicket:id="fragmentSource">...</wicket:fragment>
> ...
> <tr wicket:id="fragmentTarget">...</tr>
> </div>
> Following components were added to the page:
> MyBorder border = new MyBorder("myBorder");
> border.add(new Fragment("fragmentTarget", "fragmentSource"));
> this.add(border);
> It always cannot find the "fragmentSource". After debugging the Fragment's renderFragment() method, I guess it is caused by the method call providerMarkupStream.findComponentIndex(null, markupId), because the componentMap in Markup contains no "fragmentSource", but only "myBorder:fragmentSource".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.