01: /*
02: * Created on Nov 25, 2005
03: */
04: package uk.org.ponder.rsf.expander;
05:
06: import uk.org.ponder.rsf.components.ELReference;
07:
08: /** One of the valid types that may appear in the "idstrategy" from the UIReplicator
09: * placeholder component. For each bean found in the indexable container
10: * specified for the value binding, the EL for members of the replicated
11: * UIBranchContainer are generated by assembling the composite
12: * EL basepath.ID.stubEL, where basepath is as shown in this class,
13: * idfield is the value retrieved from the bean field specified by idfield below,
14: * and stubEL is the EL portion already mentioned in the child component,
15: * an instance of UIBound.
16: * @author Antranig Basman (antranig@caret.cam.ac.uk)
17: *
18: */
19: public class IDRemapStrategy {
20: /** The base bean path (probably that of a BeanLocator) in the request-scope
21: * container, at which the field value identified below retrieved from a
22: * replicating bean can be applied to retrieve it.
23: */
24: public ELReference basepath;
25: /** The name of the property from which the ID of a replicating bean may be
26: * read. This ID will be applied not only to the wildcard portion of the
27: * replicated EL binding but also to the localID of the replicated container.
28: */
29: public String idfield = "id";
30: }
|