Hello, Sorry to come back with this item, but I can't figure out how to set focus on a form element when opening a ModalWindow (iframe version).
I tried to use target.focusComponent() within the calling page, but as components are created inside the called page, I can't have the right focusComponent() parameter. I also tried the FocusBehavior() class found on the wiki, but it works only for regular forms, not Ajax. I finally tried some javascript stuff within my called html page (something like frames[0].document.forms[0].elements[1].focus();), but this don't work bacause the iframe is not ready when my javascript is called. Does somebody knows how to set focus on my first form field in my modal window ? Best regards, Bernard -- View this message in context: http://n4.nabble.com/set-focus-on-a-field-when-opening-a-ModalWindow-tp1989918p1989918.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