Re: How to change the style of navigator in PageableViewList
Hi where to add your code in my pagingnavigator to create custom navigator? This is my code. navigator = new PagingNavigator("navigator", dataView); dataView.setItemsPerPage(5); navigator.setVisible(false); addListViewPanel.add(navigator); pls reply me asap. trames wrote: > > Extend PagingNavigator. I made a custom one so I can use everywhere: > > It looks something like this > > First Prev 1 2 3 4 Next Last > > > The active page will be in Red and italics. > You can make it anything you want by changing the HTML and/or CSS. Hope it > works for you. > > Java - CustomPagingNavigator.java > > import org.apache.wicket.markup.html.navigation.paging.PagingNavigator; > import org.apache.wicket.markup.html.navigation.paging.IPageable; > import > org.apache.wicket.markup.html.navigation.paging.IPagingLabelProvider; > > > > public class CustomPagingNavigator extends PagingNavigator{ > > private static final long serialVersionUID = 1L; > > > // First PagingNavigator constructor > public CustomPagingNavigator (String id, IPageable pageable) { > super(id, pageable); > } > > > > // Second PagingNavigator constructor > public CustomPagingNavigator (String id, IPageable pageable, > IPagingLabelProvider labelProvider) { > super(id, pageable, labelProvider); > } > > } > > HTML - CustomPagingNavigator.html > > > > > > >First Prev ># 1 >Next Last > > > > > CSS - CustomPagingNavigator.css > > /* Copy this file to the root of the web app > /* Use the following in the main style sheet to import these specs*/ > /* @import url(CustomPagingNavigator.css);*/ > > /* Data Navigator*/ > .navigator {color:red} > .navigator a:link, a:visited, a:active {color:blue;text-decoration:none;} > -- View this message in context: http://old.nabble.com/How-to-change-the-style-of-navigator-in-PageableViewList-tp14978321p27619447.html Sent from the Wicket - User 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: Help: Graphic link in PagingNavigator
Thank u for your reply.Can u please Send me Custom Navigator complete coding? Pills wrote: > > Overriding the protected method > PagingNavigator#newPagingNavigationIncrementLink(String id, IPageable > pageable, int increment) should do the trick, too. > > Dipu a écrit : >> extend the PagingNavigator and provide your own markup with the >> graphics you want. >> >> regards >> dipu >> >> On Wed, Jan 14, 2009 at 11:04 AM, freak182 >> wrote: >> >>> Hello, >>> >>> The clients wants the "<< <" and "> >>" should be graphic. Is there a >>> way to >>> do this? >>> >>> Thanks a lot. >>> Cheers. >>> -- >>> View this message in context: >>> http://www.nabble.com/Help%3A-Graphic-link-in-PagingNavigator-tp21453859p21453859.html >>> Sent from the Wicket - User 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 >>> >>> >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://old.nabble.com/Help%3A-Graphic-link-in-PagingNavigator-tp21453859p27603800.html Sent from the Wicket - User 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: Re: How to add Images in wicket Navigator instead of << < > >>?
Hi, Thank u for your reply. Here with i sent my coding for Wicket navigator. please tell me where to add images in wicket navigator. navigator = new PagingNavigator("navigator", dataView); dataView.setItemsPerPage(5); navigator.setVisible(false); addListViewPanel.add(navigator); "navigator"--> this is my Wicket Id. dataView -->Displays record through DataView. I waiting for your Valuable reply. It would be great reply soon. Leo Erlandsson wrote: > >> thank u for your reply.I didn't understand. please send code or link. > > Unfortunately I can't include code from our project. However, if you > search this mailing list you'll find several examples and other solutions > to your problem: > > http://old.nabble.com/PagingNavigator-with-custom-images-ts13422772.html#a13422772 > http://old.nabble.com/Help%3A-Graphic-link-in-PagingNavigator-ts21453859.html#a21453994 > http://old.nabble.com/How-to-change-the-style-of-navigator-in-PageableViewList-ts14978321.html#a1501 > > <--- Including code > > > > > > > - > --- > Leo Erlandsson, M. Sc. > -- View this message in context: http://old.nabble.com/How-to-add-Images-in-wicket-Navigator-instead-of-%3C%3C-%3C-%3E-%3E%3E--tp27593215p27603628.html Sent from the Wicket - User 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: How to add Images in wicket Navigator instead of << < > >>?
thank u for your reply.I didn't understand. please send code or link. Leo Erlandsson wrote: > >> How to add Images in wicket Navigator instead of << < > >>? > > One way, I'm sure there are others: > > Write your own MyPagingNavigator that extends PagingNavigator or > AjaxPagingNavigator. Provide your own markup. > Override protected PagingNavigator newPagingNavigator(String navigatorId, > final DataTable table); in NavigationToolbar / AjaxNavigationToolbar > and provide your own MyPagingNavigator there. > > > > Med vänlig hälsning / Sincerely yours > Leo Erlandsson > > Tyringekonsult AB > > Phone: +46-(0)451- 594 54 > Email: leo.erlands...@tyringe.com > Website: www.tyringe.com > > > > > > saravana kumar > 2010-02-15 13:34 > Sänd svar till > users@wicket.apache.org > > > Till > users@wicket.apache.org > Kopia > > Ärende > How to add Images in wicket Navigator instead of << < > >>? > > > > > > > > -- > Thanks & Regards, > SaravanaKumar G. > > > > - > --- > Leo Erlandsson, M. Sc. > -- View this message in context: http://old.nabble.com/How-to-add-Images-in-wicket-Navigator-instead-of-%3C%3C-%3C-%3E-%3E%3E--tp27593215p27593428.html Sent from the Wicket - User 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