Merico,
You can get the binding in flowscript like this, using the form object:
form.binding;
my guess is this is a ContextJXPathBindingBase (you can print the
classname to make sure). On this object you can use the getChildBindings
to get the child bindings. For a fb:value binding, you can use the
getXpath() method to get the path attribute.
Each element in your binding document (fb:value, fb:context, etc.) is
mapped to a specific binding implementation. This mapping is defined in
cocoon.xconf. Take a look at the samples to see which ones are used: you
can find this in samples/forms/conf/forms-binding.xconf.
Dennis Dam
Mark Lundquist wrote:
Hmm, I don't really know of a way to do it, but maybe someone else
does. I don't understand the internals of the binding framework all
that well, but I do know that the bindings are a totally separate
abstraction; the form load/save methods iterate through the binding,
which operates on each widget; it's not (a) built into the "form
model" (i.e. the widgets themselves) nor (b) is it implemented using a
Decorator pattern. The way it's done I think does allow for the
greatest efficiency (think of <fb:context> and what that means for the
use of JXPath to navigate the model object structure). So to do what
you are asking I think you would have to figure out how to interrogate
the Binding itself, you'd have to look in the source code for the
o.a.c.forms.binding package and probably also the Form flowscript API.
cheers,
—ml—
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
file:///C:/cocoon-2.1.8/src/blocks/forms/java/org/apache/cocoon/forms/binding/ValueJXPathBinding.java
<cid:[email protected]>
--
Hippo
Oosteinde 11
1017WT Amsterdam
The Netherlands
Tel +31 (0)20 5224466
-------------------------------------------------------------
[EMAIL PROTECTED] / http://www.hippo.nl
--------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]