public abstract class EditorAjaxSaveBehavior extends FieldAjaxEventBehavior
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAM_VALUE
Value of the content Facet as String
|
| Constructor and Description |
|---|
EditorAjaxSaveBehavior(String event,
String value,
String uuid,
org.apache.wicket.Component parent,
Object... data)
Create behavior to allow to Save data.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
eventAction(org.apache.wicket.ajax.AjaxRequestTarget target,
Map<String,String[]> paramMap)
The action to take on a valid request with its request Parameter Map included
|
protected static String |
extract(String[] arr) |
abstract boolean |
isExistingRecord(Map<String,String[]> data)
The Ajax save works on updating Content using Ids that identify the content record.
|
abstract Object |
save(Map<String,String[]> data)
Save the data on Action
|
decorateCallbackUrl, eventFailure, getAjaxCallDecorator, getBody, getCallbackScript, getCallbackUrl, getCallDecorator, getIdMap, getValueMap, isPost, onClick, onEvent, setCallDecorator, setIdMap, setPost, setValueMapgenerateCallbackScript, getEvent, getEventHandler, onCheckEvent, onComponentTag, respond, setThrottleDelayfindIndicatorId, getCallbackScript, getChannelName, getFailureScript, getPreconditionScript, getSuccessScript, onBind, onRequest, renderHead, throttleScriptbind, getCallbackUrl, getComponent, getImplementationId, getStatelessHint, onComponentRendered, onComponentTag, onRendered, onRenderHeadContribution, onRenderHeadInitContributionpublic static final String PARAM_VALUE
public EditorAjaxSaveBehavior(String event, String value, String uuid, org.apache.wicket.Component parent, Object... data)
event - as JavaScript event name e.g. onClickvalue - as String , the value we want to Persist / put part of the Script generateduuid - as String, a unique id that help ties the request/response in Ajax on the screen to a section on the UIparent - as Componentdata - as Object arrayprotected String eventAction(org.apache.wicket.ajax.AjaxRequestTarget target, Map<String,String[]> paramMap)
FieldAjaxEventBehavioreventAction in class FieldAjaxEventBehaviorpublic abstract boolean isExistingRecord(Map<String,String[]> data)
data - as MapCopyright © 2018. All rights reserved.