If you want to keep it simple and you don't mind using images served from your context root, do something like:
<html xmlns:wicket> <body> <wicket:panel> <a wicket:id="first"><img src="img/navigation/first.png" border="0" / ></a> <a wicket:id="prev"><img src="img/navigation/prev.png" border="0" /></a> <span wicket:id="navigation"> <a wicket:id="pageLink" href="#"><span wicket:id="pageNumber">5</ span></a> </span> <a wicket:id="next"><img src="img/navigation/next.png" border="0" /></a> <a wicket:id="last"><img src="img/navigation/last.png" border="0" /></a> </wicket:panel> </body> </html> If you want to package the images alongside your java and html files, you could do what John Krasnay suggested (I haven't tried this myself so I'm not sure if it's a 1.3 thing or if it also works in 1.2): ... <a wicket:id="first"><wicket:link><img src="first.png" border="0" / ></wicket:link></a> ... The main point here is that you don't need to re-implement PagingNavigator/AjaxPagingNavigator. Your subclass already inherits all of the logic to create the navigation, links, etc. Just keep the wicket id's and markup hierarchy intact in your html file. The only reason you would need to re-implement is if you actually want to add new components to the links. But hopefully I just demonstrated two ways to avoid that. -Ryan On Apr 21, 2007, at 12:40 AM, Lec wrote: > > If this is the case of implementation in the markup, then how do we > go about > doing its implementation in Subclass of ajax paging navigator. Do > we need to > combine its implementation with the AjaxPagingNavigation, > AjaxPagingNavigationLink and AjaxPagingNavigationBehaviour all > together? how > do these 3 objects combination of usage look like in the skeleton > code? > Would like somebodyto give a pointer here. :) Thanks > > > igor.vaynberg wrote: >> >> you can create a subclass of the paging navigator and override the >> markup >> so >> it looks something like this: >> >> <html xmlns:wicket> >> <body> >> <wicket:panel> >> first.gif prev.gif >> >> # 5 >> >> next.gif last.gif >> </wicket:panel> >> </body> >> </html> >> >> -Igor >> >> >> >> On 5/5/06, Potje rode kool <[EMAIL PROTECTED]> wrote: >>> >>> Hi, >>> >>> I have a page with a AjaxPagingNavigator which I use with a >>> PageableListView to display some thumbnales of images, >>> all working ok but I want to display an image (as a link) instead >>> of the >>> arrows (like < or <<), but how to do this? I am a bit lost on that. >>> >>> Thanks, >>> Evert >>> >> >> > > -- > View this message in context: http://www.nabble.com/use-images-in- > pagingNavigator-tf1562785.html#a10114659 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user