Wicket 6 / Ajax: Call Java component from JavaScript and retreive value
I posted a question on StackOverflow on how I can receive a callback value from a Java component using Ajax: http://stackoverflow.com/questions/16527463/wicket-6-ajax-call-java-component-from-javascript-and-retreive-value Any help on this would be very appreciated since I am stuck on this one! Thank you, Rafael -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Ajax-Call-Java-component-from-JavaScript-and-retreive-value-tp4658754.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
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
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
setRequired(true) without required-validator
Is there a way to ungo the validator that checks for a required field when I e.g. reqistered a String-Length-Validator? I feel that the String-Length-Validator is more verbose than the Required-Validator that Wicket adds by itself and I'd like the String-Length-Validator to send its error message instead when a user did not enter anything. Setting setRequired(false) unfortunately deactivates any validaton and not only the Required-Validator. Thanks for help! Best, Rafael -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setRequired-true-without-required-validator-tp4651929.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