Found the problem:
In an earlier version of the panel I overwrote getMarkupType.
Removing it fixed the problem.
public MarkupType getMarkupType() {
return MarkupType.HTML_MARKUP_TYPE;
}
On Fri, Sep 9, 2011 at 10:17 PM, Jochen Mader <[email protected]> wrote:
> I implemented a panel as a IMarkupResourceStreamProvider.
> It works perfect if I add it to a page using the add method. If I use
> "replaceWith" to replace another panel with this one I get
>
> "Tag expected"
>
> and the following stacktrace
>
> MarkupStream: [markup =
> org.apache.wicket.util.resource.StringResourceStream@19aea6e2:
> <html
> xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
> <body> <wicket:panel> <form wicket:id="form">
> <input type="submit" class="btn primary"
> wicket:id="submit"></input> </form> </wicket:panel>
> </body></html>
> <html
> xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
> <body> <wicket:panel> <form wicket:id="form">
> <input type="submit" class="btn primary"
> wicket:id="submit"></input> </form> </wicket:panel>
> </body></html>, index = 0, current = [Raw markup]]
> at
> org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:526)
> at org.apache.wicket.markup.MarkupStream.getTag(MarkupStream.java:258)
>
>
> Original Markup:
> <html
>
> xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
> <body>
> <wicket:panel>
> <form wicket:id="form">
> <input type="submit" class="btn primary"
> wicket:id="submit"></input>
> </form>
> </wicket:panel>
> </body>
> </html>
>
> I create a StringResourceStream using the markup stored in a String:
>
> new StringResourceStream(ret);
>
> Any idea?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]