[ http://issues.apache.org/jira/browse/WICKET-12?page=comments#action_12456358 ] Johan Compagner commented on WICKET-12: ---------------------------------------
no this would be a very nice feature so why just close it? Not all submits are ajax. You just want to show that dialog anytime you want. Why must it be an ajax call to begin with. And i don't get why everybody is saying, that we should do it without javascript?? Why? What i want is just sent the javascript an ajax request does to show the modal dialog with the complete page itself. That seems to me that it has to be simple. Maybe only the question is when to invoke it (body onload?) So if i do in a normal form.submit or link klik or what ever, it doesn't matter. modaldialog.setVisible(true) (or what every the call is) an header contribution must insert the 'exact same' javascript as it would sent for an ajax request in the page. So when the page is loaded that script is executed and the modal dialog is shown. > open Modal Window without AjaxRequestTarget > ------------------------------------------- > > Key: WICKET-12 > URL: http://issues.apache.org/jira/browse/WICKET-12 > Project: Wicket > Issue Type: Improvement > Components: wicket > Affects Versions: 1.2.2 > Reporter: J.W. Janssen > > Wicket 1.2.2 included a new Modal Window component. However, this component > can only be used with a valid AjaxRequestTarget. It would be useful if Modal > Windows could be opened programmatically at any time without an > AjaxRequestTarget. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira