Re: is there some Ajax behavior updating only a component internal state/data ?

2010-04-26 Thread Joseph Pachod
hi Martin I tried your code but had issues with it (bound to jetty + to instances of IOnChangeListener)). However, it made me look directly into AjaxFormComponentUpdatingBehavior.onEvent(..), where I ended keeping only formComponent.inputChanged(); . But then other issues started to rise:

Re: is there some Ajax behavior updating only a component internal state/data ?

2010-04-23 Thread Joseph Pachod
Martin Makundi wrote: Here: (..) looks promising, thanks a lot I'll test it on Monday (week end calling soon and.. urgent stuff to do in between) thanks again :) ++ joseph - To unsubscribe, e-mail: users-unsubscr...@wic

Re: is there some Ajax behavior updating only a component internal state/data ?

2010-04-23 Thread Martin Makundi
Here: /** * Submits form without validating it. * * @author Martin */ public abstract class AjaxFormSubmittingChangeListenerBehavior extends AjaxFormSubmitBehavior { private final static Method hiddenFieldGetter; static { try { hiddenFieldGetter = Form.class.getDeclaredMethod

Re: is there some Ajax behavior updating only a component internal state/data ?

2010-04-23 Thread Joseph Pachod
Igor Vaynberg wrote: there is ajaxformsubmitting behavior which will update the entire form -igor thanks however, that's not exactly my need, being just recording the user input (not to loose it) without validating. Is there no way around, like a hook from Ajax to act only on some compone

Re: is there some Ajax behavior updating only a component internal state/data ?

2010-04-23 Thread Igor Vaynberg
there is ajaxformsubmitting behavior which will update the entire form -igor On Fri, Apr 23, 2010 at 8:01 AM, Joseph Pachod wrote: > hi > > I just stumbled upon that AjaxFormComponentUpdatingBehavior directly updates > the backing model, providing the component validates itself. > > This was qui

is there some Ajax behavior updating only a component internal state/data ?

2010-04-23 Thread Joseph Pachod
hi I just stumbled upon that AjaxFormComponentUpdatingBehavior directly updates the backing model, providing the component validates itself. This was quite unexpected. Indeed, if I've two RequiredTextFields with one valid and the other not, submitting this form won't update the backing model