[ 
https://issues.apache.org/jira/browse/WICKET-3023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Grigorov reopened WICKET-3023:
-------------------------------------


Reopen because the author attached a quickstart.

> 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: Igor Vaynberg
>            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

        

Reply via email to