public class ERD2WEditableListPage extends ERD2WListPage implements ERXExceptionHolder, ERDObjectSaverInterface
ERDMassModifyButton
class that may be more appropriate depending on your needs)
To enable the mass change feature on an editable list page, do the following:
1/ Add a "showMassChange" rule that returns "true" for your edit list page
2/ If you want to restrict the keys that can be "mass edited", add a displayPropertyKeys rule with a restricted set of keys with the qualifer "(massChangeEntityDisplay = 1)"
Known Issues:
changing the number of items per batch causes problems (the display group's batch is updated too soon in the request/response loop)Name | Description |
---|---|
showBanner | showBanner |
object | object |
isEntityInspectable | isEntityInspectable |
shouldValidateBeforeSave | shouldValidateBeforeSave |
shouldSaveChanges | shouldSaveChanges |
shouldRecoverFromOptimisticLockingFailure | shouldRecoverFromOptimisticLockingFailure |
saveLabelTemplateKey | saveLabelTemplateKey |
displayNameForEntity | displayNameForEntity |
showMassChange | showMassChange |
Modifier and Type | Class and Description |
---|---|
class |
ERD2WEditableListPage.ERDMassChangeGenericRecord |
ERD2WPage.Keys, ERD2WPage.ValidationDelegate
com.webobjects.appserver.WOComponent._EventLoggingEnabler, com.webobjects.appserver.WOComponent.Event
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility
com.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor
com.webobjects.foundation.NSValidation._MethodBinding, com.webobjects.foundation.NSValidation._ValidationBinding, com.webobjects.foundation.NSValidation.DefaultImplementation, com.webobjects.foundation.NSValidation.Utility, com.webobjects.foundation.NSValidation.ValidationException
Modifier and Type | Field and Description |
---|---|
protected WODisplayGroup |
_massChangeDisplayGroup |
protected ERD2WEditableListPage.ERDMassChangeGenericRecord |
_massChangeEO |
String |
dummy |
static Logger |
log |
static String |
MassChangeEntityDisplayKey |
_displayGroup, _hasToUpdate, _rowFlip, _sessionID, _shouldRefetch, dataSourceState, referenceEO
_allConfigurations, _branch, _context, _nextPage, _nextPageDelegate, _pageController, _userInfo, errorKeyOrder, errorMessage, errorMessages, keyPathsWithValidationExceptions, validationDelegate, validationDelegateInited, validationLog
_eo, _localContext, currentObjectKey
_Extension, _IsEventLoggingEnabled, _keyAssociations
Constructor and Description |
---|
ERD2WEditableListPage(com.webobjects.appserver.WOContext context) |
Modifier and Type | Method and Description |
---|---|
com.webobjects.appserver.WOComponent |
backAction() |
com.webobjects.appserver.WOComponent |
cancel() |
com.webobjects.appserver.WOComponent |
clearMassChangeEO() |
void |
clearValidationFailed()
Clears all of the collected validation exceptions.
|
int |
colspanForNavBar() |
NSMutableDictionary |
currentErrorDictionary() |
com.webobjects.directtoweb.D2WContext |
d2wContextForMassChangeEO() |
NSMutableDictionary |
errorDictionaryForObject(Object object) |
protected NSMutableDictionary |
errorMessagesDictionaries() |
boolean |
isEntityInspectable() |
WODisplayGroup |
massChangeDisplayGroup() |
ERD2WEditableListPage.ERDMassChangeGenericRecord |
massChangeEO() |
com.webobjects.appserver.WOComponent |
nextPage() |
int |
numberOfObjectsPerBatch() |
boolean |
objectWasSaved() |
String |
propagateChangesDetails() |
com.webobjects.appserver.WOComponent |
propagateChangesToVisibleObjects() |
com.webobjects.appserver.WOComponent |
saveAction() |
String |
saveLabel() |
void |
setObject(com.webobjects.eocontrol.EOEnterpriseObject eo)
Implementation of the
InspectPageInterface |
boolean |
shouldRecoverFromOptimisticLockingFailure() |
boolean |
shouldSaveChanges() |
boolean |
shouldShowMassChange() |
boolean |
shouldValidateBeforeSave() |
boolean |
showCancel()
Should we show the cancel button? It's only visible when we have a
nextPage set up.
|
void |
takeValuesFromRequest(com.webobjects.appserver.WORequest r,
com.webobjects.appserver.WOContext c)
Overridden from the parent for better logging.
|
boolean |
tryToSaveChanges(boolean validateObjects) |
com.webobjects.appserver.WOComponent |
update() |
void |
validationFailedWithException(Throwable e,
Object value,
String keyPath)
Handles validation errors.
|
_fetchDisplayGroup, alternatingColorForRow, alwaysRefetchList, appendToResponse, backgroundColorForRow, checkSortOrderingKeys, colorForRow, createDisplayGroup, defaultSortKey, deleteObjectAction, descriptionForResponse, didUpdate, displayGroup, editingContextDidSaveChanges, editObjectAction, fetchIfNecessary, formTargetJavaScriptUrl, inspectObjectAction, invokeAction, isEntityEditable, isEntityPrintable, isEntityReadOnly, isListEmpty, isSelecting, isSelectingNotTopLevel, isValidSortKey, listSize, localInstanceOfObject, printerFriendlyVersion, printerFriendlyVersion, referenceEOs, selectedObject, selectedObjects, selectObjectAction, sessionID, setBackgroundColorForRow, setDataSource, setSelectedObject, setSelectedObjects, setSortOrderingsOnDisplayGroup, setupPhase, shouldShowBatchNavigation, shouldShowSelectAll, sortOrderings, targetString, urlForCurrentState, useBatchingDisplayGroup, userPreferencesCanSpecifySorting, warmUpForDisplay, willUpdate
aggregateEventDurationForCurrentPropertyKey, allConfigurationNames, awake, branch, branchChoices, branchName, clearTabSectionsContents, clickToOpenEnabled, cssClassForPageContainerElement, cssClassForPropertyKey, cssClassForPropertyName, currentSection, currentSectionKeys, currentTab, d2wComponentNameDebuggingEnabled, d2wContext, d2wCurrentComponentName, d2wDebuggingEnabled, displayVariant, editingContext, errorKeyOrder, errorMessage, errorMessageForPropertyKey, errorMessages, hasActualChanges, hasBranchChoices, hasErrors, hasValidationExceptionForPropertyKey, inlineStyleDeclarationForPropertyKey, inlineStyleDeclarationForPropertyName, isEmbedded, isKeyOmitted, isObjectDeleteable, isObjectEditable, isObjectInspectable, isTopLevelPage, latestEntryForCurrentPropertyKey, makeStatsKey, nextPageDelegate, nextPageFromDelegate, now, object, pageController, pageWithName, pageWrapperName, sectionsContents, sectionsForCurrentTab, self, setBranch, setCurrentSection, setCurrentTab, setD2wContext, setEditingContext, setErrorMessage, setErrorMessages, setLocalContext, setNextPage, setNextPageDelegate, setPageController, settings, setValidationDelegate, shouldCollectValidationExceptions, shouldDisplayDetailedPageMetrics, shouldDisplayPageMetricsSummary, shouldPropagateExceptions, shouldSetFailedValidationValue, sleep, statsForPage, statsKeyForCurrentPropertyKey, statsKeyPrefix, tabSectionsContents, tabSectionsContentsFromRuleResult, userInfo, userPreferencesValueForKey, userPreferencesValueForPageConfigurationKey, validationDelegate
alternateRowColor, dataSource, extraBindings, replacementAssociationForAssociation, setExtraBindings
allEntities, allowCollapsing, applicationPort, assistantPort, attribute, backgroundColorForHeaderRow, backgroundColorForPage, backgroundColorForTable, backgroundColorForTableDark, backgroundColorForTableLight, color, currentSettings, currentUrl, d2wContextVisibleEntityNamesCountPlus1, defaultRowspan, displayNameForKeyWhenRelationship, displayNameForProperty, displayPropertyKeys, dynamicPages, entity, entityName, formatter, generationReplacementFor, generationReplacementForCurrentObject, hasCustomKey, hasEntity, hasNoColor, homeClicked, homeHref, isEditing, isEntityReadOnly, isLiveAssistantEnabled, isNotBoldAsBoolean, isNotItalicAsBoolean, isPropertyAnAttribute, isWebAssistantActive, isWebAssistantConnected, isWebAssistantEnabled, keyForGenerationReplacementForVariableNamed, keyWhenRelationship, lastUrl, length, localContext, logout, objectPropertyValue, objectPropertyValueIsNonNull, pageTitle, property, propertyKey, propertyValueClassName, relationship, resourcePathURL, setCurrentSettings, setDynamicPages, setEntities, setEntity, setEntityName, setPropertyKey, setResourcePathURL, setTask, setTasks, showBanner, showWebAssistant, submitActionName, target, task, tasks, visibleEntityNames
__valueForBinding, _associationWithName, _awakeInContext, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, 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, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithName
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final Logger log
public String dummy
public static final String MassChangeEntityDisplayKey
protected WODisplayGroup _massChangeDisplayGroup
protected ERD2WEditableListPage.ERDMassChangeGenericRecord _massChangeEO
public ERD2WEditableListPage(com.webobjects.appserver.WOContext context)
public int colspanForNavBar()
public int numberOfObjectsPerBatch()
numberOfObjectsPerBatch
in class ERD2WListPage
public boolean objectWasSaved()
objectWasSaved
in interface ERDObjectSaverInterface
protected NSMutableDictionary errorMessagesDictionaries()
public NSMutableDictionary errorDictionaryForObject(Object object)
public NSMutableDictionary currentErrorDictionary()
public boolean showCancel()
ERD2WListPage
showCancel
in class ERD2WListPage
public boolean isEntityInspectable()
isEntityInspectable
in class ERD2WListPage
public void setObject(com.webobjects.eocontrol.EOEnterpriseObject eo)
ERD2WPage
InspectPageInterface
public com.webobjects.appserver.WOComponent backAction()
backAction
in class ERD2WListPage
public com.webobjects.appserver.WOComponent nextPage()
public boolean shouldValidateBeforeSave()
public boolean shouldSaveChanges()
public boolean shouldRecoverFromOptimisticLockingFailure()
public boolean tryToSaveChanges(boolean validateObjects)
public com.webobjects.appserver.WOComponent saveAction()
public com.webobjects.appserver.WOComponent cancel()
public void validationFailedWithException(Throwable e, Object value, String keyPath)
ERD2WPage
validationFailedWithException
in class ERD2WPage
public void clearValidationFailed()
ERD2WPage
ERXExceptionHolder
interface.clearValidationFailed
in interface ERXExceptionHolder
clearValidationFailed
in class ERD2WPage
public com.webobjects.appserver.WOComponent update()
public void takeValuesFromRequest(com.webobjects.appserver.WORequest r, com.webobjects.appserver.WOContext c)
ERD2WPage
takeValuesFromRequest
in class ERD2WListPage
public String saveLabel()
public boolean shouldShowMassChange()
public com.webobjects.directtoweb.D2WContext d2wContextForMassChangeEO()
public WODisplayGroup massChangeDisplayGroup()
public ERD2WEditableListPage.ERDMassChangeGenericRecord massChangeEO()
public com.webobjects.appserver.WOComponent clearMassChangeEO()
public com.webobjects.appserver.WOComponent propagateChangesToVisibleObjects()
public String propagateChangesDetails()
Copyright © 2002 – 2020 Project Wonder.