You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Paul Joseph <pj...@yahoo.com> on 2004/10/20 16:44:22 UTC

on-value-changed example

Hi,

I am looking for an example of how fd:on-value-changed
is used.

Currently, in the docs. I see:

 <fd:on-value-changed>
    ...
  </fd:on-value-changed>


Being a bit new to all this, what should go between
the fd:on-value-changed tags?

For the "on-change" I would like to use Javascript to
make a call to a bean that I have instantiated in my
flowscript, and to put that value in another field in
my form

thx!
Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: on-value-changed example

Posted by Paul Joseph <pj...@yahoo.com>.
Thanks Joerg!  I am off and running now!

-Paul
--- Joerg Heinicke <jo...@gmx.de> wrote:

> On 20.10.2004 16:44, Paul Joseph wrote:
> 
> > For the "on-change" I would like to use Javascript
> to
> > make a call to a bean that I have instantiated in
> my
> > flowscript, and to put that value in another field
> in
> > my form
> 
> Shouldn't this be done in the binding?
> fd:on-value-changed is for inner 
> form logic, not for references to the model. But of
> course it's up to 
> you to follow this "rule".
> 
> Example usage: 
>
http://svn.apache.org/viewcvs.cgi/cocoon/trunk/src/blocks/forms/samples/forms/carselector_form.xml?rev=30942&view=markup
> 
> Joerg
> 
>
---------------------------------------------------------------------
> 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: on-value-changed example

Posted by Joerg Heinicke <jo...@gmx.de>.
On 20.10.2004 16:44, Paul Joseph wrote:

> For the "on-change" I would like to use Javascript to
> make a call to a bean that I have instantiated in my
> flowscript, and to put that value in another field in
> my form

Shouldn't this be done in the binding? fd:on-value-changed is for inner 
form logic, not for references to the model. But of course it's up to 
you to follow this "rule".

Example usage: 
http://svn.apache.org/viewcvs.cgi/cocoon/trunk/src/blocks/forms/samples/forms/carselector_form.xml?rev=30942&view=markup

Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org