Re: Wicket Behavior triggered by Ajax
This does not seem to work, I tried the jQuery command though and with a simple Javascript statement, it seems to work as when I add by an attribute modifier: onclick="alert("test");" The content of my onchange event looks like this and cannot be triggered (the Ajax debug does not show any debug either: wicketThrottler .throttle( 'filterField', 500, function() { if (function() { return Wicket.$('filterText36a') != null; }.bind(this)()) { Wicket.showIncrementally('ajaxIndicator'); } var wcall = wicketAjaxPost( './search?19-1.IBehaviorListener.0-ticketTable-noRefreshTopToolbars-toolbars-98-searchHeader-9-filterField-filterText', wicketSerialize(Wicket.$('filterText36a')), function() { ; Wicket.hideIncrementally('ajaxIndicator'); }.bind(this), function() { ; Wicket.hideIncrementally('ajaxIndicator'); }.bind(this), function() { if (!function() { return Wicket.$('filterText36a') != null; }.bind(this)()) { Wicket.hideIncrementally('ajaxIndicator'); } return Wicket.$('filterText36a') != null; }.bind(this)); }.bind(this)); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Behavior-triggered-by-Ajax-tp4652238p4652289.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Behavior triggered by Ajax
Hi, After updating the content of the text field you can call jQuery("#textFieldId").triggerHandler("change"). P.S. Great choice of an email provider! ;-) On Fri, Sep 21, 2012 at 6:13 PM, raphw wrote: > I have a general problem with my application: > > I have attache an Ajax OnChangeBehavior to a text field which updates > another component whenever a user edits its value. Now I have another > component which again updates the text fields value by a prepared collection > of values by another Ajax event. My problem is: I would like to chain these > Ajax events. That means that I want the text component's Ajax event to be > trigger no matter whether the user change the input directly or indirectly > via making a selection in the other Ajaxified component. > > How can this be done? Thank you. Best, Rafael > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Wicket-Behavior-triggered-by-Ajax-tp4652238.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket Behavior triggered by Ajax
I have a general problem with my application: I have attache an Ajax OnChangeBehavior to a text field which updates another component whenever a user edits its value. Now I have another component which again updates the text fields value by a prepared collection of values by another Ajax event. My problem is: I would like to chain these Ajax events. That means that I want the text component's Ajax event to be trigger no matter whether the user change the input directly or indirectly via making a selection in the other Ajaxified component. How can this be done? Thank you. Best, Rafael -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Behavior-triggered-by-Ajax-tp4652238.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org