Wicket extensions contains a ModalWindow object. In order to open it, you call the show(AjaxRequestTarget) method.
We want to call this from within Form.onSubmit(), the problem is, how do we get hold of a AjaxRequestTarget object? What can we add to the form that will give us this capability? Here is the use case: Wicket adds javascript to the page which calls a function which calls an activeX object and places the return value from the activeX call in a field. The function then does a form submit. From the onSumit we can pick up the value in the field, therefore we know what the actveX returned. Great. But under some circumstances we then want to open the dialog. For that we need a AjaxRequestTarget. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Getting-an-AjaxRequestTarget-from-within-a-Form-onSubmit-tp3331336p3331336.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