You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2010/08/28 00:47:55 UTC

[jira] Resolved: (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 ]

Igor Vaynberg resolved WICKET-3023.
-----------------------------------

      Assignee: Igor Vaynberg
    Resolution: Won't Fix

i am having very strange results when i set this content type even on a static html page:
firefox opens it as xml
chrome shows the content, even the contents of the <title> page is shown on the page
ie wants to download the file

maybe i am not recreating this correctly...please attach 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
>    Affects Versions: 1.4.9
>            Reporter: Damian Nowak
>            Assignee: Igor Vaynberg
>            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.