Yep, it’s working now with the
table, thanks!
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: Wednesday, April 05, 2006
11:48 AM
To:
wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] 1.2
beta3 AjaxPagingNavigator odd behavior?
tbody in ie doesnt work
either with outerHTML, so you have to redraw the entire table.
-Igor
On 4/5/06, Martijn
Dashorst <
[EMAIL PROTECTED]> wrote:
A listview doesn't have its own markup. So it can't redraw itself using
AJAX.
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
|