configuration to not remove DOM / usage with a server side framework

configuration to not remove DOM / usage with a server side framework

novotny75novotny75 Posts: 3Questions: 1Answers: 0
edited October 2014 in Free community support

Hi,

I'm trying to use Wicket server side java framework to create my table, and since the table has dynamic links on one of the columns, Wicket attaches an event to the DOM which of course breaks when you go to the next page in the table, since it needs to re-attach. I read the FAQ, but out of desperation and wondering if there is any way to not change the DOM?

Thanks, Jason

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    I think Wicket's "DataTable" is all its own - i.e. nothing to do with datatables.net.

    http://www.javabeat.net/displaying-data-using-datatable-in-apache-wicket/

  • novotny75novotny75 Posts: 3Questions: 1Answers: 0

    True, wicket has a datatable, however our designer chose jquery DataTables (this project) and I'm trying to integrate it with Wicket.

    Thanks, Jason

  • novotny75novotny75 Posts: 3Questions: 1Answers: 0

    Hi,

    the wicket authors wrote me:

    "I am not sure how DataTables removes and re-adds the rows later. It should
    use jQuery's clone(true, true) to preserve the event bindings. Ask in their
    forums."

    Isn't is possible to preserve event bindings?

    Thanks, Jason

This discussion has been closed.