I have a web Page with a panel. When I click a ajax button, the panel is replace. In the new panel the javaScripts functions doesn't work. Why that happened? What am I missing? Here is the code
the webpage html <head> <script language="JavaScript1.2" src="views/js/accordion.js"></script> </head> <body> <div class="quotPan2 bg_gray_plane" wicket:id="CreateQuotePanel" ></div> </body> here the submit function of the ajaxButton : add(new AjaxButton("CreateQuoteButton", new ResourceModel("CreateQuoteButton")){ public void onSubmit(AjaxRequestTarget target, Form form){ Panel panel = this.findParent(CreateQuotePanel.class); Panel secondPanel = new EditQuotePanel(panel.getId(),properties); secondPanel.setOutputMarkupId(true); panel.replaceWith(secondPanel); panel = secondPanel; target.addComponent(panel); } }); The javaScriptfunctions doesn't work only in the component panel, in the rest of the page, it works normally! I suspect that I do something wrong in the replacement I hav An -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/replace-panel-problems-tp2221878p2221878.html Sent from the Wicket - User 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