Hi Timo,

You are right!
Looking closer at the code I see that it just makes some additional work
for TextField and TextArea.

Thanks!


On Sat, 2008-09-06 at 21:37 +0300, Timo Rantalaiho wrote:
> On Sat, 06 Sep 2008, Martin Grigorov wrote:
> > OnChangeAjaxBehavior applies only to AbstractTextComponent. Such
> > components are: TextField and TextArea.
> > HiddenField is not!
> 
> Hmm... not exactly. OnChangeAjaxBehavior is an 
> AjaxFormComponentUpdatingBehavior, bound to onchange 
> Javascript event, with some textcomponent-specific tuning 
> (it reacts also to mouse cut and paste, and disables 
> browser autocompletion, because it would not detect input 
> produced by it). So it works e.g. with DropDownChoice as 
> well.
> 
> I think that the problem is more that the event from the 
> hidden textfield is not fired, in which your solution
> 
> > function change(){
> >     var change = document.forms[0].changed.value;
> >             if(change != true) {
> >                     document.forms[0].changed.value = true;
> >                     document.forms[0].changed.myevent();
> >             }
> >     }
> > }
> 
> should help.
> 
> Best wishes,
> Timo
> 


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

Reply via email to