org.apache.shale.clay.component.chain
Class PropertyValueCommand
java.lang.Object
org.apache.shale.clay.component.chain.AbstractCommand
org.apache.shale.clay.component.chain.PropertyValueCommand
- All Implemented Interfaces:
- Command
public class PropertyValueCommand
- extends AbstractCommand
- implements Command
This is the catch all Command to handle all attributes that
are not an "action", "actionListener", "validator" and "valueChangeListener".
This Command is invoked from the
AssignPropertiesCommand chain.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyValueCommand
public PropertyValueCommand()
execute
public boolean execute(Context context)
throws Exception
Looks at the AttributeBean on the ClayContext to see
if the value is a binding EL. If it is not it just updates the component
with the value. If the attribute is a value binding expression, then a
ValueBinding is created. If the attribute uses early binding
the ValueBinding is executed and result applied to the component.
Otherwise, the binding expression is applied to the component in a prepared state.
A true value is always returned because this is the default handler.
- Specified by:
execute in interface Command- Specified by:
execute in class AbstractCommand
- Parameters:
context - common chains
- Returns:
true if the chain is complete
- Throws:
Exception - propagated up to the top of the chain
Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.