开发者

JSF Ajax events work only once on Safari

开发者 https://www.devze.com 2023-02-19 23:34 出处:网络
I\'ve noticed that, in my application, the Ajax events work only the first time when using Safari (they work correctly on IE and FF). After some debugging, I\'ve noticed that the problem is related wi

I've noticed that, in my application, the Ajax events work only the first time when using Safari (they work correctly on IE and FF). After some debugging, I've noticed that the problem is related with the onevent attribute. In my tags I've the following:

<f:ajax render="@form" onevent="loader" />

If I don't declare the loader function, the events work (but I loose the effect provided by the function), but as soon as I declare loader, even if completely empty, it only works the first time:

function loader(e) {}

At first, I thought the problem might be on the code I've开发者_运维知识库 on the loader method, but, like I said, it also happens with an empty body. If I remove the method, it starts working.

Any ideas on what might be causing the problem?

Kind regards,

Carlos Ferreira

0

精彩评论

暂无评论...
验证码 换一张
取 消