Re: How to listen for CHILD ajax form submits
Ernesto, I had thought of that. I was hoping to avoid the custom button/link route, but seeing as I haven't heard anything more elegant yet, I decided to go with it for now. Thanks for your input! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-listen-for-CHILD-ajax-form-submits-tp3086439p3092111.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: How to listen for CHILD ajax form submits
Anyone? Abstract: I have extended WiQuery Dialog with our own custom dialog. I want the MyDialog to know if any child components are a Form, being submitted via AJAX (AjaxFormSubmitBehavior). I need access to the AjaxRequestTarget created by that ajax form submit so I can append javascript to it or add components. I'm really hoping someone has a suggestion that I missed. This is a major blocker for us right now. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-listen-for-CHILD-ajax-form-submits-tp3086439p3087882.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
How to listen for CHILD ajax form submits
I have a panel. I cannot figure out a way to have this panel informed if any of its children happens to exectute an AjaxFormSubmittingBehavior form submit. Ideally, I'd like my panel to listen for this, and have access to the AjaxRequestTarget. Is there a reasonable way to do this? My panel does not define the child hierarchy, or where/if there is a form that will be submitted via ajax from within panel. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-listen-for-CHILD-ajax-form-submits-tp3086439p3086439.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: WiQuery broken by adding component to AjaxRequestTarget
For anyone following this, here is a link to the issue on the WiQuery site, where I have provided additional details and attached a sample project: http://code.google.com/p/wiquery/issues/detail?id=143 http://code.google.com/p/wiquery/issues/detail?id=143 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WiQuery-broken-by-adding-component-to-AjaxRequestTarget-tp3066621p3072774.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: WiQuery broken by adding component to AjaxRequestTarget
Additional supporting details: from code: @Override public void onClick(AjaxRequestTarget target) { viewReqModal.setModelObject(requirementService.find(66L)); target.addComponent(viewReqModal); viewReqModal.open(target); } Wicket AJAX Debug (the dialog has an accordion in it): As you can see with the EVALUATE statements at the end, the javascript you manually append to the target (dialog.open()) occurs before the WiQueryCoreHeaderContributor.renderPlugin jQuery statements. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WiQuery-broken-by-adding-component-to-AjaxRequestTarget-tp3066621p3071306.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: WiQuery broken by adding component to AjaxRequestTarget
More information: Looking at the wicket ajax debug, it appears that it is placing the javascript to open the dialog ahead of the $(#component).dialog(...) Basically, the plugin rendering javascript is being executed AFTER dialog.open(target), and therefore you never see it. Anything you add to target.appendJavascript (including dialog.open(target) which does this under the covers) will be executed prior to the plugin.render javascript. At least my understanding is that you can't open a dialog that isn't yet a dialog! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WiQuery-broken-by-adding-component-to-AjaxRequestTarget-tp3066621p3071233.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: WiQuery Dialog when used with Ajax
Ernesto, In the below snippet, sometimes it is not possible to ONLY include the content of the modal dialog in the ajax target. There are times where a parent of the dialog may be added to another AjaxRequestTarget (for some reason other than just updating the dialog window - maybe to update a list view that launches the modal). In this case, the Dialog is destroyed as is no longer displayed. Is there anything that can be done to resolve this so we don't have to work around the normal "if you add the parent to the target, the child will be updated" approach? Adding the parent in this case destroys the child. Ernesto Reinaldo Barreiro-4 wrote: > > > target.addComponent(content); > dialog.open(target); > > -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WiQuery-Dialog-when-used-with-Ajax-tp3009441p3061879.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