Posts

Showing posts with the label Wicket

Custom PagingNavigator for SEO friendly URL

Apache Wickets biggest strength is its focus on  components  - Among a very large set of components is PagingNavigator component. It is a Wicket Panel component to draw and maintain a complete page navigation. I found this component very useful but the only problem that compelled me to write my own CustomPagingNavigator is the wicket URLs that are being created by clicking the page links.  The Java Part... public class CustomPaginationLinksPanel<T> extends Panel{   private static final long serialVersionUID = 10002L;   /** Pageable List View to be displayed  */   private PageableListView<T> mainView ;   /** Max count of links  default  value = 5 */   private int linksPerPage = 5;   /**  Page Number currently visible */   private int    currPgNum ;     /** first page number */   private int firstNum ;   /** last page number...

Showing tool-tip on a component in Wicket

Few days back I was working on an application which was using Apache Wicket and there was a requirement to show tool-tip on a component. After googling it for hours I found this really easy solution for my requirement.  The following code snippet shows how you can add a tool tip on a Label component. ... Label lbl = new Label( "myLable" , "My Label Value" ); lbl.add( new  AttributeModifier( "title" , true , new Model<String>( "My Tool-Tip" )));  ...