-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=lnk&kid=120709&bid=263057&dat=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=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user