Re: Ajax updating panel inside ModalWindow
Could you provide a quick start reproducing this issue? Le 8 avr. 2013 23:20, "jarnis" a écrit : > I have tried the ModalWindow both inside and outside an enclosing form, > with > no difference. I also tried to put updating behavior in the onClick method > of an AjaxLink (just updating a counter and adding the div showing the > value > to the AjaxRequestTarget) and it still does not update the modal window > content. If the modal window is closed and reopened, the updated value of > the counter is shown correctly. > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Ajax-updating-panel-inside-ModalWindow-tp4657829p4657831.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: Ajax updating panel inside ModalWindow
I have tried the ModalWindow both inside and outside an enclosing form, with no difference. I also tried to put updating behavior in the onClick method of an AjaxLink (just updating a counter and adding the div showing the value to the AjaxRequestTarget) and it still does not update the modal window content. If the modal window is closed and reopened, the updated value of the counter is shown correctly. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-updating-panel-inside-ModalWindow-tp4657829p4657831.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: Ajax updating panel inside ModalWindow
You're probably not wrapping the modal window in a Form, please read ModalWindow's javadoc. Sven On 04/08/2013 10:38 PM, jarnis wrote: Hey Guys I'm using a panel inside wicket's native ModalWindow. The panel contains a form with an AjaxSubmitLink. The onSubmit method of the form does some processing (reading an submitted file into a BufferedImage component) and then adds some components to the AjaxRequestTarget. The problem is that the added components are not updated. I have tried adding the form's containing div, the form itself as well as single components (a label and an image component) to the AjaxRequestTarget, without any luck. A debugger confirms that the onSubmit code is executed correctly and that the components are added to the AjaxRequestTarget as expected. If I close the ModalWindow and open it again (calling it's show() method, the components I tried to update in the submit are now showing their updated content. If I add the panel, that I use as content for the modal window, directly to a div on the enclosing page (or enclosing panel) it is updated as expected on submit. Somehow the fact that it is showing inside the ModalWindow prevents the ajax updating from taking effect. I am using Wicket 6.6.0 (also tried downgrading to 6.0.0 and 6.5.0, same result). If it makes any difference, the application runs inside a Jetty 8 server. I assume that I'm using the ModalWindow in a wrong way somehow, but I have no idea what I could possibly be doing wrong. Any suggestions are very welcome. Thanks in advance, Jarnis -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-updating-panel-inside-ModalWindow-tp4657829.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Ajax updating panel inside ModalWindow
Hey Guys I'm using a panel inside wicket's native ModalWindow. The panel contains a form with an AjaxSubmitLink. The onSubmit method of the form does some processing (reading an submitted file into a BufferedImage component) and then adds some components to the AjaxRequestTarget. The problem is that the added components are not updated. I have tried adding the form's containing div, the form itself as well as single components (a label and an image component) to the AjaxRequestTarget, without any luck. A debugger confirms that the onSubmit code is executed correctly and that the components are added to the AjaxRequestTarget as expected. If I close the ModalWindow and open it again (calling it's show() method, the components I tried to update in the submit are now showing their updated content. If I add the panel, that I use as content for the modal window, directly to a div on the enclosing page (or enclosing panel) it is updated as expected on submit. Somehow the fact that it is showing inside the ModalWindow prevents the ajax updating from taking effect. I am using Wicket 6.6.0 (also tried downgrading to 6.0.0 and 6.5.0, same result). If it makes any difference, the application runs inside a Jetty 8 server. I assume that I'm using the ModalWindow in a wrong way somehow, but I have no idea what I could possibly be doing wrong. Any suggestions are very welcome. Thanks in advance, Jarnis -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-updating-panel-inside-ModalWindow-tp4657829.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