You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Wotan von Klass <vo...@gmail.com> on 2007/01/22 11:28:06 UTC
CForms: Binding of two connected Beans
Hello,
I try to bind two connected beans to one form. Let's say a car bean
has a reference to a make bean.
I load the car and bind it to the form:
form.load(car);
How do I bind now to the properties of the make in the same form?
<fb:context xmlns:fb="http://apache.org/cocoon/forms/1.0#binding" path="/" >
<fb:value id="make" path="make.name"/>
</fb:context>
Doesn't work
Regards
Wotan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: CForms: Binding of two connected Beans
Posted by Wotan von Klass <vo...@gmail.com>.
Hi Mark, perfect!
On 1/22/07, Mark Lundquist <lu...@gmail.com> wrote:
>
> Hi Wotan,
>
> On Jan 22, 2007, at 2:28 AM, Wotan von Klass wrote:
>
> > <fb:context xmlns:fb="http://apache.org/cocoon/forms/1.0#binding"
> > path="/" >
> > <fb:value id="make" path="make.name"/>
> > </fb:context>
> > Doesn't work
>
> Right, it's jxpath. Use:
>
> <fb:value id="make" path="make/name"/>
>
> cheers,
> —ml—
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: CForms: Binding of two connected Beans
Posted by Mark Lundquist <lu...@gmail.com>.
Hi Wotan,
On Jan 22, 2007, at 2:28 AM, Wotan von Klass wrote:
> <fb:context xmlns:fb="http://apache.org/cocoon/forms/1.0#binding"
> path="/" >
> <fb:value id="make" path="make.name"/>
> </fb:context>
> Doesn't work
Right, it's jxpath. Use:
<fb:value id="make" path="make/name"/>
cheers,
—ml—
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org