public class AjaxInPlace extends WOComponent
HTML:
<webobject name = "ExampleInPlace"> <webobject name = "View">View: <webobject name = "Value"/></webobject> <webobject name = "Edit">Edit: <webobject name = "ValueField"/></webobject> </webobject>WOD:
ExampleInPlace : AjaxInPlace { } View : ERXWOTemplate { templateName = "view"; } Value : WOString { value = value; } Edit : ERXWOTemplate { templateName = "edit"; } ValueField : WOTextField { value = value; }
Name | Description |
---|---|
class | the class used on the top container |
id | the id used on various parts of this component |
saveLabel | the label to show on the save button |
saveAction | the action to invoke on save |
saveUpdateContainerID | by default save updates the container specified in "id", but you can override that with this binding |
saveClass | the class of the save button |
canSave | if true, the results are saved; if false, the user is not allowed to leave edit mode |
onSaveClick | the action to fire when save is clicked |
onSaveSuccess | the javascript function to execute after a successful save |
onSaveFailure | the javascript function to execute after a failed save |
onSaving | the javascript action to fire when saving |
button | if true, the save action is a button; if false, it's a link |
submitOnSave | if true, the save button is an AjaxSubmitButton; if false, it's an AjaxUpdateLink (which will not actually submit a form -- you would have to do some work here) // PROTOTYPE FUNCTIONS |
saveInsertion | the insertion function to use on save |
saveInsertionDuration | the duration of the before and after insertion animation (if using insertion) |
saveBeforeInsertionDuration | the duration of the before insertion animation (if using insertion) |
saveAfterInsertionDuration | the duration of the after insertion animation (if using insertion) |
cancelLabel | the label to show on the cancel button |
cancelAction | the action to invoke on cancel |
cancelUpdateContainerID | by default cancel updates the container specified in "id", but you can override that with this binding |
cancelClass | the class of the cancel button |
onCancelClick | the action to fire when cancel is clicked |
onCancelSuccess | the javascript function to execute after a successful cancel |
onCancelFailure | the javascript function to execute after a failed cancel |
onCancelling | the javascript action to fire when cancelling // PROTOTYPE FUNCTIONS |
cancelInsertion | the insertion function to use on cancel |
cancelInsertionDuration | the duration of the before and after insertion animation (if using insertion) |
cancelBeforeInsertionDuration | the duration of the before insertion animation (if using insertion) |
cancelAfterInsertionDuration | the duration of the after insertion animation (if using insertion) |
editClass | the class of the div that you click on to trigger edit mode (yes this name sucks) |
formClass | the class of the form around the edit view |
canEdit | if true, edit mode is entered; if false, view mode remains active |
editOnly | if true, edit mode is locked on (and save controls don't show if it's in a parent form); if false, you can switch between edit and view mode |
onEditClick | the action to fire when edit mode is triggered |
onEditSuccess | the javascript function to execute after a successful edit |
onEditFailure | the javascript function to execute after a failed edit |
onEditing | the javascript action to fire when editing mode is loading // PROTOTYPE FUNCTIONS |
editInsertion | the insertion function to use on edit |
editInsertionDuration | the duration of the before and after insertion animation (if using insertion) |
editBeforeInsertionDuration | the duration of the before insertion animation (if using insertion) |
editAfterInsertionDuration | the duration of the after insertion animation (if using insertion) |
onRefreshComplete | the javascript function to execute after refreshing the container |
disabled | whether or not edit mode should be disabled |
manualControl | if true, it is up to you to provide click-to-edit, save, and cancel controls |
manualViewControl | if true, it is up to you to provide click-to-edit controls |
manualEditControl | if true, it is up to you to provide save and cancel controls |
style | the style of the top level container |
elementName | the name of the container element (defaults to "div") |
formSerializer | the name of the javascript function to call to serialize the form |
onsubmit | pass through onsubmit to form |
WOComponent._EventLoggingEnabler, WOComponent.Event
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
_Extension, _IsEventLoggingEnabled, _keyAssociations
_CLASS
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
NullValue
_CLASS
Constructor and Description |
---|
AjaxInPlace(WOContext context) |
__valueForBinding, _associationWithName, _awakeInContext, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, sleep, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithName
public AjaxInPlace(WOContext context)
public boolean synchronizesVariablesWithBindings()
synchronizesVariablesWithBindings
in class WOComponent
public String elementName()
public String id()
public WOActionResults invokeAction(WORequest aRequest, WOContext aContext)
invokeAction
in class WOComponent
public void takeValuesFromRequest(WORequest aRequest, WOContext aContext)
takeValuesFromRequest
in class WOComponent
public void appendToResponse(WOResponse aResponse, WOContext aContext)
appendToResponse
in class WOComponent
public String saveUpdateContainerID()
public String cancelUpdateContainerID()
public String saveLabel()
public String formName()
public boolean button()
public boolean submitOnSave()
public boolean linkOnSave()
public boolean disableForm()
public String updateFunctionName()
public String editFunctionName()
public String editFunctionCall()
public String saveFunctionName()
public String saveFunctionCall()
public String cancelFunctionName()
public String cancelFunctionCall()
public boolean manualControl()
public boolean manualEditControl()
public boolean manualViewControl()
public boolean disabled()
public boolean editOnly()
public boolean editing()
public boolean canEdit()
public boolean canSave()
public boolean changingToEdit()
public boolean changingToView()
public void setEditing(boolean editing)
public String cleanupFunction()
public WOActionResults startEditing()
public WOActionResults save()
public WOActionResults cancel()
Copyright © 2002 – 2024 Project Wonder.