[
https://issues.apache.org/jira/browse/WICKET-592?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Juergen Donnerstag resolved WICKET-592.
---------------------------------------
Resolution: Invalid
Fix Version/s: (was: 1.2.7)
1.3.0-rc1
For me it is working. I even used the example you provided. A typical source of
error is that with "new Fragment(arg1, arg2)" the two arguments are mixed up.
Please see BoxBorderTestPage_9
---- JAVA
public BoxBorderTestPage_9()
{
Border myBorder = new BorderComponent1("myBorder");
add(myBorder);
Fragment panel1 = new Fragment("fragmentsWillBeRenderedHere",
"fragmentSource");
myBorder.add(panel1);
}
---- MARKUP
<html>
<body>
<div wicket:id="myBorder">
<table>
<wicket:fragment wicket:id="fragmentSource">
<tr>
<td>Hello world</td>
</tr>
</wicket:fragment>
...
<tr wicket:id="fragmentsWillBeRenderedHere">...</tr>
</table>
</div>
</body>
</html>
---- OUTPUT
<html>
<body>
<div wicket:id="myBorder"><wicket:border>
<!-- with open-close tag -->
davor <wicket:body>
<table>
...
<tr wicket:id="fragmentsWillBeRenderedHere">
<tr>
<td>Hello world</td>
</tr>
</tr>
</table>
</wicket:body> danach
</wicket:border></div>
</body>
</html>
----
> 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
> Assignee: Juergen Donnerstag
> Fix For: 1.3.0-rc1
>
>
> 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.