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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to