List of usage examples for org.apache.wicket.protocol.http WebApplication newAjaxRequestTarget
public final AjaxRequestTarget newAjaxRequestTarget(final Page page)
From source file:com.comcast.cdn.traffic_control.traffic_monitor.wicket.behaviors.AbstractMultiAjaxBehavior.java
License:Apache License
/** * @see org.apache.wicket.behavior.IBehaviorListener#onRequest() *///from ww w. j a v a 2 s . c om @Override public final void onRequest() { final WebApplication app = (WebApplication) getComponent().getApplication(); final AjaxRequestTarget target = app.newAjaxRequestTarget(getComponent().getPage()); final RequestCycle requestCycle = RequestCycle.get(); requestCycle.scheduleRequestHandlerAfterCurrent(target); respond(target); }
From source file:de.alpharogroup.wicket.base.util.ComponentFinder.java
License:Apache License
/** * Creates a new ajax request target from the given Page. * * @param application//from ww w. j a v a 2 s. co m * the web application * @param page * page on which ajax response is made * @return an AjaxRequestTarget instance * * @see WebApplication#newAjaxRequestTarget(Page) * */ @SuppressWarnings("javadoc") public static AjaxRequestTarget newAjaxRequestTarget(final WebApplication application, final Page page) { return application.newAjaxRequestTarget(page); }
From source file:org.efaps.ui.wicket.behaviors.dojo.AutoCompleteBehavior.java
License:Apache License
@Override public void onRequest() { final WebApplication app = (WebApplication) getComponent().getApplication(); final ACAjaxRequestTarget target = new ACAjaxRequestTarget( app.newAjaxRequestTarget(getComponent().getPage())); final RequestCycle requestCycle = RequestCycle.get(); requestCycle.scheduleRequestHandlerAfterCurrent(target); final String val = requestCycle.getRequest().getRequestParameters() .getParameterValue(this.settings.getParamName()).toOptionalString(); respond(target, val); }
From source file:org.jaulp.wicket.base.util.ComponentFinder.java
License:Apache License
/** * Creates a new ajax request target from the given Page. * //from www. j a v a2s. c om * @param application * the web application * @param page * page on which ajax response is made * @return an AjaxRequestTarget instance * * @see WebApplication#newAjaxRequestTarget(Page) * */ @SuppressWarnings("javadoc") public static AjaxRequestTarget newAjaxRequestTarget(WebApplication application, Page page) { return application.newAjaxRequestTarget(page); }
From source file:org.wicketstuff.extjs.behavior.ExtAbstractBehavior.java
License:Apache License
public final void onRequest() { WebApplication app = (WebApplication) getComponent().getApplication(); AjaxRequestTarget target = app.newAjaxRequestTarget(getComponent().getPage()); RequestCycle.get().setRequestTarget(target); onEvent(target);/*from ww w . ja v a 2s . com*/ }