Ok. How to define a custom MarkupParser now?!! I can't find anything helpfull
except this link: 
https://cwiki.apache.org/WICKET/adding-a-markup-filter.html
adding-a-markup-filter.html 

I tried this:
public class MyApplication extends Application
{
    protected void init()
    {
...
        getMarkupSettings().setMarkupParserFactory(
                new MyMarkupParserFactory());
...
    }
}

public class MyMarkupParserFactory implements IMarkupParserFactory {

    @Override
    public MarkupParser newMarkupParser(MarkupResourceStream resource) {
        MarkupParser parser = new MarkupParser(new XmlPullParser(),
resource);
        parser.setWicketNamespace("abc");//my new namespace
        return parser;
    }
}

but this does not work!


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/overriding-getNamespace-won-t-work-tp4246795p4250347.html
Sent from the Forum for Wicket Core developers mailing list archive at 
Nabble.com.

Reply via email to