at first glance I can't say what's wrong with your code, but you should try debugging wicketAjaxGet function with FireBug or some other dev tool. In this way you should find why there's no AJAX call.
I have an Ajax link in a drop down menu, created like this:

                 final MenuChoice item = new MenuChoice("Delete") {
                         private static final long serialVersionUID = 1L;

                         @Override protected AbstractLink newLink(final
String id) {
                                 final AjaxLink<String>  link = new
AjaxLink<String>(id) {
                                         private static final long
serialVersionUID = 1L;
                                         @Override public void
                                         onClick(final AjaxRequestTarget
target) {
  confirmer.confirm(model.getTrack(), target);
                                 return link;

The generated HTML looks like this:

<a href="#" id="id28" onclick="var
{ }.bind(this),function() { }.bind(this), function() {return
Wicket.$('id28') != null;}.bind(this));return !wcall;">Delete</a>

However, when I click the link, the onClick() handler is not called. The
Wicket Ajax debug window shows no Ajax activity occurring.

Can anyone see what I'm doing wrong?


This email and any attachments may contain information that is confidential 
and/or privileged for the sole use of the intended recipient.  Any use, review, 
disclosure, copying, distribution or reliance by others, and any forwarding of 
this email or its contents, without the express permission of the sender is 
strictly prohibited by law.  If you are not the intended recipient, please 
contact the sender immediately, delete the e-mail and destroy all copies.

To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to