Re: [Wicket-user] popups

2006-11-02 Thread Alex Parvulescu
Thaks a lot,Igor!it works very nice ;)one thing: the way it works for metarget.addJavascript(window.opener.location='   + urlFor(opener.getPageMap(), MyPage.class
, null)   + ');and I came upon a funny thing:it's not enough to just close the popup window by _javascript_: target.addJavascript(window.close(););I need to refresh it so it will actually close
 target.addJavascript(window.location.reload(true););I am on Ubuntu 6.06,but i think its a Firefox thingAnyway,thanks again.AlexOn 11/1/06, 
Igor Vaynberg [EMAIL PROTECTED] wrote:
On 11/1/06, Alex Parvulescu 
[EMAIL PROTECTED] wrote:
Hello,I have a popup with a form.A simple ok/cancel thing.are you using popupsettings? make sure you are doing new PopupSetings(PageMap.forName(mypopuppagemap)) so the popup page doesnt expire any pages out of the browser window that opened the popup.
i have been doing some _javascript_ tricks,but the redirect is giving me some headaches.
you will have to be a bit more specific :)
(this is for closing the current popup window,and refreshing the
'parent' window,so i can actually see what's been changed in the
popup-form.)add(new AjaxSubmitButton(submit, this) {protected void onSubmit(AjaxRequestTarget target, Form form) { target.addJavascript(window.opener.location.reload


(true);); target.addJavascript(window.close();); target.addJavascript(window.location.reload(true););}   });


Any ideas?what i need to do is,if the user clicks ok - i need to redirect to a different page,else - on cancel - just close the popup.
class MyPopup extends Page { MyPopup(final Page opener) {...add(new AjaxSubmitButton(submit, this) {protected void onSubmit(AjaxRequestTarget target, Form form) {
 target.addJavascript(window.close(););// remove the popup from the pagemap since we are closing the window anywaysgetPage().getPageMap().remove();// go to the new page in the parent window
// the destination page must be created in the opener's pagemapPage destination=new DestinationPage(opener.getPageMap());target.addJavascript(window.location='+urlFor(destination)+');

}   });
maybe some changes in wicket so the popups would be controlled better,as i see it now,i have no controll over the parent page once the popup is closed,or 'closing'.
it depends on how thick a wrapper we want to make wicket around http. i think in this area it should be as thin as possible, like it is now, because this is getting into shady waters. there are a lot of things you might want to do and we are not really in the business of generating tons of different _javascript_.
i think it is easy enough to do what you want right now without the framework having to get involved. you were almost on the right track, just have to remember that you have to deal with different pagemaps when popping up windows.
-igorI am using wicket 1.2.1
Thanks,Alex

-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=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list

Wicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] popups

2006-11-02 Thread Igor Vaynberg
yeah, if you take a look at PopupCloseLink it does exactly that, and remove the page from the pagemap for you. so you might want to subclass that instead.-igorOn 11/2/06, 
Alex Parvulescu [EMAIL PROTECTED] wrote:
Thaks a lot,Igor!it works very nice ;)one thing: the way it works for metarget.addJavascript(window.opener.location='   + urlFor(opener.getPageMap(), MyPage.class

, null)   + ');and I came upon a funny thing:it's not enough to just close the popup window by _javascript_: target.addJavascript(window.close(););I need to refresh it so it will actually close
 target.addJavascript(window.location.reload(true););I am on Ubuntu 6.06,but i think its a Firefox thingAnyway,thanks again.Alex
On 11/1/06, 
Igor Vaynberg [EMAIL PROTECTED] wrote:

On 11/1/06, Alex Parvulescu 
[EMAIL PROTECTED] wrote:
Hello,I have a popup with a form.A simple ok/cancel thing.are you using popupsettings? make sure you are doing new PopupSetings(PageMap.forName(mypopuppagemap)) so the popup page doesnt expire any pages out of the browser window that opened the popup.
i have been doing some _javascript_ tricks,but the redirect is giving me some headaches.
you will have to be a bit more specific :)

(this is for closing the current popup window,and refreshing the
'parent' window,so i can actually see what's been changed in the
popup-form.)add(new AjaxSubmitButton(submit, this) {protected void onSubmit(AjaxRequestTarget target, Form form) { target.addJavascript(window.opener.location.reload



(true);); target.addJavascript(window.close();); target.addJavascript(window.location.reload(true););}   });



Any ideas?what i need to do is,if the user clicks ok - i need to redirect to a different page,else - on cancel - just close the popup.
class MyPopup extends Page { MyPopup(final Page opener) {...add(new AjaxSubmitButton(submit, this) {protected void onSubmit(AjaxRequestTarget target, Form form) {
 target.addJavascript(window.close(););// remove the popup from the pagemap since we are closing the window anywaysgetPage().getPageMap().remove();// go to the new page in the parent window
// the destination page must be created in the opener's pagemapPage destination=new DestinationPage(opener.getPageMap());target.addJavascript(window.location='+urlFor(destination)+');


}   });
maybe some changes in wicket so the popups would be controlled better,as i see it now,i have no controll over the parent page once the popup is closed,or 'closing'.
it depends on how thick a wrapper we want to make wicket around http. i think in this area it should be as thin as possible, like it is now, because this is getting into shady waters. there are a lot of things you might want to do and we are not really in the business of generating tons of different _javascript_.
i think it is easy enough to do what you want right now without the framework having to get involved. you were almost on the right track, just have to remember that you have to deal with different pagemaps when popping up windows.
-igorI am using wicket 1.2.1
Thanks,Alex

-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=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list


Wicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list

Wicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://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

[Wicket-user] popups

2006-11-01 Thread Alex Parvulescu
Hello,I have a popup with a form.A simple ok/cancel thing.what i need to do is,if the user clicks ok - i need to redirect to a different page,else - on cancel - just close the popup.i have been doing some _javascript_ tricks,but the redirect is giving me some headaches.
(this is for closing the current popup window,and refreshing the
'parent' window,so i can actually see what's been changed in the
popup-form.)add(new AjaxSubmitButton(submit, this) {protected void onSubmit(AjaxRequestTarget target, Form form) { target.addJavascript(window.opener.location.reload
(true);); target.addJavascript(window.close();); target.addJavascript(window.location.reload(true););}   });
Any ideas?maybe some changes in wicket so the popups would be controlled better,as i see it now,i have no controll over the parent page once the popup is closed,or 'closing'.I am using wicket 1.2.1
Thanks,Alex
-
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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] popups

2006-11-01 Thread Igor Vaynberg
On 11/1/06, Alex Parvulescu [EMAIL PROTECTED] wrote:
Hello,I have a popup with a form.A simple ok/cancel thing.are you using popupsettings? make sure you are doing new PopupSetings(PageMap.forName(mypopuppagemap)) so the popup page doesnt expire any pages out of the browser window that opened the popup.
i have been doing some _javascript_ tricks,but the redirect is giving me some headaches.
you will have to be a bit more specific :)(this is for closing the current popup window,and refreshing the
'parent' window,so i can actually see what's been changed in the
popup-form.)add(new AjaxSubmitButton(submit, this) {protected void onSubmit(AjaxRequestTarget target, Form form) { target.addJavascript(window.opener.location.reload

(true);); target.addJavascript(window.close();); target.addJavascript(window.location.reload(true););}   });

Any ideas?what i need to do is,if the user clicks ok - i need to redirect to a different page,else - on cancel - just close the popup.
class MyPopup extends Page { MyPopup(final Page opener) {...add(new AjaxSubmitButton(submit, this) {protected void onSubmit(AjaxRequestTarget target, Form form) {
 target.addJavascript(window.close(););// remove the popup from the pagemap since we are closing the window anywaysgetPage().getPageMap().remove();// go to the new page in the parent window
// the destination page must be created in the opener's pagemapPage destination=new DestinationPage(opener.getPageMap());target.addJavascript(window.location='+urlFor(destination)+');
}   });
maybe some changes in wicket so the popups would be controlled better,as i see it now,i have no controll over the parent page once the popup is closed,or 'closing'.
it depends on how thick a wrapper we want to make wicket around http. i think in this area it should be as thin as possible, like it is now, because this is getting into shady waters. there are a lot of things you might want to do and we are not really in the business of generating tons of different _javascript_.
i think it is easy enough to do what you want right now without the framework having to get involved. you were almost on the right track, just have to remember that you have to deal with different pagemaps when popping up windows.
-igorI am using wicket 1.2.1
Thanks,Alex

-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=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Popups on http://wicket.sf.net

2005-09-06 Thread Martijn Dashorst
All,

Does anybody experience nasty popup's and other ad like stuff on the
wicket frontpage? We use a page counter in order to track who came from
where (great way of finding new blog entries on Wicket), but that
counter has been taken over by an advertising company.

Apparently there have been reports of unwanted ads happening on the
pages using these counters. I'd like to confirm before I remove these
counters, as I use the counters on a daily basis.

Martijn