When I klick into the open ModalWindow, the ModalWindow taktes the focus and the opening link's onClick isn't called anymore. How can I manage to set the Focus at the ModalWindow?
-----Ursprüngliche Nachricht----- Von: Stefan Lindner [mailto:lind...@visionet.de] Gesendet: Sonntag, 15. November 2009 22:13 An: users@wicket.apache.org Betreff: Firefox: Hitting enter button in ModalWindow I have an AjaxLink HTML: <a wicket:id="link"><img....></a> JAVA: new AjaxLink<MyClass>("link", model){ @Override public void onClick(AjaxRequestTarget target) { // open a ModalWindow } } That opens a ModalWindow. The ModalWindow has a Page as it#s content. When the model window is displayed and I press the enter key, the AjaxLink's onClick method is calles again. This results in another ModalWindow to show up and so on. Of course I could save the ModalWindow#s state (open or not) and do something like JAVA: new AjaxLink<MyClass>("link", model){ @Override public void onClick(AjaxRequestTarget target) { if (!windowIsOpen) // open a ModalWindow } } But isn't there a better solution? This happens only in Firefox. Not in IE or Chrome oder Safari. Stefan --------------------------------------------------------------------- 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