Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread Martin Grigorov
From the error message it seems there is no PersonXmlRestService.html around. Please describe how wicket-rest actually works. On Thu, Jun 16, 2011 at 1:55 AM, gerar gerardp...@gmail.com wrote: Hi, I've tried to port http://wicket-rest.googlecode.com/svn to Wicket 1.5-RC4.2. That took some

Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread gerar
Details: The PersonXmlRestService.html is an example that comes with the wicket-rest library. It is a subclass of XmlWebServicePage which in turn is based on AbstractWebServicePage. Class AbstractWebServicePage has a method: @Override public final boolean hasAssociatedMarkup() {

Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread Martin Grigorov
On Thu, Jun 16, 2011 at 3:16 PM, gerar gerardp...@gmail.com wrote: Details: The  PersonXmlRestService.html is an example that comes with the wicket-rest library. It is a subclass of XmlWebServicePage which in  turn is based on AbstractWebServicePage. Class AbstractWebServicePage has a method:

Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread gerar
Thanks for the very quick answer. However, now another error message appears. The superclass now looks like this: public abstract class AbstractWebServicePage extends WebPage implements IMarkupResourceStreamProvider { // Removed hasAssociatedMarkup method and added: public

Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread Martin Grigorov
One more replace: @Override protected final void onRender() { getResponse().write(getXML().toString()); } with @Override public void renderPage() { getResponse().write(getXML().toString()); } On Thu, Jun 16, 2011 at 3:39 PM, gerar gerardp...@gmail.com wrote:

Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread Bruno Borges
I forked the project wicket-rest from googlecode to wicketstuff-sandbox. Gerard, you can now ask for commit access at wicketstuff, or just fork it from there and then push a patch. https://github.com/wicketstuff/sandbox/tree/master/wicket-rest Thanks again for showing interest in this project.

Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread Michael O'Cleirigh
Hello, Once the wicket-rest project works it would be better placed into the wicketstuff/core repository as no snapshots or releases are done using sandbox code. But they come for free if you contribute into the wicketstuff/core repository. Mike I forked the project wicket-rest from

Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread gerar
Hi, Maybe the cause of the problem is to be found elsewhere. I created a simple test page. Code is below. It produces the HTML itself without an HTML file, just like the pages that use wicket-rest baseclasses. 1) The code below runs just fine, but neither onInitialize nor onBeforeRender are ever

Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread gerar
I forgot to say that implementing @Override public void renderPage() { getResponse().write(getXML().toString()); } and public IResourceStream getMarkupResourceStream(MarkupContainer container, Class? containerClass) { return new StringResourceStream(); }

Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread Gerard J. Piek
Bruno, Thanks. Once I have the details right, I'll dive into this. Cheers, Gerard 2011/6/16 Bruno Borges bruno.bor...@gmail.com I forked the project wicket-rest from googlecode to wicketstuff-sandbox. Gerard, you can now ask for commit access at wicketstuff, or just fork it from there and

wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-15 Thread gerar
Hi, I've tried to port http://wicket-rest.googlecode.com/svn to Wicket 1.5-RC4.2. That took some minor changes like the package that PageParameters is in, the way the HttpServletRequest is fetched and the onRender methods. All compiles well. However, when I make a request in a browser for a URL