Re: AJAX Error in parsing: XML Parsing Error: not well-formed @L

2012-01-24 Thread Alec Swan
Can anybody comment on this? Is this a bug? Thanks, Alec On Sun, Jan 22, 2012 at 11:50 AM, Alec Swan alecs...@gmail.com wrote: The following workaround works but violates encapsulation. Why doesn't AjaxRequestTarget.AjaxHeaderResponse class escape special XML characters? public void

Re: AJAX Error in parsing: XML Parsing Error: not well-formed @L

2012-01-24 Thread Martin Grigorov
Hi, Yes, looks like a bug. Please create a ticket + a quickstart. On Tue, Jan 24, 2012 at 8:56 PM, Alec Swan alecs...@gmail.com wrote: Can anybody comment on this? Is this a bug? Thanks, Alec On Sun, Jan 22, 2012 at 11:50 AM, Alec Swan alecs...@gmail.com wrote: The following workaround

Re: AJAX Error in parsing: XML Parsing Error: not well-formed @L

2012-01-22 Thread Alec Swan
The following workaround works but violates encapsulation. Why doesn't AjaxRequestTarget.AjaxHeaderResponse class escape special XML characters? public void renderHead(IHeaderResponse response) { String scriptToRender = scriptif (1 == 1 true) alert('Hello!')/script; if

AJAX Error in parsing: XML Parsing Error: not well-formed @L

2012-01-21 Thread Alec Swan
Hello, I am using Wicket 1.4.17 and have a panel which implements IHeaderContributor as follows: public void renderHead(IHeaderResponse response) { response.renderString(scriptif (1 == 1 true) alert('Hello!')/script); } When the panel is updated as a part of AJAX request (by adding to ART)