com.webobjects.directtoweb
Class D2WEdit
java.lang.Object
|
+--com.webobjects.appserver.WOElement
|
+--com.webobjects.appserver.WOComponent
|
+--com.webobjects.directtoweb.D2WEmbeddedComponent
|
+--com.webobjects.directtoweb.D2WEdit
- All Implemented Interfaces:
- Cloneable, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, WOActionResults
- public class D2WEdit
- extends D2WEmbeddedComponent
This Direct to Web reusable component displays an edit component.
Synopsis
D2WEdit { [action=anAction;] [displayKeys=keyArray;] entityName=nameString; object=anEnterpriseObject; [pageConfiguration=configurationName;] };
Bindings
action - the action method to invoke when the user clicks Save or Cancel.
This method is invoked after the object is saved or discarded.
displayKeys - the properties of the entity to edit (NSArray).
You can also represent the array as a string: "(prop1, prop2, ...)".
entityName - the name of the entity for this record (String).
object - the object edited by this component.
pageConfiguration - the named configuration containing the Web Assistant
settings for this component (String).
If this binding is not specified, the "*all*" configuration for the edit task
and the entityName entity is used.
Example:
myEdit : D2WEdit {
entityName = "Movie";
object = displayGroup.selectedObject;
action = editAction;
pageConfiguration = "userEditMovieConfig";
}
- See Also:
- Serialized Form
Constructor Summary |
D2WEdit(WOContext aContext)
Constructs a D2WEdit with the specified context. |
Methods inherited from class com.webobjects.appserver.WOComponent |
appendToResponse, application, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, invokeAction, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, sleep, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForKey, valueForKeyPath |
D2WEdit
public D2WEdit(WOContext aContext)
- Constructs a D2WEdit with the specified context.
- Parameters:
aContext
- - the WOContext.
Copyright © 2003 Apple Computer, Inc.