Ajax does not work with XHTML
-----------------------------
Key: WICKET-3023
URL: https://issues.apache.org/jira/browse/WICKET-3023
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.4.9
Reporter: Damian Nowak
Priority: Critical
Nothing except for plain AjaxLink works.
{noformat}
// Page class
@Override
protected void configureResponse() {
super.configureResponse();
final Response response = getResponse();
response.setContentType("application/xhtml+xml");
}
{noformat}
Firebug says:
{noformat}
An invalid or illegal string was specified" code: "12
[Break on this error] c.innerHTML = msg;
{noformat}
Oh yes, no innerHTML is allowed in pure XHTML.
A simple, quick work-around for this would be to use a jQuery and replace all
innerHTMLs with something XHTML-friendly so that DOM tree is built. It would
look something like that:
{noformat}
// c.innerHTML = msg;
$(c).html(msg);
{noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.