|
Project Wonder 5.0 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.webobjects.appserver.WOElement
com.webobjects.appserver.WOComponent
com.webobjects.directtoweb.D2WComponent
com.webobjects.directtoweb.D2WPage
er.directtoweb.pages.ERD2WPage
er.directtoweb.pages.ERD2WListPage
er.directtoweb.pages.ERD2WEditableListPage
public class ERD2WEditableListPage
List page for editing all items in the list.
Name your page EditListYourEntityName. task will be edit, subTask will be list.
See Component ERD2WEditableListTemplate for html/wod example.
There is a "mass change" feature that can apply a change to all displayed objects.
Think of it as an "input assistant". The changes are not saved when propagated, and the rows can be updated individually after a mass change has been applied.
(Note: There is a 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)
| D2W Keys | |
showBanner | showBanner |
object | object |
isEntityInspectable | isEntityInspectable |
shouldValidateBeforeSave | shouldValidateBeforeSave |
shouldSaveChanges | shouldSaveChanges |
shouldRecoverFromOptimisticLockingFailure | shouldRecoverFromOptimisticLockingFailure |
saveLabelTemplateKey | saveLabelTemplateKey |
displayNameForEntity | displayNameForEntity |
showMassChange | showMassChange |
| Nested Class Summary | |
|---|---|
class |
ERD2WEditableListPage.ERDMassChangeGenericRecord
|
| Nested classes/interfaces inherited from class er.directtoweb.pages.ERD2WPage |
|---|
ERD2WPage.Keys |
| Nested classes/interfaces inherited from class com.webobjects.appserver.WOComponent |
|---|
WOComponent._EventLoggingEnabler, WOComponent.Event |
| Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
|---|
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility |
| Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation |
|---|
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException |
| Field Summary | |
|---|---|
protected WODisplayGroup |
_massChangeDisplayGroup
|
protected ERD2WEditableListPage.ERDMassChangeGenericRecord |
_massChangeEO
|
String |
dummy
|
static Logger |
log
|
static String |
MassChangeEntityDisplayKey
|
| Fields inherited from class er.directtoweb.pages.ERD2WListPage |
|---|
_displayGroup, _hasToUpdate, _rowFlip, _sessionID, _shouldRefetch, dataSourceState, referenceEO |
| Fields inherited from class er.directtoweb.pages.ERD2WPage |
|---|
_allConfigurations, _branch, _context, _nextPage, _nextPageDelegate, _pageController, _userInfo, errorKeyOrder, errorMessage, errorMessages, keyPathsWithValidationExceptions, validationLog |
| Fields inherited from class com.webobjects.directtoweb.D2WComponent |
|---|
_eo, _localContext, currentObjectKey |
| Fields inherited from class com.webobjects.appserver.WOComponent |
|---|
_Extension, _IsEventLoggingEnabled, _keyAssociations |
| Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling |
|---|
_CLASS |
| Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
|---|
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator |
| Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding |
|---|
NullValue |
| Fields inherited from interface com.webobjects.foundation.NSValidation |
|---|
_CLASS |
| Constructor Summary | |
|---|---|
ERD2WEditableListPage(WOContext context)
|
|
| Methods inherited from class com.webobjects.directtoweb.D2WPage |
|---|
alternateRowColor, dataSource, extraBindings, finalize, replacementAssociationForAssociation, setExtraBindings |
| Methods inherited from class com.webobjects.directtoweb.D2WComponent |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.webobjects.directtoweb.ListPageInterface |
|---|
setNextPage, setNextPageDelegate |
| Methods inherited from interface com.webobjects.directtoweb.SelectPageInterface |
|---|
nextPageDelegate, setNextPageDelegate |
| Field Detail |
|---|
public static final Logger log
public String dummy
public static final String MassChangeEntityDisplayKey
protected WODisplayGroup _massChangeDisplayGroup
protected ERD2WEditableListPage.ERDMassChangeGenericRecord _massChangeEO
| Constructor Detail |
|---|
public ERD2WEditableListPage(WOContext context)
| Method Detail |
|---|
public int colspanForNavBar()
public int numberOfObjectsPerBatch()
numberOfObjectsPerBatch in class ERD2WListPagepublic boolean objectWasSaved()
objectWasSaved in interface ERDObjectSaverInterfaceprotected NSMutableDictionary errorMessagesDictionaries()
public NSMutableDictionary errorDictionaryForObject(Object object)
public NSMutableDictionary currentErrorDictionary()
public boolean showCancel()
ERD2WListPage
showCancel in class ERD2WListPagepublic boolean isEntityInspectable()
isEntityInspectable in class ERD2WListPagepublic void setObject(EOEnterpriseObject eo)
ERD2WPageInspectPageInterface
setObject in class ERD2WPagepublic WOComponent backAction()
backAction in class ERD2WListPagepublic WOComponent nextPage()
nextPage in class ERD2WPagepublic boolean shouldValidateBeforeSave()
public boolean shouldSaveChanges()
public boolean shouldRecoverFromOptimisticLockingFailure()
public boolean tryToSaveChanges(boolean validateObjects)
public WOComponent saveAction()
public WOComponent cancel()
public void validationFailedWithException(Throwable e,
Object value,
String keyPath)
ERD2WPage
validationFailedWithException in class ERD2WPagepublic void clearValidationFailed()
ERD2WPageERXExceptionHolder interface.
clearValidationFailed in interface ERXExceptionHolderclearValidationFailed in class ERD2WPagepublic WOComponent update()
public void takeValuesFromRequest(WORequest r,
WOContext c)
ERD2WPage
takeValuesFromRequest in class ERD2WListPagepublic String saveLabel()
public boolean shouldShowMassChange()
public com.webobjects.directtoweb.D2WContext d2wContextForMassChangeEO()
public WODisplayGroup massChangeDisplayGroup()
public ERD2WEditableListPage.ERDMassChangeGenericRecord massChangeEO()
public WOComponent clearMassChangeEO()
public WOComponent propagateChangesToVisibleObjects()
public String propagateChangesDetails()
|
Last updated: Wed, Feb 22, 2012 07:00 AM EST | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||