Description
When using
@Override
public String getMarkupType()
in a webpage, I cannot use getLocalizer().getString( "xyz", this ) anymore. I traced it back to
Caused by: org.xml.sax.SAXParseException: Document root element "order", must match DOCTYPE root "null".
Apparently, the wicket localizer (org.apache.wicket.resource.loader.ComponentStringResourceLoader.loadStringResource, line 142) decides to look for an XML properties file. Normally, this would be ok. But now, since I have an XML file in place which is the markup for the webpage, localization breaks. Wicket thinks that my markup file is an XML properties file.
Right now it's either XML markup and no localization for that page, or HTML markup.