Hi! 2007/11/4, Matej Knopp <[EMAIL PROTECTED]>: > > Not yet, and I'm not sure I'm going to soon. Supporing modal window in > iframe might be too big change for 1.3, because of they way modal > window internally works.
Ok. Btw. you example is broken, because you load page from > wicket-library.com, which is different domain than where the iframe > is. That will not work at all, since it would be cross-domain > scripting, which browsers don't allow. We are studying if we could embed content from a wicket application (Site A) to another application (Site B) in different domain using an IFrame. Are you saying that we absolute should not try to do that? The IFrame opportunity is studied because Site B does not have a portal platform nor a WSRP support. And other reason is that the owner of Site B does not want to code any web UI code related to the application and there is a business need to have the new features of the wicket application available on Site B immediately when ever the application is updated. So this would make anykind of proxying or "remote API" based solutions difficult. There would be no need to communicate between the applications, just to visually embed the wicket application inside one page in site B. As far as we have tested the Closing of the ModalWindow is the only thing that has not worked in this setup. Everything else seems to work fine. We have tought that it would be considered as "cross site scripting" only if the Wicket Ajax components would try to refer to dom objects of site B. And we have no intention of doing so intentionally. Could that possibly be the reason why the ModalWindow does not close when used through an IFrame? Perhaps it tries to refer to the owner window by using HTMLdocument.parentor something like that? We could perhaps change the ModalWindow to something else that works in our case, and avoid that problem, but would you still say that we absolutely should not try this kind of setup although rest of the application seems to work through the IFrame? I would be very grateful to hear your opinions on this! DM -Matej > > On 11/4/07, Deepak Mahavishnu <[EMAIL PROTECTED]> wrote: > > Hi Matej! > > Have you been able to reproduce this problem? > > DM > > > > 2007/11/1, Deepak Mahavishnu <[EMAIL PROTECTED]>: > > > > > > Hi Matej! > > > And thanks for a quick response! > > > > > > I opened a jira issue related to this. The quick start is very > straight > > > forward: > > > > > > Just create a html page with this source: > > > > > > <html> > > > <body> > > > <iframe src=" > > > http://www.wicket-library.com/wicket-examples/ajax/modal-window.1" > > > width="100%" height="100%"></iframe> > > > </body> > > > </html> > > > > > > And then open "Show modal dialog with panel" and try to close the > dialog. > > > > > > Mahavishnu > > > > > > 2007/11/1, Matej Knopp <[EMAIL PROTECTED]>: > > > > > > > > The modal window probably won't work well when paced in a page that > is > > > > loaded in iframe. Still, if you can provide a quickstart assigned to > a > > > > JIRA entry I will take a look if there is a quick fix for your > > > > problem. > > > > > > > > -Matej > > > > > > > > On 11/1/07, Deepak Mahavishnu <[EMAIL PROTECTED]> wrote: > > > > > Hello! > > > > > > > > > > I'm doing some POC testing to find out how a wicket application > could > > > > be > > > > > used through an IFrame and noticed that closing of a ModalWindow > > > > fails. > > > > > > > > > > My setup: > > > > > > > > > > Application A: > > > > > -a dummy html page that has an IFrame > > > > > -the contents of the IFrame is requested from Application B > > > > > <iframe src="http://localhost:8080/mywicketapp/app/" width="100%" > > > > > height="500"></iframe> > > > > > > > > > > Application B: > > > > > -a Wicket application that uses a ModalWindow > > > > > -deployed to tomcat: http://localhost:8080/mywicketapp/ > > > > > > > > > > > > > > > Problem: > > > > > The ModalWindow is not closed when OK ( or Cancel ) button is > clicked > > > > when > > > > > Application B is used throug IFrame of Application A. > > > > > OK button performs the actual action (in my case deletes an item > from > > > > a > > > > > list) but is not closed after the execution of the action. > > > > > > > > > > Closing of the ModalWindow works normally when Application B is > not > > > > used > > > > > through an IFrame. > > > > > > > > > > Any suggestions how this could be solved? Or is the usage through > an > > > > IFrame > > > > > a bad idea from start? > > > > > > > > > > Any help is appreciated! > > > > > > > > > > Mahavishnu > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > 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] > >
