your tags aren't nesting correctly. navigation in your java code is a child of page.
in the html its a child of your table. see navigation example.
Abdul Rahman Advany wrote:
mhhh, can't get tablenavigation to work :S
wicket.markup.MarkupException: Unable to find component named 'navigation'
what is the best way to debug?
java:
Table table; add( table = new Table("test", list,3)
{
public void populateItem(final ListItem listItem)
{
listItem.add(new Label("date", "test"));
listItem.add(new MultiLineLabel("text", "test"));
}
} );
add( new TableNavigation("navigation", table) );
html:
<span id="wcn-test">
<table>
<tr>
<span id="wcn-date"><td>wello</td></span>
<span id="wcn-text"><td>wello</td></span>
<span id="wcn-text"><td>wello</td></span>
<span id="wcn-text"><td>wello</td></span>
<span id="wcn-text"><td>wello</td></span>
</tr>
<tr>
<td>
<span id="wcn-navigation">
<a id="wcn-pageLink" href="index.html">
<span id="wcn-pageNumber"/>
</a>
</span> </td>
</tr>
</table>
</span>
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
