public abstract class UrlParametersReceivingBehavior
extends org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
Behavior
will execute an AJAX call to itself with the
URL query and fragment parameters.Constructor and Description |
---|
UrlParametersReceivingBehavior(org.apache.wicket.Component... components)
Constructor that takes an array of
Component s which will be added to the
AjaxRequestTarget for you when the URL parameters come in. |
UrlParametersReceivingBehavior(Map<String,String> options,
org.apache.wicket.Component... components)
Constructor that takes an array of
Component s which will be added to the
AjaxRequestTarget for you when the URL parameters come in. |
Modifier and Type | Method and Description |
---|---|
protected static org.apache.wicket.markup.head.HeaderItem |
getJS(Class<?> scope)
Returns the
HeaderItem representing the JavaScript library used to read and write URL
fragment parameters. |
protected abstract void |
onParameterArrival(org.apache.wicket.request.IRequestParameters requestParameters,
org.apache.wicket.ajax.AjaxRequestTarget target)
Hook for evaluating the request parameters when they come in.
|
void |
renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.head.IHeaderResponse response) |
protected void |
respond(org.apache.wicket.ajax.AjaxRequestTarget target) |
protected void |
updateAjaxAttributes(org.apache.wicket.ajax.attributes.AjaxRequestAttributes attributes) |
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, onBind, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes
afterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind
public UrlParametersReceivingBehavior(org.apache.wicket.Component... components)
Component
s which will be added to the
AjaxRequestTarget
for you when the URL parameters come in.components
- the components you wish to add to the request target when the income of the URL
fragment parameters is handledpublic UrlParametersReceivingBehavior(Map<String,String> options, org.apache.wicket.Component... components)
Component
s which will be added to the
AjaxRequestTarget
for you when the URL parameters come in.options
- JS options to customize the behaviorcomponents
- the components you wish to add to the request target when the income of the URL
fragment parameters is handledpublic void renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
renderHead
in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributor
renderHead
in class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
protected void respond(org.apache.wicket.ajax.AjaxRequestTarget target)
respond
in class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
protected void updateAjaxAttributes(org.apache.wicket.ajax.attributes.AjaxRequestAttributes attributes)
updateAjaxAttributes
in class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
protected abstract void onParameterArrival(org.apache.wicket.request.IRequestParameters requestParameters, org.apache.wicket.ajax.AjaxRequestTarget target)
requestParameters
- use this to obtain the values of your URL fragment parameterstarget
- use this like in any other ajax callbackprotected static org.apache.wicket.markup.head.HeaderItem getJS(Class<?> scope)
HeaderItem
representing the JavaScript library used to read and write URL
fragment parameters.scope
- the scope of the PackageResourceReference
Copyright © 2015. All rights reserved.