|
Page Created :
WICKET :
Passing HTTP parameters to Ajax callback methods
Passing HTTP parameters to Ajax callback methods has been created by Will Hoover (Apr 13, 2008). Content:Passing HTTP Parameters To Ajax Callback MethodswebPage.add(new AbstractAjaxTimerBehavior(duration) { private static final long serialVersionUID = 1L; /** * [EMAIL PROTECTED] */ @Override public final CharSequence getCallbackUrl(final boolean onlyTargetActivePage) { return String.valueOf(super.getCallbackUrl(onlyTargetActivePage)) + "&pos=" + "window.pos"; } /** * [EMAIL PROTECTED] */ @Override protected final void onTimer(final AjaxRequestTarget target) { final String pos = getRequest().getParameter("pos"); // process pos ... } }); |
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
Unsubscribe or edit your notifications preferences
