RE: [Wicket-user] popup button
Hi Eelco It did. Thanks :) -regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: 17. maj 2006 12:41 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] popup button Simpler than that. I just added this example to wicket-examples/link-o-matic: Java: PopupSettings popupSettings = new PopupSettings(PageMap.forName(popuppagemap)).setHeight(500).setWidth(500); add(new BookmarkablePageLink(popupButtonLink, Popup.class).setPopupSettings(popupSettings)); HTML: input type=submit wicket:id = popupButtonLink value=Click this button for a popup / The link actually attaches to the input tag. Like I said, it could attach to anything really, including buttons, table rows, etc. Hope this helps, Eelco On 5/17/06, Nino Wael [EMAIL PROTECTED] wrote: Ok, I think I need an example. I'll describe how I belive it works below please correct me if im wrong: html input type=submit value=This is my popup wicket:id=btnpop / a href=# wicket:id=poplinkpop?/link /html java PopupSettings popupSettings = new PopupSettings(PageMap .forName(popuppagemap), PopupSettings.MENU_BAR | PopupSettings.TOOL_BAR).setHeight(500).setWidth(500); BookmarkablePageLink mylink; mylink = new BookmarkablePageLink(popuplink, PopupInfo.class); mylink.setPopupSettings(popupSettings); mylink.setParameter(title, popTitle_omraade); mylink.setParameter(infotext, popText_omraade); Button openword = new Button(openword) { protected void onSubmit() { overide code} } openword.add(mylink); add(openword); /java -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius Sendt: on 17-05-2006 12:05 Til: wicket-user@lists.sourceforge.net Cc: Emne: Re: [Wicket-user] popup button Hi, You can use a Link with a PopupSpecification. And you can (or should be able to) actually attach a link to any tag, including a button tag. Eelco On 5/17/06, Nino Wael [EMAIL PROTECTED] wrote: Hi Was wondering if any body has an example on howto create a popup button? I've looked at the triggerbutton from the datepicker extension but that seems to be too complex for such a simple thing? I want it to run the onsubmit method on the popupbutton and after that it should make a popup, I tried using a normal button and a BookmarkablePageLink and calling the onClick event on the latter but as it is now the onClick event does notting(its also written in the documentation that it only implements onclick to satisfy interfaces). Regards Nino --- 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=kkid0709bid3057dat1642 ___ 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=kkid0709bid3057dat1642 ___ 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=lnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] popup button
Don't override the onclick method. Eelco On 5/18/06, Nino Wael [EMAIL PROTECTED] wrote: Im now using the Pagelink which has the nice onClick event, when the new page pops up its just a copy of the current page. And not the class I specified. Code: PageLink myReport = new PageLink(openword, PopupReport.class) { public void onClick() { // TODO Auto-generated method stub } }; Above code brings up a copy of the current page in the popup, but that's not what I've specified. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 18. maj 2006 10:35 To: wicket-user@lists.sourceforge.net Subject: RE: [Wicket-user] popup button Hi Eelco It did. Thanks :) -regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: 17. maj 2006 12:41 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] popup button Simpler than that. I just added this example to wicket-examples/link-o-matic: Java: PopupSettings popupSettings = new PopupSettings(PageMap.forName(popuppagemap)).setHeight(500).setWidth(500); add(new BookmarkablePageLink(popupButtonLink, Popup.class).setPopupSettings(popupSettings)); HTML: input type=submit wicket:id = popupButtonLink value=Click this button for a popup / The link actually attaches to the input tag. Like I said, it could attach to anything really, including buttons, table rows, etc. Hope this helps, Eelco On 5/17/06, Nino Wael [EMAIL PROTECTED] wrote: Ok, I think I need an example. I'll describe how I belive it works below please correct me if im wrong: html input type=submit value=This is my popup wicket:id=btnpop / a href=# wicket:id=poplinkpop?/link /html java PopupSettings popupSettings = new PopupSettings(PageMap .forName(popuppagemap), PopupSettings.MENU_BAR | PopupSettings.TOOL_BAR).setHeight(500).setWidth(500); BookmarkablePageLink mylink; mylink = new BookmarkablePageLink(popuplink, PopupInfo.class); mylink.setPopupSettings(popupSettings); mylink.setParameter(title, popTitle_omraade); mylink.setParameter(infotext, popText_omraade); Button openword = new Button(openword) { protected void onSubmit() { overide code} } openword.add(mylink); add(openword); /java -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius Sendt: on 17-05-2006 12:05 Til: wicket-user@lists.sourceforge.net Cc: Emne: Re: [Wicket-user] popup button Hi, You can use a Link with a PopupSpecification. And you can (or should be able to) actually attach a link to any tag, including a button tag. Eelco On 5/17/06, Nino Wael [EMAIL PROTECTED] wrote: Hi Was wondering if any body has an example on howto create a popup button? I've looked at the triggerbutton from the datepicker extension but that seems to be too complex for such a simple thing? I want it to run the onsubmit method on the popupbutton and after that it should make a popup, I tried using a normal button and a BookmarkablePageLink and calling the onClick event on the latter but as it is now the onClick event does notting(its also written in the documentation that it only implements onclick to satisfy interfaces). Regards Nino --- 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=kkid0709bid3057dat1642 ___ 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=kkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists
RE: [Wicket-user] popup button
But I need to do something when it is clicked.. Is there any other component I could use instead? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: 18. maj 2006 11:04 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] popup button Don't override the onclick method. Eelco On 5/18/06, Nino Wael [EMAIL PROTECTED] wrote: Im now using the Pagelink which has the nice onClick event, when the new page pops up its just a copy of the current page. And not the class I specified. Code: PageLink myReport = new PageLink(openword, PopupReport.class) { public void onClick() { // TODO Auto-generated method stub } }; Above code brings up a copy of the current page in the popup, but that's not what I've specified. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 18. maj 2006 10:35 To: wicket-user@lists.sourceforge.net Subject: RE: [Wicket-user] popup button Hi Eelco It did. Thanks :) -regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: 17. maj 2006 12:41 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] popup button Simpler than that. I just added this example to wicket-examples/link-o-matic: Java: PopupSettings popupSettings = new PopupSettings(PageMap.forName(popuppagemap)).setHeight(500).setWidth(500); add(new BookmarkablePageLink(popupButtonLink, Popup.class).setPopupSettings(popupSettings)); HTML: input type=submit wicket:id = popupButtonLink value=Click this button for a popup / The link actually attaches to the input tag. Like I said, it could attach to anything really, including buttons, table rows, etc. Hope this helps, Eelco On 5/17/06, Nino Wael [EMAIL PROTECTED] wrote: Ok, I think I need an example. I'll describe how I belive it works below please correct me if im wrong: html input type=submit value=This is my popup wicket:id=btnpop / a href=# wicket:id=poplinkpop?/link /html java PopupSettings popupSettings = new PopupSettings(PageMap .forName(popuppagemap), PopupSettings.MENU_BAR | PopupSettings.TOOL_BAR).setHeight(500).setWidth(500); BookmarkablePageLink mylink; mylink = new BookmarkablePageLink(popuplink, PopupInfo.class); mylink.setPopupSettings(popupSettings); mylink.setParameter(title, popTitle_omraade); mylink.setParameter(infotext, popText_omraade); Button openword = new Button(openword) { protected void onSubmit() { overide code} } openword.add(mylink); add(openword); /java -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius Sendt: on 17-05-2006 12:05 Til: wicket-user@lists.sourceforge.net Cc: Emne: Re: [Wicket-user] popup button Hi, You can use a Link with a PopupSpecification. And you can (or should be able to) actually attach a link to any tag, including a button tag. Eelco On 5/17/06, Nino Wael [EMAIL PROTECTED] wrote: Hi Was wondering if any body has an example on howto create a popup button? I've looked at the triggerbutton from the datepicker extension but that seems to be too complex for such a simple thing? I want it to run the onsubmit method on the popupbutton and after that it should make a popup, I tried using a normal button and a BookmarkablePageLink and calling the onClick event on the latter but as it is now the onClick event does notting(its also written in the documentation that it only implements onclick to satisfy interfaces). Regards Nino --- 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=kkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] popup button
super.onClick()On 5/18/06, Nino Wael [EMAIL PROTECTED] wrote: But I need to do something when it is clicked.. Is there any other component I could use instead?-Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Eelco HilleniusSent: 18. maj 2006 11:04To: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] popup buttonDon't override the onclick method.EelcoOn 5/18/06, Nino Wael [EMAIL PROTECTED] wrote: Im now using the Pagelink which has the nice onClick event, when the new page pops up its just a copy of the current page. And not the class I specified. Code: PageLink myReport = new PageLink(openword, PopupReport.class) { public void onClick() {// TODO Auto-generated method stub }}; Above code brings up a copy of the current page in the popup, but that's not what I've specified. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Nino Wael Sent: 18. maj 2006 10:35To: wicket-user@lists.sourceforge.netSubject: RE: [Wicket-user] popup button Hi Eelco It did. Thanks :) -regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] On Behalf Of Eelco Hillenius Sent: 17. maj 2006 12:41 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] popup button Simpler than that. I just added this example to wicket-examples/link-o-matic: Java: PopupSettings popupSettings = new PopupSettings(PageMap.forName(popuppagemap)).setHeight(500).setWidth(500); add(new BookmarkablePageLink(popupButtonLink, Popup.class).setPopupSettings(popupSettings)); HTML: input type=submit wicket:id = popupButtonLink value=Click this button for a popup / The link actually attaches to the input tag. Like I said, it could attach to anything really, including buttons, table rows, etc. Hope this helps, Eelco On 5/17/06, Nino Wael [EMAIL PROTECTED] wrote: Ok, I think I need an example. I'll describe how I belive it works below please correct me if im wrong: html input type=submit value=This is my popup wicket:id=btnpop / a href="" wicket:id=poplinkpop?/link /html java PopupSettings popupSettings = new PopupSettings(PageMap .forName(popuppagemap), PopupSettings.MENU_BAR | PopupSettings.TOOL_BAR).setHeight(500).setWidth(500); BookmarkablePageLink mylink; mylink = new BookmarkablePageLink(popuplink, PopupInfo.class); mylink.setPopupSettings(popupSettings); mylink.setParameter(title, popTitle_omraade); mylink.setParameter(infotext, popText_omraade); Button openword = new Button(openword) { protected void onSubmit() { overide code} } openword.add(mylink); add(openword); /java -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius Sendt: on 17-05-2006 12:05 Til: wicket-user@lists.sourceforge.net Cc: Emne: Re: [Wicket-user] popup button Hi, You can use a Link with a PopupSpecification. And you can (or should be able to) actually attach a link to any tag, including a button tag. EelcoOn 5/17/06, Nino Wael [EMAIL PROTECTED] wrote: Hi Was wondering if any body has an example on howto create a popup button? I've looked at the triggerbutton from the datepicker extension but that seems to be too complex for such a simple thing? I want it to run the onsubmit method on the popupbutton and after that it should make a popup, I tried using a normal button and a BookmarkablePageLink and calling the onClick event on the latter but as it is now the onClick event does notting(its also written in the documentation that it only implements onclick to satisfy interfaces). Regards Nino --- 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=kkid0709bid3057dat1642 ___ 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=kkid0709bid3057dat1642 ___ 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 htt
RE: [Wicket-user] popup button
Doh, im a little slow today. When overriding I just call the super.onclick :) This works fine:) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 18. maj 2006 11:55 To: wicket-user@lists.sourceforge.net Subject: RE: [Wicket-user] popup button But I need to do something when it is clicked.. Is there any other component I could use instead? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: 18. maj 2006 11:04 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] popup button Don't override the onclick method. Eelco On 5/18/06, Nino Wael [EMAIL PROTECTED] wrote: Im now using the Pagelink which has the nice onClick event, when the new page pops up its just a copy of the current page. And not the class I specified. Code: PageLink myReport = new PageLink(openword, PopupReport.class) { public void onClick() { // TODO Auto-generated method stub } }; Above code brings up a copy of the current page in the popup, but that's not what I've specified. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 18. maj 2006 10:35 To: wicket-user@lists.sourceforge.net Subject: RE: [Wicket-user] popup button Hi Eelco It did. Thanks :) -regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: 17. maj 2006 12:41 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] popup button Simpler than that. I just added this example to wicket-examples/link-o-matic: Java: PopupSettings popupSettings = new PopupSettings(PageMap.forName(popuppagemap)).setHeight(500).setWidth(500); add(new BookmarkablePageLink(popupButtonLink, Popup.class).setPopupSettings(popupSettings)); HTML: input type=submit wicket:id = popupButtonLink value=Click this button for a popup / The link actually attaches to the input tag. Like I said, it could attach to anything really, including buttons, table rows, etc. Hope this helps, Eelco On 5/17/06, Nino Wael [EMAIL PROTECTED] wrote: Ok, I think I need an example. I'll describe how I belive it works below please correct me if im wrong: html input type=submit value=This is my popup wicket:id=btnpop / a href=# wicket:id=poplinkpop?/link /html java PopupSettings popupSettings = new PopupSettings(PageMap .forName(popuppagemap), PopupSettings.MENU_BAR | PopupSettings.TOOL_BAR).setHeight(500).setWidth(500); BookmarkablePageLink mylink; mylink = new BookmarkablePageLink(popuplink, PopupInfo.class); mylink.setPopupSettings(popupSettings); mylink.setParameter(title, popTitle_omraade); mylink.setParameter(infotext, popText_omraade); Button openword = new Button(openword) { protected void onSubmit() { overide code} } openword.add(mylink); add(openword); /java -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius Sendt: on 17-05-2006 12:05 Til: wicket-user@lists.sourceforge.net Cc: Emne: Re: [Wicket-user] popup button Hi, You can use a Link with a PopupSpecification. And you can (or should be able to) actually attach a link to any tag, including a button tag. Eelco On 5/17/06, Nino Wael [EMAIL PROTECTED] wrote: Hi Was wondering if any body has an example on howto create a popup button? I've looked at the triggerbutton from the datepicker extension but that seems to be too complex for such a simple thing? I want it to run the onsubmit method on the popupbutton and after that it should make a popup, I tried using a normal button and a BookmarkablePageLink and calling the onClick event on the latter but as it is now the onClick event does notting(its also written in the documentation that it only implements onclick to satisfy interfaces). Regards Nino --- 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
Re: [Wicket-user] popup button
2 words: hot coffee :-)(I feel your pain, having stared at an input screen where the input fields were empty instead of filled with values from the database. Wrapping my loadable model in a compoundpropertymodel solved that one, but it took about half an hour) MartijnOn 5/18/06, Nino Wael [EMAIL PROTECTED] wrote: Doh, im a little slow today.When overriding I just call the super.onclick :)This works fine:)-Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Nino WaelSent: 18. maj 2006 11:55To: wicket-user@lists.sourceforge.netSubject: RE: [Wicket-user] popup buttonBut I need to do something when it is clicked.. Is there any other component I could use instead?-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Eelco Hillenius Sent: 18. maj 2006 11:04To: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] popup buttonDon't override the onclick method.Eelco On 5/18/06, Nino Wael [EMAIL PROTECTED] wrote: Im now using the Pagelink which has the nice onClick event, when the new page pops up its just a copy of the current page. And not the class I specified. Code: PageLink myReport = new PageLink(openword, PopupReport.class) { public void onClick() {// TODO Auto-generated method stub }}; Above code brings up a copy of the current page in the popup, but that's not what I've specified. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Nino Wael Sent: 18. maj 2006 10:35To: wicket-user@lists.sourceforge.netSubject: RE: [Wicket-user] popup button Hi Eelco It did. Thanks :) -regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] On Behalf Of Eelco Hillenius Sent: 17. maj 2006 12:41 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] popup button Simpler than that. I just added this example to wicket-examples/link-o-matic: Java: PopupSettings popupSettings = new PopupSettings(PageMap.forName(popuppagemap)).setHeight(500).setWidth(500); add(new BookmarkablePageLink(popupButtonLink, Popup.class).setPopupSettings(popupSettings)); HTML: input type=submit wicket:id = popupButtonLink value=Click this button for a popup / The link actually attaches to the input tag. Like I said, it could attach to anything really, including buttons, table rows, etc. Hope this helps, Eelco On 5/17/06, Nino Wael [EMAIL PROTECTED] wrote: Ok, I think I need an example. I'll describe how I belive it works below please correct me if im wrong: html input type=submit value=This is my popup wicket:id=btnpop / a href="" wicket:id=poplinkpop?/link /html java PopupSettings popupSettings = new PopupSettings(PageMap .forName(popuppagemap), PopupSettings.MENU_BAR | PopupSettings.TOOL_BAR).setHeight(500).setWidth(500); BookmarkablePageLink mylink; mylink = new BookmarkablePageLink(popuplink, PopupInfo.class); mylink.setPopupSettings(popupSettings); mylink.setParameter(title, popTitle_omraade); mylink.setParameter(infotext, popText_omraade); Button openword = new Button(openword) { protected void onSubmit() { overide code} } openword.add(mylink); add(openword); /java -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius Sendt: on 17-05-2006 12:05 Til: wicket-user@lists.sourceforge.net Cc: Emne: Re: [Wicket-user] popup button Hi, You can use a Link with a PopupSpecification. And you can (or should be able to) actually attach a link to any tag, including a button tag. EelcoOn 5/17/06, Nino Wael [EMAIL PROTECTED] wrote: Hi Was wondering if any body has an example on howto create a popup button? I've looked at the triggerbutton from the datepicker extension but that seems to be too complex for such a simple thing? I want it to run the onsubmit method on the popupbutton and after that it should make a popup, I tried using a normal button and a BookmarkablePageLink and calling the onClick event on the latter but as it is now the onClick event does notting(its also written in the documentation that it only implements onclick to satisfy interfaces). Regards Nino --- 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=kkid0709bid3057dat1642 ___ 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 Serv
Re: [Wicket-user] popup button
You can also use any link you want with the popup specification including something like Link(link) { onClick() { setRepsonsePage(new YourPage()); } } Eelco On 5/18/06, Nino Wael [EMAIL PROTECTED] wrote: But I need to do something when it is clicked.. Is there any other component I could use instead? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: 18. maj 2006 11:04 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] popup button Don't override the onclick method. Eelco On 5/18/06, Nino Wael [EMAIL PROTECTED] wrote: Im now using the Pagelink which has the nice onClick event, when the new page pops up its just a copy of the current page. And not the class I specified. Code: PageLink myReport = new PageLink(openword, PopupReport.class) { public void onClick() { // TODO Auto-generated method stub } }; Above code brings up a copy of the current page in the popup, but that's not what I've specified. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 18. maj 2006 10:35 To: wicket-user@lists.sourceforge.net Subject: RE: [Wicket-user] popup button Hi Eelco It did. Thanks :) -regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: 17. maj 2006 12:41 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] popup button Simpler than that. I just added this example to wicket-examples/link-o-matic: Java: PopupSettings popupSettings = new PopupSettings(PageMap.forName(popuppagemap)).setHeight(500).setWidth(500); add(new BookmarkablePageLink(popupButtonLink, Popup.class).setPopupSettings(popupSettings)); HTML: input type=submit wicket:id = popupButtonLink value=Click this button for a popup / The link actually attaches to the input tag. Like I said, it could attach to anything really, including buttons, table rows, etc. Hope this helps, Eelco On 5/17/06, Nino Wael [EMAIL PROTECTED] wrote: Ok, I think I need an example. I'll describe how I belive it works below please correct me if im wrong: html input type=submit value=This is my popup wicket:id=btnpop / a href=# wicket:id=poplinkpop?/link /html java PopupSettings popupSettings = new PopupSettings(PageMap .forName(popuppagemap), PopupSettings.MENU_BAR | PopupSettings.TOOL_BAR).setHeight(500).setWidth(500); BookmarkablePageLink mylink; mylink = new BookmarkablePageLink(popuplink, PopupInfo.class); mylink.setPopupSettings(popupSettings); mylink.setParameter(title, popTitle_omraade); mylink.setParameter(infotext, popText_omraade); Button openword = new Button(openword) { protected void onSubmit() { overide code} } openword.add(mylink); add(openword); /java -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius Sendt: on 17-05-2006 12:05 Til: wicket-user@lists.sourceforge.net Cc: Emne: Re: [Wicket-user] popup button Hi, You can use a Link with a PopupSpecification. And you can (or should be able to) actually attach a link to any tag, including a button tag. Eelco On 5/17/06, Nino Wael [EMAIL PROTECTED] wrote: Hi Was wondering if any body has an example on howto create a popup button? I've looked at the triggerbutton from the datepicker extension but that seems to be too complex for such a simple thing? I want it to run the onsubmit method on the popupbutton and after that it should make a popup, I tried using a normal button and a BookmarkablePageLink and calling the onClick event on the latter but as it is now the onClick event does notting(its also written in the documentation that it only implements onclick to satisfy interfaces). Regards Nino --- 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=kkid0709bid3057dat1642
[Wicket-user] popup button
Hi Was wondering if any body has an example on howto create a popup button? Ive looked at the triggerbutton from the datepicker extension but that seems to be too complex for such a simple thing? I want it to run the onsubmit method on the popupbutton and after that it should make a popup, I tried using a normal button and a BookmarkablePageLink and calling the onClick event on the latter but as it is now the onClick event does notting(its also written in the documentation that it only implements onclick to satisfy interfaces). Regards Nino
Re: [Wicket-user] popup button
Hi, You can use a Link with a PopupSpecification. And you can (or should be able to) actually attach a link to any tag, including a button tag. Eelco On 5/17/06, Nino Wael [EMAIL PROTECTED] wrote: Hi Was wondering if any body has an example on howto create a popup button? I've looked at the triggerbutton from the datepicker extension but that seems to be too complex for such a simple thing? I want it to run the onsubmit method on the popupbutton and after that it should make a popup, I tried using a normal button and a BookmarkablePageLink and calling the onClick event on the latter but as it is now the onClick event does notting(its also written in the documentation that it only implements onclick to satisfy interfaces). Regards Nino --- 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=lnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
SV: [Wicket-user] popup button
Ok, I think I need an example. I'll describe how I belive it works below please correct me if im wrong: html input type=submit value=This is my popup wicket:id=btnpop / a href=# wicket:id=poplinkpop?/link /html java PopupSettings popupSettings = new PopupSettings(PageMap .forName(popuppagemap), PopupSettings.MENU_BAR | PopupSettings.TOOL_BAR).setHeight(500).setWidth(500); BookmarkablePageLink mylink; mylink = new BookmarkablePageLink(popuplink, PopupInfo.class); mylink.setPopupSettings(popupSettings); mylink.setParameter(title, popTitle_omraade); mylink.setParameter(infotext, popText_omraade); Button openword = new Button(openword) { protected void onSubmit() { overide code} } openword.add(mylink); add(openword); /java -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius Sendt: on 17-05-2006 12:05 Til: wicket-user@lists.sourceforge.net Cc: Emne: Re: [Wicket-user] popup button Hi, You can use a Link with a PopupSpecification. And you can (or should be able to) actually attach a link to any tag, including a button tag. Eelco On 5/17/06, Nino Wael [EMAIL PROTECTED] wrote: Hi Was wondering if any body has an example on howto create a popup button? I've looked at the triggerbutton from the datepicker extension but that seems to be too complex for such a simple thing? I want it to run the onsubmit method on the popupbutton and after that it should make a popup, I tried using a normal button and a BookmarkablePageLink and calling the onClick event on the latter but as it is now the onClick event does notting(its also written in the documentation that it only implements onclick to satisfy interfaces). Regards Nino --- 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=kkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] popup button
Simpler than that. I just added this example to wicket-examples/link-o-matic: Java: PopupSettings popupSettings = new PopupSettings(PageMap.forName(popuppagemap)).setHeight(500).setWidth(500); add(new BookmarkablePageLink(popupButtonLink, Popup.class).setPopupSettings(popupSettings)); HTML: input type=submit wicket:id = popupButtonLink value=Click this button for a popup / The link actually attaches to the input tag. Like I said, it could attach to anything really, including buttons, table rows, etc. Hope this helps, Eelco On 5/17/06, Nino Wael [EMAIL PROTECTED] wrote: Ok, I think I need an example. I'll describe how I belive it works below please correct me if im wrong: html input type=submit value=This is my popup wicket:id=btnpop / a href=# wicket:id=poplinkpop?/link /html java PopupSettings popupSettings = new PopupSettings(PageMap .forName(popuppagemap), PopupSettings.MENU_BAR | PopupSettings.TOOL_BAR).setHeight(500).setWidth(500); BookmarkablePageLink mylink; mylink = new BookmarkablePageLink(popuplink, PopupInfo.class); mylink.setPopupSettings(popupSettings); mylink.setParameter(title, popTitle_omraade); mylink.setParameter(infotext, popText_omraade); Button openword = new Button(openword) { protected void onSubmit() { overide code} } openword.add(mylink); add(openword); /java -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af Eelco Hillenius Sendt: on 17-05-2006 12:05 Til: wicket-user@lists.sourceforge.net Cc: Emne: Re: [Wicket-user] popup button Hi, You can use a Link with a PopupSpecification. And you can (or should be able to) actually attach a link to any tag, including a button tag. Eelco On 5/17/06, Nino Wael [EMAIL PROTECTED] wrote: Hi Was wondering if any body has an example on howto create a popup button? I've looked at the triggerbutton from the datepicker extension but that seems to be too complex for such a simple thing? I want it to run the onsubmit method on the popupbutton and after that it should make a popup, I tried using a normal button and a BookmarkablePageLink and calling the onClick event on the latter but as it is now the onClick event does notting(its also written in the documentation that it only implements onclick to satisfy interfaces). Regards Nino --- 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=kkid0709bid3057dat1642 ___ 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=lnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user