public static void initApplication ( Application app ) { // Add the Jawr tag handler to the MarkupParserFactory MarkupFactory factory = new MarkupFactory ( ) { public MarkupParser newMarkupParser ( final MarkupResourceStream resource ) { MarkupParser parser = new MarkupParser ( new XmlPullParser ( ) , resource ) ; parser . add ( new JawrWicketLinkTagHandler ( ) ) ; return parser ; } } ; app . getMarkupSettings ( ) . setMarkupFactory ( factory ) ; // Add the Jawr link resolver app . getPageSettings ( ) . addComponentResolver ( new JawrWicketLinkResolver ( ) ) ; }
Initialize the wicket application