I've removed the value binding and just put a _javascript_-binding inside my repeater but still no action is triggered (only the other value bindings are logging). I've got other bindings where the _javascript_ inside the value binding does work; like this one:

  <bnd:value id="name" path="customername">
       <bnd:on-update>
              <bnd:_javascript_ id="name" path="..">
                <bnd:load-form/>
                <bnd:save-form>
                  var wsfield = jxpathContext.getPointer('country');
                  wsfield.setValue("159");
                </bnd:save-form>
              </bnd:_javascript_>
       </bnd:on-update>
  </bnd:value>

But that only works for jxpath's not equal to the one of the value binding; so I cannot change the "customername" but only the "country".

Is the _javascript_-binding recently added coz I'm working on a cvshead from 12/May ?

Regards,
Gunter




Bruno Dumon <[EMAIL PROTECTED]>

29/07/2004 10:03

Please respond to
[EMAIL PROTECTED]

To
[EMAIL PROTECTED]
cc
Subject
Re: Woody binding: save/load-form not triggered





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