|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.shale.clay.component.chain.AbstractCommand
org.apache.shale.clay.component.chain.PropertyValueCommand
public class PropertyValueCommand
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.
Field Summary |
---|
Fields inherited from interface org.apache.commons.chain.Command |
---|
CONTINUE_PROCESSING, PROCESSING_COMPLETE |
Constructor Summary | |
---|---|
PropertyValueCommand()
|
Method Summary | |
---|---|
boolean |
execute(org.apache.commons.chain.Context context)
Looks at the AttributeBean on the ClayContext to see
if the value is a binding EL. |
Methods inherited from class org.apache.shale.clay.component.chain.AbstractCommand |
---|
getCatalog, getCustomizationCatalog, getMessages, getTagUtils, isValueReference, realizeSymbols, replaceMnemonic, replaceMnemonic |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyValueCommand()
Method Detail |
---|
public boolean execute(org.apache.commons.chain.Context context) throws java.lang.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.
execute
in interface org.apache.commons.chain.Command
execute
in class AbstractCommand
context
- common chains
true
if the chain is complete
java.lang.Exception
- propagated up to the top of the chain
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |