In your second example that does work, you have a webmarkup container surrounding the listview, so that *does* work in a AJAX refresh.
Also, you don't need the span here:
<span wicket:id="items">
<tr>
Just:
<tr wicket:id="items">
will do.
In IE it is not possible to redraw a TR element of a table. So you need to redraw the whole table, or the TBODY part.
Martijn
On 4/5/06, Jerry Smith <[EMAIL PROTECTED]> wrote:
Here's my test Page:
public class HomePage extends WebPage {
public HomePage() {
List<String> list = new ArrayList<String>();
for(int i = 0; i < 40; i++) {
list.add(Integer.toString(i));
}
PageableListView lv = new PageableListView("items", (List)list,
5) {
public void populateItem(ListItem item) {
item.add (new Label("item",
item.getModelObject().toString()));
}
};
lv.setOutputMarkupId(true);
WebMarkupContainer wmc = new WebMarkupContainer("wmc");
wmc.setOutputMarkupId(true);
wmc.add(lv);
add(wmc);
add(new AjaxPagingNavigator("nav", lv));
}
}
This template DOES NOT work as expected:
<html>
<head>
<title></title>
</head>
<body>
<div wicket:id="nav">1 2 3 4 5</div>
<table>
<div wicket:id="wmc">
<span wicket:id="items">
<tr>
<td><span wicket:id="item">test</span></td>
</tr>
</span>
</div>
</table>
</body>
</html>
Output with 3 selected:
<< < 1 2 3 4 5 6 7 8 > >>
10 11 12 13 14
0
1
2
3
4
This on DOES work as expected:
<html>
<head>
<title></title>
</head>
<body>
<div wicket:id="nav">1 2 3 4 5</div>
<div wicket:id="wmc">
<table>
<span wicket:id="items">
<tr>
<td><span wicket:id="item">test</span></td>
</tr>
</span>
</table>
</div>
</body>
</html>
Output with 3 selected:
<< < 1 2 3 4 5 6 7 8 > >>
10
11
12
13
14
What's going on here do you think?
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
--
Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!
-- http://wicketframework.org
