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 run. Why is that?
2)
Why doesn't implementation of hasAssociatedMarkup work for this example?
Please find the code for the testpage below.
Cheers,
Gerard
package org.innobuilt.wicket.rest.example.pages;
import org.apache.wicket.MarkupContainer;
import org.apache.wicket.markup.IMarkupResourceStreamProvider;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.util.resource.IResourceStream;
import org.apache.wicket.util.resource.StringResourceStream;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class TestPage extends WebPage implements
IMarkupResourceStreamProvider {
private static final Logger LOG =
LoggerFactory.getLogger(TestPage.class);
@Override
protected void onInitialize() {
super.onInitialize();
LOG.info("onInitialize");
}
@Override
protected void onBeforeRender() {
super.onInitialize();
LOG.info("onBeforeRender");
}
@Override
public void renderPage() {
LOG.info("renderPage");
getResponse().write("<html><body>hello</body></html>");
}
public IResourceStream getMarkupResourceStream(MarkupContainer
container, Class<?> containerClass) {
LOG.info("getMarkupResourceStream");
return new StringResourceStream("");
}
}
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/wicket-rest-and-Wicket-1-5-RC4-2-MarkupNotFoundException-Can-not-determine-Markup-tp3600779p3602838.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]