[Wicket-user] NavigationToolbar issue

2006-08-29 Thread shumbola
Igor,

I just copied the code from DefaultDataTable and made a class
MyDataTable. In its constructor made the following change:

 NavigationToolbar nt = new NavigationToolbar();
 addTopToolbar(nt);
 addTopToolbar(new HeadersToolbar(this, dataProvider));
 addBottomToolbar(new NoRecordsToolbar(this));
 if(dataProvider.size()  getRowsPerPage())
 nt.setVisible(false);

My intention was to switch off the navigation toolbar if the item
count is less then rows per page. But it is showing up always.
Is something wrong with this intention?

Thanks,
shumbola



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] NavigationToolbar issue

2006-08-29 Thread Igor Vaynberg
-NavigationToolbar nt = new NavigationToolbar();+NavigationToolbar nrt=new NavigationToolbar() { boolean isVisible() { return getPageCount()1; }}-IgorOn 8/29/06, 
shumbola [EMAIL PROTECTED] wrote:
Igor,I just copied the code from DefaultDataTable and made a classMyDataTable. In its constructor made the following change: NavigationToolbar nt = new NavigationToolbar(); addTopToolbar(nt);
 addTopToolbar(new HeadersToolbar(this, dataProvider)); addBottomToolbar(new NoRecordsToolbar(this)); if(dataProvider.size()  getRowsPerPage()) nt.setVisible
(false);My intention was to switch off the navigation toolbar if the itemcount is less then rows per page. But it is showing up always.Is something wrong with this intention?Thanks,shumbola
-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user