nl.openedge.baritus.population
Class OgnlFieldPopulator

java.lang.Object
  extended bynl.openedge.baritus.population.AbstractFieldPopulator
      extended bynl.openedge.baritus.population.OgnlFieldPopulator
All Implemented Interfaces:
FieldPopulator

public final class OgnlFieldPopulator
extends AbstractFieldPopulator

OGNL populator for bean properties. Tries to set a property using OGNL.

Author:
Eelco Hillenius, Sander Hofstee

Field Summary
static java.lang.String CTX_KEY_CURRENT_CONVERTER
          context key for current converter
static java.lang.String CTX_KEY_CURRENT_EXEC_PARAMS
          context key for current execution parameters
static java.lang.String CTX_KEY_CURRENT_FIELD_NAME
          context key for current field name expression
static java.lang.String CTX_KEY_CURRENT_LOCALE
          context key for current locale
static java.lang.String CTX_KEY_CURRENT_TARGET_TYPE
          context key for current target type
static java.lang.String CTX_KEY_CURRENT_TRIED_VALUE
          context key for current tried value
 
Fields inherited from class nl.openedge.baritus.population.AbstractFieldPopulator
ctrl
 
Constructor Summary
OgnlFieldPopulator(FormBeanCtrlBase ctrl)
          construct with reference to the control
 
Method Summary
 boolean setProperty(org.infohazard.maverick.flow.ControllerContext cctx, FormBeanContext formBeanContext, java.lang.String name, java.lang.Object value)
          set a property
 
Methods inherited from class nl.openedge.baritus.population.AbstractFieldPopulator
getCtrl, setCtrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CTX_KEY_CURRENT_LOCALE

public static final java.lang.String CTX_KEY_CURRENT_LOCALE
context key for current locale

See Also:
Constant Field Values

CTX_KEY_CURRENT_TARGET_TYPE

public static final java.lang.String CTX_KEY_CURRENT_TARGET_TYPE
context key for current target type

See Also:
Constant Field Values

CTX_KEY_CURRENT_EXEC_PARAMS

public static final java.lang.String CTX_KEY_CURRENT_EXEC_PARAMS
context key for current execution parameters

See Also:
Constant Field Values

CTX_KEY_CURRENT_FIELD_NAME

public static final java.lang.String CTX_KEY_CURRENT_FIELD_NAME
context key for current field name expression

See Also:
Constant Field Values

CTX_KEY_CURRENT_TRIED_VALUE

public static final java.lang.String CTX_KEY_CURRENT_TRIED_VALUE
context key for current tried value

See Also:
Constant Field Values

CTX_KEY_CURRENT_CONVERTER

public static final java.lang.String CTX_KEY_CURRENT_CONVERTER
context key for current converter

See Also:
Constant Field Values
Constructor Detail

OgnlFieldPopulator

public OgnlFieldPopulator(FormBeanCtrlBase ctrl)
construct with reference to the control

Parameters:
ctrl -
Method Detail

setProperty

public boolean setProperty(org.infohazard.maverick.flow.ControllerContext cctx,
                           FormBeanContext formBeanContext,
                           java.lang.String name,
                           java.lang.Object value)
                    throws java.lang.Exception
set a property

Parameters:
cctx - maverick context
formBeanContext - context with instance of the form bean to set the property on
name - name of the property
value - unconverted value to set
Returns:
boolean true if the property was set successfully, false otherwise
Throws:
java.lang.Exception


Copyright © 2003-2004 Open Edge. All Rights Reserved.