You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Thomas Singer <wi...@regnis.de> on 2012/02/07 10:43:25 UTC

Wicket 1.4 -> 1.5: IMarkupSettings.setMarkupParserFactory

We have following code in our WebApplication's init method:

  final IMarkupSettings markupSettings = getMarkupSettings();
  markupSettings.setMarkupParserFactory(new IMarkupParserFactory() {
    public MarkupParser newMarkupParser(MarkupResourceStream resource) {
      final MarkupParser parser = new MarkupParser(new XmlPullParser(),
                                                   resource);
      parser.appendMarkupFilter(new OurFilter(), WicketTagIdentifier.class);
      ...
      return parser;
    }
  });

IMarkupParserFactory is gone in Wicket 1.5,
<https://cwiki.apache.org/WICKET/migration-to-wicket-15.html> does not tell
anything about it. How to rewrite this with Wicket 1.5? Thanks in advance.

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket 1.4 -> 1.5: IMarkupSettings.setMarkupParserFactory

Posted by Martin Grigorov <mg...@apache.org>.
markupSettings.setMarkupFactory(
  new MarkupFactory() {
    ...
  }
);

Please update the migration page.

On Tue, Feb 7, 2012 at 11:43 AM, Thomas Singer <wi...@regnis.de> wrote:
> We have following code in our WebApplication's init method:
>
>  final IMarkupSettings markupSettings = getMarkupSettings();
>  markupSettings.setMarkupParserFactory(new IMarkupParserFactory() {
>    public MarkupParser newMarkupParser(MarkupResourceStream resource) {
>      final MarkupParser parser = new MarkupParser(new XmlPullParser(),
>                                                   resource);
>      parser.appendMarkupFilter(new OurFilter(), WicketTagIdentifier.class);
>      ...
>      return parser;
>    }
>  });
>
> IMarkupParserFactory is gone in Wicket 1.5,
> <https://cwiki.apache.org/WICKET/migration-to-wicket-15.html> does not tell
> anything about it. How to rewrite this with Wicket 1.5? Thanks in advance.
>
> Tom
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org