Re: updating table on main page after modal window is closed..
That's the example I was originally using, and I did everything like that but my ajax doesn't work upon return calling the webmarkupcontainer, but theirs does. So I don't understand what im doing wrong. Am I supposef to use a model when initializing the webmarkupcontainer? On Aug 22, 2013 6:53 AM, "Martin Grigorov-4 [via Apache Wicket]" < ml-node+s1842946n4661014...@n4.nabble.com> wrote: > > https://github.com/apache/wicket/blob/master/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/modal/ModalWindowPage.java?source=cc#L56 > > target.appendJavaScript("top.location.reload()"); > > > On Thu, Aug 22, 2013 at 2:43 PM, eaglei22 <[hidden > email]<http://user/SendEmail.jtp?type=node&node=4661014&i=0>> > wrote: > > > Thank you. Can you show me a simple example of how to pass > pagereference, > > and then update the webmarkupcontainer? Im not very good with > javascript. > > > > > > > > -- > > View this message in context: > > > http://apache-wicket.1842946.n4.nabble.com/updating-table-on-main-page-after-modal-window-is-closed-tp4660996p4661012.html > > Sent from the Users forum mailing list archive at Nabble.com. > > > > - > > To unsubscribe, e-mail: [hidden > > email]<http://user/SendEmail.jtp?type=node&node=4661014&i=1> > > For additional commands, e-mail: [hidden > > email]<http://user/SendEmail.jtp?type=node&node=4661014&i=2> > > > > > > > ------ > If you reply to this email, your message will be added to the discussion > below: > > http://apache-wicket.1842946.n4.nabble.com/updating-table-on-main-page-after-modal-window-is-closed-tp4660996p4661014.html > To unsubscribe from updating table on main page after modal window is > closed.., click > here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4660996&code=amNob2puYWNraTI2QGdtYWlsLmNvbXw0NjYwOTk2fC0xNDg1Mzk1ODY5> > . > NAML<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/updating-table-on-main-page-after-modal-window-is-closed-tp4660996p4661015.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: updating table on main page after modal window is closed..
https://github.com/apache/wicket/blob/master/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/modal/ModalWindowPage.java?source=cc#L56 target.appendJavaScript("top.location.reload()"); On Thu, Aug 22, 2013 at 2:43 PM, eaglei22 wrote: > Thank you. Can you show me a simple example of how to pass pagereference, > and then update the webmarkupcontainer? Im not very good with javascript. > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/updating-table-on-main-page-after-modal-window-is-closed-tp4660996p4661012.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: updating table on main page after modal window is closed..
Thank you. Can you show me a simple example of how to pass pagereference, and then update the webmarkupcontainer? Im not very good with javascript. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/updating-table-on-main-page-after-modal-window-is-closed-tp4660996p4661012.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: updating table on main page after modal window is closed..
Hi, On Thu, Aug 22, 2013 at 7:39 AM, eaglei22 wrote: > here > userPageFindUserModal.setWindowClosedCallback(new > ModalWindow.WindowClosedCallback() > { > public void onClose(AjaxRequestTarget target) > { > System.out.println("ssaIDLISTCON"); > userInformation = new WebMarkupContainer("userAttributeTable"); > userInformation.setOutputMarkupId(true); > addUserInformation("test", "Massey", "J", "1234512", "Enabled"); > target.add(userInformation); } }); > > When I close my modal window I want to update the contents of the calling > page... but it doesn't work.When I refresh the page however it works, but > the ajax isn't giving me access to the current page components.. How does > this work with a modal window? Is the target for the modal window? or for > the parent pages instance?Any ideas? Thanks! > If you use ModalWindow with a Panel content then it will work. If you use it with Page (iframe) content then the AjaxRequestTarget is for the page in the iframe. In this case you should pass PageReference got get access to the parent page and you should use JavaScript like "top.location.reload()" > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/updating-table-on-main-page-after-modal-window-is-closed-tp4660996.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 > >
updating table on main page after modal window is closed..
here userPageFindUserModal.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() { public void onClose(AjaxRequestTarget target) { System.out.println("ssaIDLISTCON"); userInformation = new WebMarkupContainer("userAttributeTable"); userInformation.setOutputMarkupId(true); addUserInformation("test", "Massey", "J", "1234512", "Enabled"); target.add(userInformation); } }); When I close my modal window I want to update the contents of the calling page... but it doesn't work.When I refresh the page however it works, but the ajax isn't giving me access to the current page components.. How does this work with a modal window? Is the target for the modal window? or for the parent pages instance?Any ideas? Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/updating-table-on-main-page-after-modal-window-is-closed-tp4660996.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