Hi,

I have a DataTable. In this DataTable I want to be able to click on the rows
in the table to make some stuff happen (by Ajax), for example highlighting
the current row. To implement this I am overriding the newRow method in
DataTable and adding an AjaxEventBehavior("onclick") to each row item.

This works well, but when I add a Link to another page in one of the
columns, I get a problem. When clicking the link I still trigger an onclick
ajax event for clicking the row. But since the link takes me to another
page, this ajax request will fail beacuse the page it belongs to is no
longer available.

Is there a way to prevent the onclick event from happening when I click on
my link? Or is there a better way of doing this?

Thanks!
Daniel

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Error-with-link-in-DataTable-together-with-AjaxEventBehavior-onclick-tp4611096.html
Sent from the Users forum mailing list archive at Nabble.com.

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

Reply via email to