ERXKeyValueSetter Class Reference

Inherits com::webobjects::appserver::_private::WODynamicGroup.

Collaboration diagram for ERXKeyValueSetter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void appendToResponse (WOResponse response, WOContext context)
 ERXKeyValueSetter (String arg0, NSDictionary arg1, NSMutableArray arg2)
WOActionResults invokeAction (WORequest request, WOContext context)
void takeValuesFromRequest (WORequest request, WOContext context)

Package Attributes

WOAssociation destination
WOAssociation destinationKeypath
WOAssociation source
WOAssociation sourceKeypath

Private Member Functions

void cleanup (Object oldValue, WOComponent component)
Object setup (WOComponent component)


Detailed Description

Sets a keypath to a value. This is useful when you want a part of the page rendered with different settings. The value is re-set to the old value outside of the component.
One way to use it would be in a D2W app, where source="edit" and destination=d2wContext.task when you are on a list page. Another would the the typical scenario where you iterate over keys of dictionary, and you want the corresponding entry. Normally you'd need an accessor for that, but using this component, you would set source=myDict, sourceKeypath=currentyKey and destination=currentEntry

source the source object sourceKeypath (optional) the key path off the source object. If omitted, the source itself is used. destination the destination of the value destinationKeypath (optional) the key path off the destination object. If omitted, the source itself is used.

Author:
ak

Constructor & Destructor Documentation

ERXKeyValueSetter ( String  arg0,
NSDictionary  arg1,
NSMutableArray  arg2 
)


Member Function Documentation

void appendToResponse ( WOResponse  response,
WOContext  context 
)

void cleanup ( Object  oldValue,
WOComponent  component 
) [private]

WOActionResults invokeAction ( WORequest  request,
WOContext  context 
)

Object setup ( WOComponent  component  )  [private]

void takeValuesFromRequest ( WORequest  request,
WOContext  context 
)


Member Data Documentation

WOAssociation destination [package]

WOAssociation destinationKeypath [package]

WOAssociation source [package]

WOAssociation sourceKeypath [package]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:05 2012 for Project Wonder by  doxygen 1.5.8