Re: WiQuery Dialog when used with Ajax

2010-11-27 Thread guydog28
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

Re: WiQuery broken by adding component to AjaxRequestTarget

2010-12-03 Thread guydog28
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

Re: WiQuery broken by adding component to AjaxRequestTarget

2010-12-03 Thread guydog28
Additional supporting details: from code: @Override public void onClick(AjaxRequestTarget target) { viewReqModal.setModelObject(requirementService.find(66L)); target.addComponent(viewReqModal);

Re: WiQuery broken by adding component to AjaxRequestTarget

2010-12-04 Thread guydog28
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:

How to listen for CHILD ajax form submits

2010-12-13 Thread guydog28
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

Re: How to listen for CHILD ajax form submits

2010-12-14 Thread guydog28
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

Re: How to listen for CHILD ajax form submits

2010-12-16 Thread guydog28
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: