01: /*
02: * Created on Nov 17, 2005
03: */
04: package uk.org.ponder.rsf.components;
05:
06: /** A "binding" which is stored in the component tree, and will be rendered
07: * as a submission that, when received, will perform an "assignment" in the
08: * request scope container. This assignment will be of Java object references,
09: * to the EL address specified by the <code>valuebinding</code> field.
10: * @author Antranig Basman (antranig@caret.cam.ac.uk)
11: *
12: */
13:
14: public class UIELBinding extends UIParameter {
15: public UIELBinding() {
16: }
17:
18: public UIELBinding(String lvalue, Object rvalue, boolean virtual) {
19: valuebinding = new ELReference(lvalue);
20: this .rvalue = rvalue;
21: this .virtual = virtual;
22: }
23:
24: /** Create a binding that will assign the Object or EL reference <code>rvalue</code>
25: * to the EL path <code>lvalue</code> in the following request cycle.
26: */
27: public UIELBinding(String lvalue, Object rvalue) {
28: this (lvalue, rvalue, false);
29: }
30:
31: /** The "target" of this binding - an EL bean path that will be written
32: * when this binding is received. Includes #{}.
33: */
34: public ELReference valuebinding;
35: /** The r-value of this binding is an Object which will be serialised and
36: * reconstructed when the binding is to be applied. If this is an ELReference
37: * itself, the corresponding value will be fetched.
38: */
39: public Object rvalue;
40: }
|