You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2011/04/28 16:59:03 UTC
[jira] [Assigned] (WICKET-3023) Ajax does not work with XHTML
[ https://issues.apache.org/jira/browse/WICKET-3023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov reassigned WICKET-3023:
---------------------------------------
Assignee: Martin Grigorov (was: Igor Vaynberg)
> 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-core
> Affects Versions: 1.4.9
> Reporter: Damian Nowak
> Assignee: Martin Grigorov
> Priority: Critical
> Attachments: myproject3023.7z
>
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira