replace the hard-coded window.open with window.showModalDialog or some other javascript method that determines the size and location of the popup relative to the opener.
Johan Compagner wrote: > just curious why do you want to extend it? what do you need? > > johan > > > On 11/14/06, *Nili Adoram* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > In version 1.2.2 is it still cumbersome to extend PopupSettings. > all fields are private (windowName, top, left etc.) with no > getters, as > well as flagToString(). > > -- Nili > > Eelco Hillenius wrote: > >> I'm having trouble with porting this code into wicket. For the > first > >> time when one clicks the "..." button, modal dialog comes up. > For the > >> following clicks, IE opens up both a new window and the modal > dialog > >> with the same contents. > >> With FF it works as expected. > >> > >> I suspect, it has something to do with pagemaps or versioning, > but how > >> could I know, I'm new to wicket world. Please, help me. > >> > > > > Could you try with the latest Wicket version from branch wicket-1.x? > > We just removed a redundant check for page maps that was a problem > > with frames; that might be a problem here too. > > > > > >> BTW, in order to make a different javascript code I copy-pasted > entire > >> content of PopupSettings and made a new getPopupSettings > function. Is > >> there other way around? > >> > > > > Kind of the same, but you don't have to copy the whole class if you > > extend. This: > > > > PopupSettings popupSettings = new MyPopupSettings( > PageMap.forName("popup")) { > > public String getPopupJavaScript() { > > // return your custom javascript here > > } > > } > > > > Eelco > > > > > ------------------------------------------------------------------------- > > > Using Tomcat but need to do more? Need to support web services, > security? > > Get stuff done quickly with pre-integrated technology to make > your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on > Apache Geronimo > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> > > _______________________________________________ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > <mailto:Wicket-user@lists.sourceforge.net> > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > <mailto:Wicket-user@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > ------------------------------------------------------------------------ > > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user