Thanks Matej. I guess I was thrown off by a couple of things, first that
it worked in Firefox, and second that Wicket didn't complain about the
tag not being well-formed as it does for components.

Would it be a good idea to have <wicket:head> check the well-formedness
of its contents? Should I raise a JIRA?

jk

----- Forwarded message from "Matej Knopp (JIRA)" <[EMAIL PROTECTED]> -----

Envelope-to: [EMAIL PROTECTED]
Delivery-date: Sat, 12 May 2007 10:45:18 -0400
From: "Matej Knopp (JIRA)" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-SA-Exim-Connect-IP: 140.211.11.4
X-SA-Exim-Mail-From: [EMAIL PROTECTED]
Subject: [jira] Resolved: (WICKET-527) Panel header contribution breaks AJAX
 update in Internet Explorer
X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on 
        mercury.effectiveregistration.com
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham 
        version=3.0.3
X-SA-Exim-Version: 4.2 (built Thu, 03 Mar 2005 10:44:12 +0100)
X-SA-Exim-Scanned: Yes (on mercury.effectiveregistration.com)


     [ 
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.


----- End forwarded message -----

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to