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, setValueMap
generateCallbackScript, getEvent, getEventHandler, onCheckEvent, onComponentTag, respond, setThrottleDelay
findIndicatorId, getCallbackScript, getChannelName, getFailureScript, getPreconditionScript, getSuccessScript, onBind, onRequest, renderHead, throttleScript
bind, getCallbackUrl, getComponent, getImplementationId, getStatelessHint, onComponentRendered, onComponentTag, onRendered, onRenderHeadContribution, onRenderHeadInitContribution
public 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 Component
data
- as Object arrayprotected String eventAction(org.apache.wicket.ajax.AjaxRequestTarget target, Map<String,String[]> paramMap)
FieldAjaxEventBehavior
eventAction
in class FieldAjaxEventBehavior
public abstract boolean isExistingRecord(Map<String,String[]> data)
data
- as Map
Copyright © 2018. All rights reserved.