In the same subject, is there a reason why wicket.markup.html.WebPage.getMarkupType() isn't final but wicket.markup.html.WebMarkupContainer.getMarkupType() is ?
I want my templates to have the .xml extension but that is only possible for pages and not panels because of that method being marked final. Is there a good reason to have the method marked final in WebMarkupContainer or is that also an historical artifact ? Thanks, Ludovic Eelco Hillenius wrote: > >> I'm a little concerned by the Note int he javadocs for this method: >> >> Note: The markup type must be equal to the extension of the markup file. >> In >> the case of WebPages, it must always be "html". >> >> Does that mean that the string "html" has some meaning beyond just >> telling >> the framework what file extension to retrieve? > > That comment was incorrect. Thanks for noting it, I just removed it. > > We have one example of a different extension (xml): > wicket.examples.compref.XmlPage. > > You should be able to pick any extension you like. Please report here > if you encounter any problems regarding this. > > Eelco > -- View this message in context: http://www.nabble.com/Can-templates-have-an-extension-other-than-.html--tf3309848.html#a10108984 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user