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/29 14:40:03 UTC

[jira] [Updated] (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 updated WICKET-3023:
------------------------------------

    Priority: Minor  (was: Critical)

Setting "getDebugSettings().setAjaxDebugModeEnabled(false);" is a workaround for the problem for 1.4.x.

It works fine in 1.5.x without any changes.

> 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: Minor
>         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