Hi, Please create a ticket with a simple quickstart app that demonstrates the problem. Thanks!
On Thu, Apr 12, 2012 at 12:55 PM, mjirkovsky <mjirkov...@valconsystems.com> wrote: > Hi, > > I have custom component (extends MarkupContainer implements > IMarkupCacheKeyProvider, IMarkupResourceStreamProvider) which fetches its > HTML markup from database. > Following HTML markup: > > <img alt="" src="img/supplier/supplier1.png"> > <br>Some text > <br>Some more text > > causes following error: > > 2012-04-12 10:52:53,012 [http-8080-6] ERROR: Unexpected error occurred > Unable to find close tag for: '<img alt="" > src="img/supplier/supplier1.png">' in > org.apache.wicket.util.resource.StringBufferResourceStream@3d7e16fc > MarkupStream: [unknown] > at > org.apache.wicket.markup.MarkupFragment.<init>(MarkupFragment.java:127) > at > org.apache.wicket.markup.MarkupStream.getMarkupFragment(MarkupStream.java:485) > at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:244) > at > org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1421) > at > org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1596) > at > org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1571) > at > org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1525) > > I think the problem is that > org.apache.wicket.markup.parser.filter.HtmlHandler does not handle such > markup correctly. It does not call ComponentTag.setHasNoCloseTag(true) for > the img tag. Such call is missing in postProcess() method. I think that this > problem can be fixed by inserting: > > top.setHasNoCloseTag(true); > > after line 80 in HtmlHandler.java file. > > > Michal > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-5-HtmlHandler-markup-without-base-tag-problem-tp4551420p4551420.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org