Hi all,
I have a datatable and following method that delivers the selected item in the table. How can I get the index of the selected element? There are methods for getting the current page index and all page rows, but I couldnt find a function for getting the index of the current element. datatable.getRowsPerPage(); datatable.getCurrentPage(); public ActionPanel(String id, IModel<T> model) { super(id, model); add(new Link("select") { @Override public void onClick() { T selected = (T) getParent().getDefaultModelObject(); } }); Thanks a lot! Br, Christoph