cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg <greg.far...@gmail.com>
Subject Prepopulating
Date Thu, 07 Apr 2005 09:46:54 GMT
Hi,

thanks for the replies, A & A, but if I have the data stored in
javascript vars in the flowscript, can I not simply point to these in
the binding as suggested in

http://cocoon.apache.org/2.1/userdocs/forms/binding.html

by the following snippet;

<fb:javascript id="foo" path="@foo">
  <fb:load-form>
    var appValue = jxpathPointer.getValue();
    var formValue = doLoadConversion(appValue);
    widget.setValue(formValue);
  </fb:load-form>
</fb:javascript>

?

I may be interpreting this wrongly, but I'm taking @foo to be a var in
the flowscript. So what I need to know is how to point the surrounding
context element to the relevant function in the flowscript?

<fb:context path="flowscript_function">
   <fb:javascript>
        .
        .
   </fb:javascript>
</fb:context>

Am I way off course here!

Greg

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


Mime
View raw message