thank you igor, you saved my project! after using a link with popupsettings instead using a homebrewed resquestcycle.urlFor-url it works. (a speaking exception would have helped...)
thank you igor.vaynberg wrote: > > make sure you are opening your popup in a different pagemap > > -igor > > > On 11/2/07, pixotec <[EMAIL PROTECTED]> wrote: >> >> I'm developing a CMS in wicket and have a selfmade wysiwyg textarea in >> the >> page. >> when clicking on "insert image" an image dialog is opened in a new >> window. >> the dialog is a wicket page. >> I provide the url for the dialog in the textarea page by this >> (shortened): >> >> CharSequence charSequence = RequestCycle.get().urlFor(new >> DialogImagePage(settings)); >> js.append("var dialogImageUrl='" + charSequence.toString() + "';\n"); >> add(new StringHeaderContributor(js.toString())); >> >> the source code of the calling page is then: >> >> <?xml version='1.0' encoding='UTF-8'?> >> >> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> >> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> >> <head> >> ... >> <script type="text/javascript"> >> <!--/*--><![CDATA[/*><!--*/ >> var dialogImageUrl='/kms/app/?wicket:interface=:16::'; >> /*-->]]>*/ >> </script> >> ... >> <script type="text/javascript"> >> <!-- >> function openImageDialog() { >> var dialog = window.open(dialogImageUrl, "Image", >> "status=no,modal=yes,width=700,height=550"); >> } >> --> >> ... >> <script type="text/javascript" > >> <!--/*--><![CDATA[/*><!--*/ >> if (window.name=='') { >> window.location="/kms/app/?wicket:interface=:14::INewBrowserWindowListener"; >> } >> /*-->]]>*/ >> </script> >> ... >> </head> >> >> <body> >> ... >> <td><img width="25" height="24" title="Insert image" >> wicket:id="btnImage" >> onclick="openImageDialog();" onmouseup="drawButtonDown(this);" >> src="/kms/app/resources/wicket.extensions.markup.html.form.wysiwyg.WysiwygTextarea/res/btnImage_up.gif" >> border="0" alt="Insert image" id="btnImage"/></td> >> ... >> </body> >> </html> >> >> >> after closing the dialog window (using javascript's window.close() or a >> PopupCloseLink) the dialog window is closed. >> >> >> When I click then on "save" in the calling page containing the textarea I >> always get a "Page expired". >> Why? >> >> (even doing a getPageSettings().setAutomaticMultiWindowSupport(true); in >> my >> application did not help...) >> -- >> View this message in context: >> http://www.nabble.com/Get-Page-expired-after-closing-javascript-opened-window-%28containing-a-wicket-page%29-tf4737168.html#a13546851 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Get-Page-expired-after-closing-javascript-opened-window-%28containing-a-wicket-page%29-tf4737168.html#a13586488 Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]