On Thu, Oct 27, 2011 at 1:00 PM, midikem <anders.nystro...@gmail.com> wrote: > Hi i have a problem. I have a popup that triggers on a page. If it contains > pageparameter popup it should trigger. The problem is that i want it to > disapear on the defaultdatatable paging. Becouse now everytime i press > something in the paging the popup popsup. Is there a way to override the > paging so i could remove the pageparameter? > > SortableDataProvider<Doc> provider = new > SortableDocumentProvider(wrappedDocumentList); > provider.setSort("bla", true); > add(new DefaultDataTable<Doc>("dataTable", columns, provider, > DEFAULT_PAGE_SIZE)); > > String onLoadScript = ""; > if (parameters.containsKey("popup")) { > LOGGER.debug("Adding popup window script"); > onLoadScript = ""; > } > add(new Label("onLoadScript", > onLoadScript).setEscapeModelStrings(false).setOutputMarkupId(true));
Don't use DefaultDataTable but DataTable with explicitly specified toolbars. This way you can extend the default PagingNavigator with your own that removes the special parameter. > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/popup-to-disapear-on-defaultdatatable-paging-tp3943946p3943946.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 > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org