Re: Error with getPageCount() when extending the Datatable in Wicket 6.13
Hi François, Thanks for the quick reply. I'm fairly new to wicket and didnt understood what you meant clearly. . But i'm not calling this getPageCount() method from my backend. and also the error comes in class definition. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-with-getPageCount-when-extending-the-Datatable-in-Wicket-6-13-tp4663896p4663898.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Error with getPageCount() when extending the Datatable in Wicket 6.13
Hi, In your DataTable impl change the signature of #getPageCount() from int to long. Martin Grigorov Wicket Training and Consulting On Thu, Jan 23, 2014 at 10:20 AM, chathuraka.waas chathuraka.w...@gmail.com wrote: Hi François, Thanks for the quick reply. I'm fairly new to wicket and didnt understood what you meant clearly. . But i'm not calling this getPageCount() method from my backend. and also the error comes in class definition. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-with-getPageCount-when-extending-the-Datatable-in-Wicket-6-13-tp4663896p4663898.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Error with getPageCount() when extending the Datatable in Wicket 6.13
Hi, i'm working on a code which was not written by me. It seems my classes extending the Datatable class doesnt implement the getPageCount() method. But when i try to override the method netbeans shows me a signature with a int return type on the suggession list. Not sure what's causing this. Thanks, -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-with-getPageCount-when-extending-the-Datatable-in-Wicket-6-13-tp4663896p4663901.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Error with getPageCount() when extending the Datatable in Wicket 6.13
Right. The method is final - https://github.com/apache/wicket/blob/master/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/repeater/data/table/DataTable.java?source=c#L303 Show us the error please. Martin Grigorov Wicket Training and Consulting On Thu, Jan 23, 2014 at 10:39 AM, chathuraka.waas chathuraka.w...@gmail.com wrote: Hi, i'm working on a code which was not written by me. It seems my classes extending the Datatable class doesnt implement the getPageCount() method. But when i try to override the method netbeans shows me a signature with a int return type on the suggession list. Not sure what's causing this. Thanks, -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-with-getPageCount-when-extending-the-Datatable-in-Wicket-6-13-tp4663896p4663901.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Error with getPageCount() when extending the Datatable in Wicket 6.13
Hi, the compile time error netbeans gives me is getPageCount() in DataTable cannot implement getPageCount() in Ipageable return type long is not compatible with int this is my class definition. class MyTable extends DataTableFanData,Object { } im not at the liberty to post the whole code in here since its client work. Hope this error and code will help. thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-with-getPageCount-when-extending-the-Datatable-in-Wicket-6-13-tp4663896p4663904.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Error with getPageCount() when extending the Datatable in Wicket 6.13
Check that wicket-extensions dependency is also 6.x. Martin Grigorov Wicket Training and Consulting On Thu, Jan 23, 2014 at 11:01 AM, chathuraka.waas chathuraka.w...@gmail.com wrote: Hi, the compile time error netbeans gives me is getPageCount() in DataTable cannot implement getPageCount() in Ipageable return type long is not compatible with int this is my class definition. class MyTable extends DataTableFanData,Object { } im not at the liberty to post the whole code in here since its client work. Hope this error and code will help. thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-with-getPageCount-when-extending-the-Datatable-in-Wicket-6-13-tp4663896p4663904.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Error with getPageCount() when extending the Datatable in Wicket 6.13
Hi, yes wicket-extentions is also 6.13.0 dependency groupIdorg.apache.wicket/groupId artifactIdwicket-extensions/artifactId version6.13.0/version /dependency thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-with-getPageCount-when-extending-the-Datatable-in-Wicket-6-13-tp4663896p4663907.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Error with getPageCount() when extending the Datatable in Wicket 6.13
Hi, it seems that i was able to fix the issue. there was a old version of wicket included because of another dependency. excluding that dependency did the trick. Thanks a lot for your help guys. Best Regards, -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-with-getPageCount-when-extending-the-Datatable-in-Wicket-6-13-tp4663896p4663909.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Error with getPageCount() when extending the Datatable in Wicket 6.13
Hi, i'm trying to migrate my application from Wicket 1.4 to 6.13.0 and stuck on a compilation error related to DataTables. what my code does is extend the Datatable class. But when i do so it gives me a compilation error saying, getPageCount() in DataTable cannot implement getPageCount() in Ipageable return type long is not compatible with int I looked at both the Datatable class and the Ipagable interface but both methods use the long return type. glad if anyone can shed some light on this issue. Thanks in advance. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-with-getPageCount-when-extending-the-Datatable-in-Wicket-6-13-tp4663896.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Error with getPageCount() when extending the Datatable in Wicket 6.13
The api changed. Just replace the method signature you use in you backend layer. François Meillet Formation Wicket - Développement Wicket Le 23 janv. 2014 à 08:13, chathuraka.waas chathuraka.w...@gmail.com a écrit : Hi, i'm trying to migrate my application from Wicket 1.4 to 6.13.0 and stuck on a compilation error related to DataTables. what my code does is extend the Datatable class. But when i do so it gives me a compilation error saying, getPageCount() in DataTable cannot implement getPageCount() in Ipageable return type long is not compatible with int I looked at both the Datatable class and the Ipagable interface but both methods use the long return type. glad if anyone can shed some light on this issue. Thanks in advance. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-with-getPageCount-when-extending-the-Datatable-in-Wicket-6-13-tp4663896.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org