You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Matej Knopp (JIRA)" <ji...@apache.org> on 2007/05/12 16:45:15 UTC

[jira] Resolved: (WICKET-527) Panel header contribution breaks AJAX update in Internet Explorer

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

Matej Knopp resolved WICKET-527.
--------------------------------

    Resolution: Invalid

Of course this doesn't work. Markup for header contribution must be well formed (xhtml valid). In your example you have 

        <link rel="stylesheet" type="text/css" href="SubComponent.css">

Which is wrong - without closing tag. If you change it to 

        <link rel="stylesheet" type="text/css" href="SubComponent.css"/>

Everything works.

> Panel header contribution breaks AJAX update in Internet Explorer
> -----------------------------------------------------------------
>
>                 Key: WICKET-527
>                 URL: https://issues.apache.org/jira/browse/WICKET-527
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.2.6
>            Reporter: John Krasnay
>         Assigned To: Matej Knopp
>         Attachments: quickstart.zip
>
>
> If a Panel subclass makes a header contribution via <wicket:head>, and the panel code attempts to refresh itself in response to an AjaxLink click, the refresh does not work on IE. The debug window shows the following error:
> INFO:
> INFO: Initiating Ajax GET request on
> /arp/?wicket:interface=:0:subComponent:link::IBehaviorListener&wicket:behaviorId=0&random=0.8818904450460203
> INFO: Invoking pre-call handler(s)...
> INFO: Received ajax response (656 characters)
> INFO:
> <?xml version="1.0"
> encoding="UTF-8"?><ajax-response><header-contribution><![CDATA[<head
> xmlns:wicket="http://wicket.sourceforge.net">
>         <link
> href="/arp/resources/com.td.idcs.arp.dev.SubComponent/SubComponent_en_US.css"
> rel="stylesheet" type="text/css">
>     </head>]]></header-contribution><component id="subComponent"
> ><![CDATA[<div id="subComponent">
>     <a href="#" onclick="var
> wcall=wicketAjaxGet('/arp/?wicket:interface=:0:subComponent:link::IBehaviorListener&wicket:behaviorId=0',
> function() { }, function() { });return !wcall;"
> id="subComponent_link">Click Me</a>
>     <span>3</span>
> </div>]]></component></ajax-response>
> ERROR: Error while parsing response: Object required
> INFO: Invoking post-call handler(s)...
> INFO: Invoking failure handler(s)...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.