public abstract class JavaScriptExpressionSendingAjaxBehavior
extends org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
| Constructor and Description |
|---|
JavaScriptExpressionSendingAjaxBehavior() |
| Modifier and Type | Method and Description |
|---|---|
void |
addJavaScriptValue(String parameterName,
String javascriptExpression)
Adds a javascript expression whose value to be passed from client to
server.
|
void |
addJavaScriptValues(Map<String,String> parameterMap)
Adds a set of javascript expressions to be passed from client to server.
|
CharSequence |
getCallbackScript() |
protected org.apache.wicket.util.string.StringValue |
getVariableValue(String parameterName)
Reads the value of the given javascript variable from the AJAX request.
|
protected void |
updateAjaxAttributes(org.apache.wicket.ajax.attributes.AjaxRequestAttributes attributes) |
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getChannel, getFailureScript, getPreconditionScript, getSuccessScript, onBind, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes, renderHead, respondafterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTagpublic JavaScriptExpressionSendingAjaxBehavior()
protected org.apache.wicket.util.string.StringValue getVariableValue(String parameterName)
parameterName - the parameter name of the javascript expression whose value to
read. The parameterName must have been specified earlier when
calling addJavaScriptValue(String, String).public CharSequence getCallbackScript()
getCallbackScript in class org.apache.wicket.ajax.AbstractDefaultAjaxBehaviorpublic void addJavaScriptValue(String parameterName, String javascriptExpression)
getVariableValue(String). A
javascript variable with the given name must exist within the scope the
callback script of this behavior is called on the client side!parameterName - the name under which the value of the given javascript expression
can be accessed laterjavascriptExpression - the javascript expression whose value pass from client to server.public void addJavaScriptValues(Map<String,String> parameterMap)
parameterMap - a map containing the name of a parameter as key and a javascript
expression as valueaddJavaScriptValue(String, String)protected void updateAjaxAttributes(org.apache.wicket.ajax.attributes.AjaxRequestAttributes attributes)
updateAjaxAttributes in class org.apache.wicket.ajax.AbstractDefaultAjaxBehaviorCopyright © 2013. All Rights Reserved.