Project Wonder 5.0

er.extensions.components
Class ERXKeyValueSetter

java.lang.Object
  extended by com.webobjects.appserver.WOElement
      extended by com.webobjects.appserver.WODynamicElement
          extended by com.webobjects.appserver._private.WODynamicGroup
              extended by er.extensions.components.ERXKeyValueSetter

public class ERXKeyValueSetter
extends com.webobjects.appserver._private.WODynamicGroup

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

Author:
ak
Bindings
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.
           

Field Summary
 
Fields inherited from class com.webobjects.appserver._private.WODynamicGroup
_children
 
Fields inherited from class com.webobjects.appserver.WODynamicElement
_ConstructorParameters
 
Constructor Summary
ERXKeyValueSetter(java.lang.String arg0, com.webobjects.foundation.NSDictionary arg1, com.webobjects.foundation.NSMutableArray arg2)
           
 
Method Summary
 void appendToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
           
 com.webobjects.appserver.WOActionResults invokeAction(com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOContext context)
           
 void takeValuesFromRequest(com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOContext context)
           
 
Methods inherited from class com.webobjects.appserver._private.WODynamicGroup
addChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ERXKeyValueSetter

public ERXKeyValueSetter(java.lang.String arg0,
                         com.webobjects.foundation.NSDictionary arg1,
                         com.webobjects.foundation.NSMutableArray arg2)
Method Detail

takeValuesFromRequest

public void takeValuesFromRequest(com.webobjects.appserver.WORequest request,
                                  com.webobjects.appserver.WOContext context)
Overrides:
takeValuesFromRequest in class com.webobjects.appserver._private.WODynamicGroup

invokeAction

public com.webobjects.appserver.WOActionResults invokeAction(com.webobjects.appserver.WORequest request,
                                                             com.webobjects.appserver.WOContext context)
Overrides:
invokeAction in class com.webobjects.appserver._private.WODynamicGroup

appendToResponse

public void appendToResponse(com.webobjects.appserver.WOResponse response,
                             com.webobjects.appserver.WOContext context)
Overrides:
appendToResponse in class com.webobjects.appserver._private.WODynamicGroup

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.