I eventually figured where the problem was: in IE6, scripts that are
contained in Ajax responses seems not to be executed. If I place the
script in a component that is loaded normally (not through Ajax),
everthing is OK.
Is this problem a known issue with IE6 ?
In fact, I noticed some other strange behavior: If I place some HTML
code that is to produce a Wicket error, such as <wicket:head> inside a
<wicket:panel>, no error is detected if this code is loaded through
Ajax. Only if I reload the page (so that everything is loaded normally)
is the error detected.
Pierre-Yves
Pierre-Yves Saumont a écrit :
> Hello,
>
> I need to call the onClick event handler containing a Wicket generated
> URL from a script. The id of the component holding the onClick event
> handler is
> "rightColumn_pagePanel_dialogBoxReponses_tabs_panel_dialogBoxContent_confirmLink"
>
> On first page load, the event handler is:
>
> onclick="var
> wcall=wicketAjaxGet('/ceagrap/app?wicket:interface=:3:rightColumn:pagePanel:dialogBoxReponses:tabs:panel:dialogBoxContent:outside_partners:0:deleteGraphicButton::IBehaviorListener&wicket:behaviorId=0'
>
> I am calling it as follow:
>
> document.getElementById("rightColumn_pagePanel_dialogBoxReponses_tabs_panel_dialogBoxContent_confirmLink").onclick();
>
> This works fine in Firefox but causes an error in IE6:
>
> ERROR: error while processing response: [object Error].Objet attendu
> INFO: invoking failure handler...
>
> If I reload the page, the onClick handler change to:
>
> onclick="var
> wcall=wicketAjaxGet('/ceagrap/app?wicket:interface=:3:rightColumn:pagePanel:dialogBoxReponses:tabs:panel:dialogBoxContent:outside_partners:0:deleteGraphicButton:1:IBehaviorListener&wicket:behaviorId=0'
>
> and then it works fine event in IE6.
>
> The only difference between the two handler is:
>
> ...deleteGraphicButton::IBehaviorListener...
> ...deleteGraphicButton:1:IBehaviorListener...
>
> (Clicking on the link works in any case. Only calling it through
> Javascript make the first one fail)
>
> Does anyone know how to solve this problem?
>
> Pierre-Yves
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user