[Wicket-user] SubmitLink to open a pop-up

2007-01-25 Thread Marc-Andre Houle
I though I had found the correct solution when I have seen a pop-up button in the linkomatic example ( http://www.wicket-library.com/wicket-examples/linkomatic). But, it was nearly only a button with a BookmarkablePageLink. Right now, I want a SubmitLink to open up a pop-up after some

Re: [Wicket-user] SubmitLink to open a pop-up

2007-01-25 Thread Igor Vaynberg
create the url to the popup using requestcycle.urlfor and then output javascript that will open the popup using window.open -igor On 1/25/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: I though I had found the correct solution when I have seen a pop-up button in the linkomatic example

Re: [Wicket-user] SubmitLink to open a pop-up

2007-01-25 Thread Marc-Andre Houle
It make sense, but I need the textField value before calling the javascript since there will be a page paramters to add. I'm not sure I understand how I'm going to make that so it can be done correctly... Marc On 1/25/07, Igor Vaynberg [EMAIL PROTECTED] wrote: create the url to the popup

Re: [Wicket-user] SubmitLink to open a pop-up

2007-01-25 Thread Igor Vaynberg
class popperupper extends abstractbehavior implements iheadercontributor { // some logic to only output the script once } button { onsubmit() { TextField tf=; String value=tf.getModelObject(); add(new popperupper()); }} -igor On 1/25/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: It

Re: [Wicket-user] SubmitLink to open a pop-up

2007-01-25 Thread Marc-Andre Houle
This seem's good but not exactly what I wanted. Too complicated and it make a refresh of the page (I used some ajax and then, it does not reload exactly the same.) I continued searching and find that I could do this and since it work fine, why not : popupSettings.setTarget (href + +

Re: [Wicket-user] SubmitLink to open a pop-up

2007-01-25 Thread Igor Vaynberg
i was under the impression that you wanted to open the new page _after_ the form has been submitted. whatever, if it works for you then good! -igor On 1/25/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: This seem's good but not exactly what I wanted. Too complicated and it make a refresh of