Re: wicket include in test

2011-08-25 Thread Igor Vaynberg
the include component tries to construct a url from pieces in your servlet request such as servletrequest.getprotocol, servletrequest.getservername, etc what you have to do is trick it into constructing a url that looks like this: file:///some/dir/static/footer.html you have to play around with

Re: wicket include in test

2011-08-25 Thread Alexander Gubin
Igor, thanks a lot! I was thinking of putting some check whether it's a test code into production code, but that idea seems a bit whacky :) Will play with MockServletRequest... thanks again Alexander On 08/25/2011 10:48 AM, Igor Vaynberg wrote: the include component tries to construct a

wicket include in test

2011-08-24 Thread Alexander Gubin
I saw similar post about 2 years ago, but seems that the question was left unaswered. http://wicket-users.markmail.org/message/o6ub7gjxrheevlo4?q=test+include I have a page with Include, works fine, however when testing I get: org.apache.wicket.util.resource.ResourceStreamNotFoundException: