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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to