List of usage examples for org.apache.wicket Page detach
@Override public final void detach()
From source file:com.wiquery.plugins.jqgrid.component.XMLDataRequestTarget.java
License:Apache License
/** * @see org.apache.wicket.IRequestTarget#detach(org.apache.wicket.RequestCycle) *//*ww w.ja va 2 s. c om*/ public void detach(final RequestCycle requestCycle) { // detach the page if it was updated if (markupIdToComponent.size() > 0) { final Component component = markupIdToComponent.values().iterator().next(); final Page page = component.findParent(Page.class); if (page != null) { page.detach(); } } }
From source file:sf.wicklet.gwt.server.ajax.impl.AbstractGwtAjaxResponse.java
License:Apache License
/** * Detaches the page if at least one of its components was updated. * * @param requestCycle// www . j a va2 s . com * the current request cycle */ void detach(final IRequestCycle requestCycle) { final Iterator<Component> iterator = markupIdToComponent.values().iterator(); while (iterator.hasNext()) { final Component component = iterator.next(); final Page parentPage = component.findParent(Page.class); if (parentPage != null) { parentPage.detach(); break; } } }