Thank you for your reply.

The Wicket help describes how to change the file location the markup is
loaded from. 

Since some of the markup files will eventually be loaded from a data base,
simply adding another resource folder is not sufficient. I need to override
ResourceStreamLocator and return a custom IResourceStream. When I do this, I
get the described error for any markup containing inheritence. 

It is irrelevant whether I use a FileResourceStream as in my example code or
a StringResourceStream from the markup code or something else, the error is
always the same. 

Putting *exactly* the same markup code to the default location and returning
super.locate(clazz,path), all works fine. Therefore the markup itself has no
errors. Obviously, there is a difference whether I created the stream myself
or use the stream created by standard ResourceStreamLocator, although
getInputStream()  delivers in both cases the same content. 

Martin



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Overriding-markup-loading-results-in-errors-with-inheritance-tp4658319p4658369.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to