Re: AjaxFallbackDefaultDataTable header disappear

2009-09-25 Thread Che Schneider

Meh, I am too retarded: Apparently Wicket 1.4.1 does solve this issue.

Thanks a lot and sorry for the double post,
Che



Che Schneider wrote:

Hello all,

First of all, great mailing list and awesome knowledge assembled here. 
Some of the posts are true eye-openers...


I have a little problem with Wicket, or - more likely - with my usage of 
it. Here goes:


I am creating a AjaxFallbackDefaultDataTable and add a couple of rows 
and my own data provider to it. Nothing special until now.
However, my data provider implements the count() and iterator(int, int) 
methods in a way that the result is depending on a filter field on the 
page. So basically, you can restrict the results in the table by 
filtering the name by the value in that field.


All of this works great, I get a page counter that works fine and all is 
refreshed nicely via Ajax by calling:


table.setCurrentPage(0);
target.addComponent(table);

when the form with the filter field is submitted. Also, the correct 
amount of hits and pages is always displayed in the header.


However, if I ever filter so that the results of that search are less 
than the paging amount, the header disappears. No surprise there, that 
is what I expect: one page, no header.
If I then change the filter so that more than one page of data is 
returned, the header of the table stays gone. There is no way short of 
refreshing the whole page to get the header to come back.


Does anybody have any idea on why that is?
I RTFM and STFW but apparently nobody has had that problem before (or I 
am too retarded to find it).


Thanks a lot for your help,
Che






--
--


Flow Traders B.V.
Che Schneider
Software Development

c...@flowtraders.com mailto:c...@flowtraders.com
T +31 20 799 6788
F +31 20 799 6780

Jacob Bontiusplaats 9
1018 LL Amsterdam
The Netherlands

www.flowtraders.com http://www.flowtraders.com

Chamber of Commerce Amsterdam 33.22.3268

Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien
u niet de geadresseerde bent of dit bericht abusievelijk aan u is
toegezonden, wordt u verzocht dat aan de afzender te melden en het
bericht te verwijderen. Flow Traders B.V. aanvaardt geen
aansprakelijkheid voor schade, van welke aard ook, die verband houdt
met risico's verbonden aan het elektronisch verzenden van berichten.
This message may contain information that is not intended for you. If
you are not the addressee or if this message was sent to you by
mistake, you are requested to inform the sender and delete the
message. Flow Traders B.V. accepts no liability for damage of any kind
resulting from the risks inherent in the electronic transmission of
messages.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



AjaxFallbackDefaultDataTable header disappear

2009-09-25 Thread Che Schneider

Hello all,

First of all, great mailing list and awesome knowledge assembled here. 
Some of the posts are true eye-openers...


I have a little problem with Wicket, or - more likely - with my usage of 
it. Here goes:


I am creating a AjaxFallbackDefaultDataTable and add a couple of rows 
and my own data provider to it. Nothing special until now.
However, my data provider implements the count() and iterator(int, int) 
methods in a way that the result is depending on a filter field on the 
page. So basically, you can restrict the results in the table by 
filtering the name by the value in that field.


All of this works great, I get a page counter that works fine and all is 
refreshed nicely via Ajax by calling:


table.setCurrentPage(0);
target.addComponent(table);

when the form with the filter field is submitted. Also, the correct 
amount of hits and pages is always displayed in the header.


However, if I ever filter so that the results of that search are less 
than the paging amount, the header disappears. No surprise there, that 
is what I expect: one page, no header.
If I then change the filter so that more than one page of data is 
returned, the header of the table stays gone. There is no way short of 
refreshing the whole page to get the header to come back.


Does anybody have any idea on why that is?
I RTFM and STFW but apparently nobody has had that problem before (or I 
am too retarded to find it).


Thanks a lot for your help,
Che




--
--


Flow Traders B.V.
Che Schneider
Software Development

c...@flowtraders.com mailto:c...@flowtraders.com
T +31 20 799 6788
F +31 20 799 6780

Jacob Bontiusplaats 9
1018 LL Amsterdam
The Netherlands

www.flowtraders.com http://www.flowtraders.com

Chamber of Commerce Amsterdam 33.22.3268

Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien
u niet de geadresseerde bent of dit bericht abusievelijk aan u is
toegezonden, wordt u verzocht dat aan de afzender te melden en het
bericht te verwijderen. Flow Traders B.V. aanvaardt geen
aansprakelijkheid voor schade, van welke aard ook, die verband houdt
met risico's verbonden aan het elektronisch verzenden van berichten.
This message may contain information that is not intended for you. If
you are not the addressee or if this message was sent to you by
mistake, you are requested to inform the sender and delete the
message. Flow Traders B.V. accepts no liability for damage of any kind
resulting from the risks inherent in the electronic transmission of
messages.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org