On Wed, 2004-07-28 at 10:38, Gunter D'Hondt wrote:
> I've got the following binding definition but the save-form and
> load-form is never triggered (or is doesn't have any effect anyway):
> 
>       <bnd:value id="field1" path="field1/value">
>        <bnd:on-update>
>         <bnd:javascript id="field1" path="field1/value">
>           <bnd:load-form>
>                     var appValue = jxpathPointer.getValue();
>                     if (appValue==""||appValue==null) appValue="0";
>                     widget.setValue(appValue);
>           </bnd:load-form>
>           <bnd:save-form>
>                     var formValue = widget.getValue();
>                     if (formValue==""||formValue==null)
>                             jxpathPointer.setValue("0");
>                             else
>                             jxpathPointer.setValue(appValue);
>           </bnd:save-form>
>         </bnd:javascript>
>        </bnd:on-update>
>       </bnd:value>
> 
> Any help is welcome!

Simply put the javascript binding outside of the value binding, you
don't need the value binding at all.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]                          [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to