检票口AjaxLink的onclick不响应检票口、AjaxLink、onclick

2023-09-10 20:59:29 作者:青春的詞典裏沒有放棄っ

我要建有小门网站。我有一个从主网页的ajaxlink打开一个模态窗口。现在的问题是,当我为了添加一个CSS到我的HTML code,使其更明显的吸引力,它停止工作。所以,现在,当我点击在打开的模态窗口的AjaxLink,什么也没有发生,我不明白为什么。任何想法??

I'm building a website with wicket. I have a modal window that opens from an ajaxlink from the main page. The problem is that when I added a CSS to my HTML code in order to make it more visible attractive, it stopped working. So now, when I click in the AjaxLink that opens the modal window, nothing happens and I can't figure out why. Any Ideas??

这是AjaxLink的code:

This is the code of the AjaxLink:

AjaxLink privacyLink = new AjaxLink<Void>("privacylink") {
    @Override
    public void onClick(AjaxRequestTarget target) {
        // TODO Auto-generated method stub
        modal2.show(target);
    }
}; 

还有一个注释。这AjaxLink介绍,作为一个ListView的一部分,所以实际上有多个AjaxLinks。

One more comment. This AjaxLink is introduced as a part of a ListView, so actually there are multiple AjaxLinks.

推荐答案

我终于找到了解决办法!,这是jQuery的的,我用(1.4.2)的版本有问题,所以我只是把它改为1.5 .2它的工作!

I finally found the solution!!, It was a problem of the version of jQuery that I was using (1.4.2) so I just changed it to 1.5.2 and it worked!