[Wicket-user] Dropdown choices in wicket
Hi, iam new to wicket, am going through the available examples, i dont understand how can i capture the selected option in a drop down choice in the wicket? I checked the example tutorial given in the ensode.net but still i dont understand how to capture the selected value of the drop down and display it after form submission Plz help one more, how to capture values from Hidden fields in wicket html page, for labels you have Label class in wicket , similarly any provision for hidden variable?? Thanks in advance Sathya -- View this message in context: http://www.nabble.com/Dropdown-choices-in-wicket-tf2124339.html#a5860810 Sent from the Wicket - User forum at Nabble.com. - 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] Dropdown choices in wicket
First of all, let me tell you that, I am also fairly new to Wicket. However here are my two cents. Wicket experts - Please correct me if I am wrong. How are you sending the data to the page? Are you using any model? If you are, you can retrieve the data using the model object. If not, I think you can use PageParameters to retrieve the selections from the select box just like any other component on the page. For hidden fields, I think you can use regular Textfield and set the visible (setVisible) to false. This way you have all the access to the field except that it won't be displayed on the screen. Hope this helps. -Srinu - Original Message From: sathya81 [EMAIL PROTECTED]To: wicket-user@lists.sourceforge.netSent: Friday, August 18, 2006 12:02:46 AMSubject: [Wicket-user] Dropdown choices in wicket Hi, iam new to wicket, am going through the available examples, i dontunderstandhow can i capture the selected option in a drop down choice inthe wicket? I checked the example tutorial given in theensode.net butstill i dont understand how to capture the selected value of the drop downand display it after form submissionPlz helpone more, how to capture values from Hidden fields in wicket html page, forlabels you have Label class in wicket , similarly any provision for hiddenvariable??Thanks in advanceSathya -- View this message in context: http://www.nabble.com/Dropdown-choices-in-wicket-tf2124339.html#a5860810Sent from the Wicket - User forum at Nabble.com.-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 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing listWicket-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] Dropdown choices in wicket
About the dropdown: Use a model, maybe a property model to hold the selected dropdown object. Property models require that there are a get and setter method for the supplied property. You could also use the abstractmodel and implement your own thing, if per say you needed to update something else on the page based on what the selected dropdown are. Just to sum it up, wicket does all the nifty stuff about updating the model that you provide so you need only do your logic. Please ask if you have more questions. regards Nino -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af sathya81 Sendt: fr 18-08-2006 09:02 Til: wicket-user@lists.sourceforge.net Cc: Emne: [Wicket-user] Dropdown choices in wicket Hi, iam new to wicket, am going through the available examples, i dont understand how can i capture the selected option in a drop down choice in the wicket? I checked the example tutorial given in the ensode.net but still i dont understand how to capture the selected value of the drop down and display it after form submission Plz help one more, how to capture values from Hidden fields in wicket html page, for labels you have Label class in wicket , similarly any provision for hidden variable?? Thanks in advance Sathya -- View this message in context: http://www.nabble.com/Dropdown-choices-in-wicket-tf2124339.html#a5860810 Sent from the Wicket - User forum at Nabble.com. - 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 winmail.dat- 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] Dropdown choices in wicket
As well as what the others have said, take a look at the wiki, specifically http://www.wicket-wiki.org.uk/wiki/index.php/DropDownChoice_Examples, which might help. /Gwyn On 18/08/06, sathya81 [EMAIL PROTECTED] wrote: Hi, iam new to wicket, am going through the available examples, i dont understand how can i capture the selected option in a drop down choice in the wicket? I checked the example tutorial given in the ensode.net but still i dont understand how to capture the selected value of the drop down and display it after form submission Plz help one more, how to capture values from Hidden fields in wicket html page, for labels you have Label class in wicket , similarly any provision for hidden variable?? Thanks in advance Sathya -- View this message in context: http://www.nabble.com/Dropdown-choices-in-wicket-tf2124339.html#a5860810 Sent from the Wicket - User forum at Nabble.com. -- Download Wicket 1.2.1 now! - http://wicketframework.org - 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] Dropdown choices in wicket
Select/Combo is just as another input field. The model behind the Combobox will hold the selected value.Hidden field: See HiddenField componentBut the question is why do you need it? Normally in wicket there is no need for a hidden field to store data. johanOn 8/18/06, sathya81 [EMAIL PROTECTED] wrote: Hi, iam new to wicket, am going through the available examples, i dontunderstandhow can i capture the selected option in a drop down choice inthe wicket? I checked the example tutorial given in the ensode.net butstill i dont understand how to capture the selected value of the drop downand display it after form submissionPlz helpone more, how to capture values from Hidden fields in wicket html page, for labels you have Label class in wicket , similarly any provision for hiddenvariable??Thanks in advanceSathya--View this message in context: http://www.nabble.com/Dropdown-choices-in-wicket-tf2124339.html#a5860810Sent from the Wicket - User forum at Nabble.com.- 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 easierDownload 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 listWicket-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] Dropdown choices in wicket
Thanq Nino, well, iam using a model to store the data , actually i was going through the example given in the http://ensode.net/wicket_first_look.html , where in the author creates two models , the first model to store the normal form values and the second model explicitly to store the dropdown selected values , so here my doubt is if there are around 5 drop down choices in a page, then should i create 5 models for each to store the selected values? --Sathya Nino Wael wrote: About the dropdown: Use a model, maybe a property model to hold the selected dropdown object. Property models require that there are a get and setter method for the supplied property. You could also use the abstractmodel and implement your own thing, if per say you needed to update something else on the page based on what the selected dropdown are. Just to sum it up, wicket does all the nifty stuff about updating the model that you provide so you need only do your logic. Please ask if you have more questions. regards Nino -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af sathya81 Sendt: fr 18-08-2006 09:02 Til: wicket-user@lists.sourceforge.net Cc: Emne: [Wicket-user] Dropdown choices in wicket Hi, iam new to wicket, am going through the available examples, i dont understand how can i capture the selected option in a drop down choice in the wicket? I checked the example tutorial given in the ensode.net but still i dont understand how to capture the selected value of the drop down and display it after form submission Plz help one more, how to capture values from Hidden fields in wicket html page, for labels you have Label class in wicket , similarly any provision for hidden variable?? Thanks in advance Sathya -- View this message in context: http://www.nabble.com/Dropdown-choices-in-wicket-tf2124339.html#a5860810 Sent from the Wicket - User forum at Nabble.com. - 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 - 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 -- View this message in context: http://www.nabble.com/Dropdown-choices-in-wicket-tf2124339.html#a5866196 Sent from the Wicket - User forum at Nabble.com. - 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] Dropdown choices in wicket
Hi Sathya Yes you should use one model for each of your dropdowns. Lets say you are creating a site where you can search for books. Then you might have a drop down for author and maybe category. I guess(without knowing anything about searching and or books:)) that I would create a class that holds the search criteria eg: search.java private author private category getter setter methods goes here so on my wicket page i'll have the following pseudo code: private Search bookSearch=new Search; Imodel author=new Propertymodel(bookSearch.author,search); Imodel category=new Propertymodel(BookSearchcategory,search); dropdown dropAuthor=new dropdown(id, author); add(drop) dropdown dropCat=new dropdown(id,category); add(drop) button search=new Button(id){onsubmit( process(search)) } add(search) I hope my simple example contributes to something usefull:) Regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of sathya81 Sent: Fri 18-08-2006 11:00 To: wicket-user@lists.sourceforge.net Cc: Subject:Re: [Wicket-user] Dropdown choices in wicket Thanq Nino, well, iam using a model to store the data , actually i was going through the example given in the http://ensode.net/wicket_first_look.html , where in the author creates two models , the first model to store the normal form values and the second model explicitly to store the dropdown selected values , so here my doubt is if there are around 5 drop down choices in a page, then should i create 5 models for each to store the selected values? --Sathya Nino Wael wrote: About the dropdown: Use a model, maybe a property model to hold the selected dropdown object. Property models require that there are a get and setter method for the supplied property. You could also use the abstractmodel and implement your own thing, if per say you needed to update something else on the page based on what the selected dropdown are. Just to sum it up, wicket does all the nifty stuff about updating the model that you provide so you need only do your logic. Please ask if you have more questions. regards Nino -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af sathya81 Sendt: fr 18-08-2006 09:02 Til: wicket-user@lists.sourceforge.net Cc: Emne: [Wicket-user] Dropdown choices in wicket Hi, iam new to wicket, am going through the available examples, i dont understand how can i capture the selected option in a drop down choice in the wicket? I checked the example tutorial given in the ensode.net but still i dont understand how to capture the selected value of the drop down and display it after form submission Plz help one more, how to capture values from Hidden fields in wicket html page, for labels you have Label class in wicket , similarly any provision for hidden variable?? Thanks in advance Sathya -- View this message in context: http://www.nabble.com/Dropdown-choices-in-wicket-tf2124339.html#a5860810 Sent from the Wicket - User forum at Nabble.com. - 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 - 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 -- View this message in context: http://www.nabble.com/Dropdown-choices-in-wicket-tf2124339.html#a5866196 Sent from the Wicket - User forum at Nabble.com. - 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
[Wicket-user] value not getting set to the model when AjaxFormComponentUpdatingBehavior used.
Hi All, I havethe following hierarchy Page Panel Form And in side the form i havethe form components , and i have attached AjaxFormComponentUpdatingBehavior to one of thedropdowns to populate another. And all that works fine, but when ido the submit, thefirst time the ajax populated field's value doesn't getset to the model object. But it gets setthe second time onwards. Has anyone come accross this porblem. I am attaching the sample files. Kind Regards Dipu This example demonstrates a AjaxSelfUpdatingBehavior. This behavior can be attached to any component to make it update itself. The clock below is updated every five seconds. ChoiceModel.java Description: Binary data ChoicePanel.java Description: Binary data HomePage.java Description: Binary data ChoiceForm.java Description: Binary data - 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] Dropdown choices in wicket
Hmm - should isn't really correct - could, yes, but not should. Personally, I'd suggest a single CompondPropertyModel, set for the form, if not the page, as that can really cut down on the code you need to write. That also solves where to put any associated data, as the ModelObject that the CPM wraps isn't restricted to /just/ the form data. No need for 'hidden' client-side properties! /Gwyn On 18/08/06, Nino Wael [EMAIL PROTECTED] wrote: Hi Sathya Yes you should use one model for each of your dropdowns. Lets say you are creating a site where you can search for books. Then you might have a drop down for author and maybe category. I guess(without knowing anything about searching and or books:)) that I would create a class that holds the search criteria eg: search.java private author private category getter setter methods goes here so on my wicket page i'll have the following pseudo code: private Search bookSearch=new Search; Imodel author=new Propertymodel(bookSearch.author,search); Imodel category=new Propertymodel(BookSearchcategory,search); dropdown dropAuthor=new dropdown(id, author); add(drop) dropdown dropCat=new dropdown(id,category); add(drop) button search=new Button(id){onsubmit( process(search)) } add(search) I hope my simple example contributes to something usefull:) Regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of sathya81 Sent: Fri 18-08-2006 11:00 To: wicket-user@lists.sourceforge.net Cc: Subject:Re: [Wicket-user] Dropdown choices in wicket Thanq Nino, well, iam using a model to store the data , actually i was going through the example given in the http://ensode.net/wicket_first_look.html , where in the author creates two models , the first model to store the normal form values and the second model explicitly to store the dropdown selected values , so here my doubt is if there are around 5 drop down choices in a page, then should i create 5 models for each to store the selected values? --Sathya Nino Wael wrote: About the dropdown: Use a model, maybe a property model to hold the selected dropdown object. Property models require that there are a get and setter method for the supplied property. You could also use the abstractmodel and implement your own thing, if per say you needed to update something else on the page based on what the selected dropdown are. Just to sum it up, wicket does all the nifty stuff about updating the model that you provide so you need only do your logic. Please ask if you have more questions. regards Nino -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af sathya81 Sendt: fr 18-08-2006 09:02 Til: wicket-user@lists.sourceforge.net Cc: Emne: [Wicket-user] Dropdown choices in wicket Hi, iam new to wicket, am going through the available examples, i dont understand how can i capture the selected option in a drop down choice in the wicket? I checked the example tutorial given in the ensode.net but still i dont understand how to capture the selected value of the drop down and display it after form submission Plz help one more, how to capture values from Hidden fields in wicket html page, for labels you have Label class in wicket , similarly any provision for hidden variable?? Thanks in advance Sathya -- View this message in context: http://www.nabble.com/Dropdown-choices-in-wicket-tf2124339.html#a5860810 Sent from the Wicket - User forum at Nabble.com. -- Download Wicket 1.2.1 now! - http://wicketframework.org - 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] value not getting set to the model when AjaxFormComponentUpdatingBehavior used.
Not 100% sure but don't you need to explicitly update the 2nd dropdown on the onUpdate - Compare with http://www.wicket-wiki.org.uk/wiki/index.php/DropDownChoice_Examples#Using_Ajax /Gwyn On 18/08/06, Dipu [EMAIL PROTECTED] wrote: Hi All, I have the following hierarchy Page Panel Form And in side the form i have the form components , and i have attached AjaxFormComponentUpdatingBehavior to one of the dropdowns to populate another. And all that works fine, but when i do the submit, the first time the ajax populated field's value doesn't get set to the model object. But it gets set the second time onwards. Has anyone come accross this porblem. I am attaching the sample files. Kind Regards Dipu - 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 -- Download Wicket 1.2.1 now! - http://wicketframework.org - 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] Dropdown choices in wicket
true, I was meerly trying to explain that you really dont have to grab the selected object, as this is what wicket does for you:) I havent yet worked with compoundProperty models... -regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Gwyn Evans Sent: Fri 18-08-2006 13:46 To: wicket-user@lists.sourceforge.net Cc: Subject:Re: [Wicket-user] Dropdown choices in wicket Hmm - should isn't really correct - could, yes, but not should. Personally, I'd suggest a single CompondPropertyModel, set for the form, if not the page, as that can really cut down on the code you need to write. That also solves where to put any associated data, as the ModelObject that the CPM wraps isn't restricted to /just/ the form data. No need for 'hidden' client-side properties! /Gwyn On 18/08/06, Nino Wael [EMAIL PROTECTED] wrote: Hi Sathya Yes you should use one model for each of your dropdowns. Lets say you are creating a site where you can search for books. Then you might have a drop down for author and maybe category. I guess(without knowing anything about searching and or books:)) that I would create a class that holds the search criteria eg: search.java private author private category getter setter methods goes here so on my wicket page i'll have the following pseudo code: private Search bookSearch=new Search; Imodel author=new Propertymodel(bookSearch.author,search); Imodel category=new Propertymodel(BookSearchcategory,search); dropdown dropAuthor=new dropdown(id, author); add(drop) dropdown dropCat=new dropdown(id,category); add(drop) button search=new Button(id){onsubmit( process(search)) } add(search) I hope my simple example contributes to something usefull:) Regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of sathya81 Sent: Fri 18-08-2006 11:00 To: wicket-user@lists.sourceforge.net Cc: Subject:Re: [Wicket-user] Dropdown choices in wicket Thanq Nino, well, iam using a model to store the data , actually i was going through the example given in the http://ensode.net/wicket_first_look.html , where in the author creates two models , the first model to store the normal form values and the second model explicitly to store the dropdown selected values , so here my doubt is if there are around 5 drop down choices in a page, then should i create 5 models for each to store the selected values? --Sathya Nino Wael wrote: About the dropdown: Use a model, maybe a property model to hold the selected dropdown object. Property models require that there are a get and setter method for the supplied property. You could also use the abstractmodel and implement your own thing, if per say you needed to update something else on the page based on what the selected dropdown are. Just to sum it up, wicket does all the nifty stuff about updating the model that you provide so you need only do your logic. Please ask if you have more questions. regards Nino -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] på vegne af sathya81 Sendt: fr 18-08-2006 09:02 Til: wicket-user@lists.sourceforge.net Cc: Emne: [Wicket-user] Dropdown choices in wicket Hi, iam new to wicket, am going through the available examples, i dont understand how can i capture the selected option in a drop down choice in the wicket? I checked the example tutorial given in the ensode.net but still i dont understand how to capture the selected value of the drop down and display it after form submission Plz help one more, how to capture values from Hidden fields in wicket html page, for labels you have Label class in wicket , similarly any provision for hidden variable?? Thanks in advance Sathya -- View this message in context: http://www.nabble.com/Dropdown-choices-in-wicket-tf2124339.html#a5860810 Sent from the Wicket - User forum at Nabble.com. -- Download Wicket 1.2.1 now! - http://wicketframework.org - 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 winmail.dat- 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
[Wicket-user] DataTable toolbars result in invalid HTML
Hi all, the resulting HTML of extension's DataTable (with toolbars) renders invalid according to the HTML specs: Java: IColumn[] columns = new IColumn[2]; columns[0] = new PropertyColumn(new Model(foo), foo); columns[1] = new PropertyColumn(new Model(bar), bar); IDataProvider provider = new EmptyDataProvider(); DataTable table = new DataTable(table, columns, provider, 20); table.addTopToolbar(new HeadersToolbar(table, null)); add(table); Markup: table wicket:id=table/table results in following rendered HTML: table thead span tr class=headers thspanfoo/span/th thspanbar/span/th /tr /span /thead tbody /tbody tfoot /tfoot /table According to (X)HTML's definition thead may only contain tr tags. Here we've got span in between, such that the HTML is not valid according to the specs. I had a look into DataTable's source and found out that toolbars are made of RepeaterViews. From my knowledge with Wicket setting setRenderBodyOnly(true) on both topToolbars and bottomToolbars (which are of type RepeaterView) in DataTable.java should have made the trick. But it didn't. span is always rendered. Is there anything I missed? Regards, Jan - 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] ListView and AjaxSelfUpdatingTimerBehavior
I really don't understand how it should works, I have a ListView and some model attached to it with two elements , some how every self updating cycle I got one element added to the list on the screen, any ideas ? -- View this message in context: http://www.nabble.com/ListView-and-AjaxSelfUpdatingTimerBehavior-tf2127590.html#a5870890 Sent from the Wicket - User forum at Nabble.com. - 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] value not getting set to the model whenAjaxFormComponentUpdatingBehavior used.
I don't think so, because its not done in the examples. And the samples files i sent was worked out from the example. Thanks Dipu - Original Message - From: "Gwyn Evans" [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Friday, August 18, 2006 12:58 PM Subject: Re: [Wicket-user] value not getting set to the model whenAjaxFormComponentUpdatingBehavior used. Not 100% sure but don't you need to explicitly update the 2nd dropdown on the onUpdate - Compare with http://www.wicket-wiki.org.uk/wiki/index.php/DropDownChoice_Examples#Using_Ajax /Gwyn On 18/08/06, Dipu [EMAIL PROTECTED] wrote: Hi All, I have the following hierarchy Page Panel Form And in side the form i have the form components , and i have attached AjaxFormComponentUpdatingBehavior to one of the dropdowns to populate another. And all that works fine, but when i do the submit, the first time the ajax populated field's value doesn't get set to the model object. But it gets set the second time onwards. Has anyone come accross this porblem. I am attaching the sample files. Kind Regards Dipu - 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 -- Download Wicket 1.2.1 now! - http://wicketframework.org - 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 - 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] DataTable toolbars result in invalid HTML
fixed calling setrenderbodyonly on the repeaters has no effect because repeaters themselves render no markup.if you look at the markup:thead span wicket:id=topToolbars span wicket:id=toolbar/span /span/theadthe first span was already supressed by calling item.setRenderBodyOnly(true); on the direct child of the repeater the second span is actually owned by the toolbar component - so to supress it you have to call toolbar.setRenderBodyOnly(true);-IgorOn 8/18/06, Jan Schlosser [EMAIL PROTECTED] wrote: Hi all,the resulting HTML of extension's DataTable (with toolbars) rendersinvalid according to the HTML specs:Java: IColumn[] columns = new IColumn[2]; columns[0] = new PropertyColumn(new Model(foo), foo); columns[1] = new PropertyColumn(new Model(bar), bar); IDataProvider provider = new EmptyDataProvider(); DataTable table = new DataTable(table, columns, provider, 20); table.addTopToolbar(new HeadersToolbar(table, null)); add(table);Markup: table wicket:id=table/tableresults in following rendered HTML: table thead span tr class=headers thspanfoo/span/th thspanbar/span/th /tr /span /thead tbody /tbody tfoot /tfoot /tableAccording to (X)HTML's definition thead may only contain tr tags.Here we've got span in between, such that the HTML is not valid according to the specs.I had a look into DataTable's source and found out that toolbars aremade of RepeaterViews. From my knowledge with Wicket settingsetRenderBodyOnly(true) on both topToolbars and bottomToolbars (which are of type RepeaterView) in DataTable.java should have made thetrick. But it didn't. span is always rendered.Is there anything I missed?Regards,Jan- 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 easierDownload 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 listWicket-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] ListView and AjaxSelfUpdatingTimerBehavior
how about some code of that page?-IgorOn 8/18/06, Roman Mandeleil [EMAIL PROTECTED] wrote:I really don't understand how it should works, I have a ListView and some model attached to it with two elements , some how every self updating cycleI got one element added to the list on the screen, any ideas ?--View this message in context: http://www.nabble.com/ListView-and-AjaxSelfUpdatingTimerBehavior-tf2127590.html#a5870890Sent from the Wicket - User forum at Nabble.com.- 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 easierDownload 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 listWicket-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] DropDownChoice and Value ID
Hi everyone, I have the following problem: I supply the DropDownChoiceElement with a List containing HashMap's. So every Listelement is a HashMap. The HashMap contains a association between ID's and Names (the ID's are primary key whereas the Names are not). Don't bother about the problem that then there might be duplicate entries in the DropDownChoice. I succesfully manage to create the html-code right, thru suppling an IChoiceRenderer. However: how do I get the selecte Value-ID from the DropDownChoice-Element. All I manage to get is a String containing the Name and the ID. Thanks for your help. jak4 - Here is the Code (it's from the examples so there isn't anything new about it, except the HashMap): // every Listelement contains a HashMap List names = getListFromDB(); add(new DropDownChoice(userSelect, names, new IChoiceRenderer(){ public String getDisplayValue(Object object) { return ((String)((HashMap) object).get(lastname)); } public String getIdValue(Object object, int index) { // avoid accessing the element -1, which is Choose Element if( index = 0) return((Integer)((HashMap)names.get(index)).get(id)).toString(); else return -1; } })); signature.asc Description: OpenPGP digital signature - 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] DropDownChoice and Value ID
I succesfully manage to create the html-code right, thru suppling an IChoiceRenderer. However: how do I get the selecte Value-ID from the DropDownChoice-Element. All I manage to get is a String containing the Name and the ID. Typically, you should do that via your model. The drop down component uses and updates the model for the current selection. So e.g. myDropDown.getModelObject() or a query directly on the model you passed in should get you the current selection without you having to fool around with the id and display values. 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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] value not getting set to the model whenAjaxFormComponentUpdatingBehavior used.
argh! wtf!after an ajax update the browser doesnt POST the second select box. very very weird. works in IE - sad when IE works better then firefox.matej can you look into this a bit further? :))-Igor On 8/18/06, Dipu [EMAIL PROTECTED] wrote: I don't think so, because its not done in the examples. And the samples files i sent was worked out from the example. Thanks Dipu - Original Message - From: Gwyn Evans [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Friday, August 18, 2006 12:58 PM Subject: Re: [Wicket-user] value not getting set to the model whenAjaxFormComponentUpdatingBehavior used. Not 100% sure but don't you need to explicitly update the 2nd dropdown on the onUpdate - Compare with http://www.wicket-wiki.org.uk/wiki/index.php/DropDownChoice_Examples#Using_Ajax /Gwyn On 18/08/06, Dipu [EMAIL PROTECTED] wrote: Hi All, I have the following hierarchy Page Panel Form And in side the form i have the form components , and i have attached AjaxFormComponentUpdatingBehavior to one of the dropdowns to populate another. And all that works fine, but when i do the submit, the first time the ajax populated field's value doesn't get set to the model object. But it gets set the second time onwards. Has anyone come accross this porblem. I am attaching the sample files. Kind Regards Dipu - 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 -- Download Wicket 1.2.1 now! - http://wicketframework.org - 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 -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] value not getting set to the model when AjaxFormComponentUpdatingBehavior used.
It doesn't work in firefox because you placed the form directly to table. This is not valid and firefox freaks out. You have to put it in table cell (wrap the form in trtd and /td/tr) -Matej Dipu wrote: Hi All, I have the following hierarchy Page Panel Form And in side the form i have the form components , and i have attached AjaxFormComponentUpdatingBehavior to one of the dropdowns to populate another. And all that works fine, but when i do the submit, the first time the ajax populated field's value doesn't get set to the model object. But it gets set the second time onwards. Has anyone come accross this porblem. I am attaching the sample files. Kind Regards Dipu This example demonstrates a AjaxSelfUpdatingBehavior. This behavior can be attached to any component to make it update itself. The clock below is updated every five seconds. - 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 - 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] Custom session expiry page
Hi,How do I embed a custom session expiry page into wicket application?Thanks,Michael- 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] Custom session expiry page
MyApplication.init() { getApplicationSettings().setPageExpiredErrorPage(MyErrorPage.class);}-IgorOn 8/18/06, Michael K [EMAIL PROTECTED] wrote: Hi,How do I embed a custom session expiry page into wicket application?Thanks,Michael -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] AjaxLink setresponse
I guess I do not have the latest version. I am trying to use the trunk version and almost all my code broke due to Component's constructor signature change. thanks Anyway. igor.vaynberg wrote: RequestCycle.java: /** * Returns a URL that references the given page. It also * [EMAIL PROTECTED] Session#touch(Page) touches} the page in the session so that it is * put in the front of the page stack. Use this method only if you plan to * use it the next request. * * @param page *The page * @return The url pointing to the provided page */ public final CharSequence urlFor(final Page page) -Igor On 8/17/06, samyem [EMAIL PROTECTED] wrote: Unlike setResponsePage, urlFor does not seem to take an instance of a Page, but only Class. What if I want to pass an instance of Page itself? igor.vaynberg wrote: if you update to latest code from svn wicket_1_2 branch setresponsepage() will work. if you cannot upgrade then you have to do target.appendJavascript (window.location=+urlFor(page, IRedirectListener.INTERFACE)); -Igor On 8/17/06, samyem [EMAIL PROTECTED] wrote: What do I need to do to go to a different page as a result the user pressing an ajax link? My problem is that depending on the result of state the page is on, pressing on the link could either lead to a different or change portion of the same page (it's a bit more complex than this, but this should give some idea). However, the setResponsePage() method does not work for onClick for AjaxLink. What could be a possible solution? -- View this message in context: http://www.nabble.com/AjaxLink-setresponse-tf2124210.html#a5860434 Sent from the Wicket - User forum at Nabble.com. - 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 - 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 -- View this message in context: http://www.nabble.com/AjaxLink-setresponse-tf2124210.html#a5860761 Sent from the Wicket - User forum at Nabble.com. - 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 - 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 -- View this message in context: http://www.nabble.com/AjaxLink-setresponse-tf2124210.html#a5874546 Sent from the Wicket - User forum at Nabble.com. - 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] AjaxLink setresponse
For 1.2 you have to use the wicket_1_2 branch. Eelco On 8/18/06, samyem [EMAIL PROTECTED] wrote: I guess I do not have the latest version. I am trying to use the trunk version and almost all my code broke due to Component's constructor signature change. thanks Anyway. igor.vaynberg wrote: RequestCycle.java: /** * Returns a URL that references the given page. It also * [EMAIL PROTECTED] Session#touch(Page) touches} the page in the session so that it is * put in the front of the page stack. Use this method only if you plan to * use it the next request. * * @param page *The page * @return The url pointing to the provided page */ public final CharSequence urlFor(final Page page) -Igor On 8/17/06, samyem [EMAIL PROTECTED] wrote: Unlike setResponsePage, urlFor does not seem to take an instance of a Page, but only Class. What if I want to pass an instance of Page itself? igor.vaynberg wrote: if you update to latest code from svn wicket_1_2 branch setresponsepage() will work. if you cannot upgrade then you have to do target.appendJavascript (window.location=+urlFor(page, IRedirectListener.INTERFACE)); -Igor On 8/17/06, samyem [EMAIL PROTECTED] wrote: What do I need to do to go to a different page as a result the user pressing an ajax link? My problem is that depending on the result of state the page is on, pressing on the link could either lead to a different or change portion of the same page (it's a bit more complex than this, but this should give some idea). However, the setResponsePage() method does not work for onClick for AjaxLink. What could be a possible solution? -- View this message in context: http://www.nabble.com/AjaxLink-setresponse-tf2124210.html#a5860434 Sent from the Wicket - User forum at Nabble.com. - 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 - 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 -- View this message in context: http://www.nabble.com/AjaxLink-setresponse-tf2124210.html#a5860761 Sent from the Wicket - User forum at Nabble.com. - 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 - 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 -- View this message in context: http://www.nabble.com/AjaxLink-setresponse-tf2124210.html#a5874546 Sent from the Wicket - User forum at Nabble.com. - 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 ___
Re: [Wicket-user] AjaxLink setresponse
Okay that's fine. We were using the 1.2.1 release jars and not from SVN. So is it okay if i check out from wicket_1_2_1 branch instead of wicket_1_2 branch? igor.vaynberg wrote: let me restate with some highlighting :) if you update to latest code from svn *wicket_1_2 branch* setresponsepage() will work. if you cannot upgrade then you have to do target.appendJavascript (window.location=+urlFor(page, IRedirectListener.INTERFACE)); -Igor On 8/18/06, samyem [EMAIL PROTECTED] wrote: I guess I do not have the latest version. I am trying to use the trunk version and almost all my code broke due to Component's constructor signature change. thanks Anyway. igor.vaynberg wrote: RequestCycle.java: /** * Returns a URL that references the given page. It also * [EMAIL PROTECTED] Session#touch(Page) touches} the page in the session so that it is * put in the front of the page stack. Use this method only if you plan to * use it the next request. * * @param page *The page * @return The url pointing to the provided page */ public final CharSequence urlFor(final Page page) -Igor On 8/17/06, samyem [EMAIL PROTECTED] wrote: Unlike setResponsePage, urlFor does not seem to take an instance of a Page, but only Class. What if I want to pass an instance of Page itself? igor.vaynberg wrote: if you update to latest code from svn wicket_1_2 branch setresponsepage() will work. if you cannot upgrade then you have to do target.appendJavascript (window.location=+urlFor(page, IRedirectListener.INTERFACE)); -Igor On 8/17/06, samyem [EMAIL PROTECTED] wrote: What do I need to do to go to a different page as a result the user pressing an ajax link? My problem is that depending on the result of state the page is on, pressing on the link could either lead to a different or change portion of the same page (it's a bit more complex than this, but this should give some idea). However, the setResponsePage() method does not work for onClick for AjaxLink. What could be a possible solution? -- View this message in context: http://www.nabble.com/AjaxLink-setresponse-tf2124210.html#a5860434 Sent from the Wicket - User forum at Nabble.com. - 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 - 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 -- View this message in context: http://www.nabble.com/AjaxLink-setresponse-tf2124210.html#a5860761 Sent from the Wicket - User forum at Nabble.com. - 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 - 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 -- View this message in context: http://www.nabble.com/AjaxLink-setresponse-tf2124210.html#a5874546 Sent from the Wicket - User forum at Nabble.com.
Re: [Wicket-user] AjaxLink setresponse
no, wicket_1_2_1 branch was a mistake - it is supposed to be a label that marks the code that went into 1.2.1 release not a branch - but maven made a booboo.frank i thought you were gonna move it to tags? if you want the latest you should check out from wicket_1_2 branch.-IgorOn 8/18/06, samyem [EMAIL PROTECTED] wrote:Okay that's fine. We were using the 1.2.1 release jars and not from SVN. So is it okay if i check out from wicket_1_2_1 branch instead of wicket_1_2branch?igor.vaynberg wrote: let me restate with some highlighting :) if you update to latest code from svn *wicket_1_2 branch* setresponsepage() will work. if you cannot upgrade then you have to do target.appendJavascript (window.location=+urlFor(page, IRedirectListener.INTERFACE)); -Igor On 8/18/06, samyem [EMAIL PROTECTED] wrote: I guess I do not have the latest version. I am trying to use the trunk version and almost all my code broke due to Component's constructor signature change. thanks Anyway. igor.vaynberg wrote: RequestCycle.java : /** * Returns a URL that references the given page. It also * [EMAIL PROTECTED] Session#touch(Page) touches} the page in the session so that it is * put in the front of the page stack. Use this method only if you plan to * use it the next request. * * @param page *The page * @return The url pointing to the provided page */ public final CharSequence urlFor(final Page page) -IgorOn 8/17/06, samyem [EMAIL PROTECTED] wrote: Unlike setResponsePage, urlFor does not seem to take an instance of a Page, but only Class. What if I want to pass an instance of Page itself? igor.vaynberg wrote: if you update to latest code from svn wicket_1_2 branch setresponsepage() will work. if you cannot upgrade then you have to do target.appendJavascript (window.location=+urlFor(page, IRedirectListener.INTERFACE )); -Igor On 8/17/06, samyem [EMAIL PROTECTED] wrote: What do I need to do to go to a different page as a result the user pressing an ajax link? My problem is that depending on the result of state the page is on, pressing on the link could either lead to a different or change portion of the same page (it's a bit more complex than this, but this should give some idea). However, the setResponsePage() method does not work for onClick for AjaxLink. What could be a possible solution? -- View this message in context: http://www.nabble.com/AjaxLink-setresponse-tf2124210.html#a5860434 Sent from the Wicket - User forum at Nabble.com. - 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- 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 -- View this message in context: http://www.nabble.com/AjaxLink-setresponse-tf2124210.html#a5860761 Sent from the Wicket - User forum at Nabble.com. - 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 - 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 -- View this message in context:
Re: [Wicket-user] AjaxLink setresponse
Okay that explains all my confusions. thanks. igor.vaynberg wrote: no, wicket_1_2_1 branch was a mistake - it is supposed to be a label that marks the code that went into 1.2.1 release not a branch - but maven made a booboo. frank i thought you were gonna move it to tags? if you want the latest you should check out from wicket_1_2 branch. -Igor On 8/18/06, samyem [EMAIL PROTECTED] wrote: Okay that's fine. We were using the 1.2.1 release jars and not from SVN. So is it okay if i check out from wicket_1_2_1 branch instead of wicket_1_2 branch? igor.vaynberg wrote: let me restate with some highlighting :) if you update to latest code from svn *wicket_1_2 branch* setresponsepage() will work. if you cannot upgrade then you have to do target.appendJavascript (window.location=+urlFor(page, IRedirectListener.INTERFACE)); -Igor On 8/18/06, samyem [EMAIL PROTECTED] wrote: I guess I do not have the latest version. I am trying to use the trunk version and almost all my code broke due to Component's constructor signature change. thanks Anyway. igor.vaynberg wrote: RequestCycle.java: /** * Returns a URL that references the given page. It also * [EMAIL PROTECTED] Session#touch(Page) touches} the page in the session so that it is * put in the front of the page stack. Use this method only if you plan to * use it the next request. * * @param page *The page * @return The url pointing to the provided page */ public final CharSequence urlFor(final Page page) -Igor On 8/17/06, samyem [EMAIL PROTECTED] wrote: Unlike setResponsePage, urlFor does not seem to take an instance of a Page, but only Class. What if I want to pass an instance of Page itself? igor.vaynberg wrote: if you update to latest code from svn wicket_1_2 branch setresponsepage() will work. if you cannot upgrade then you have to do target.appendJavascript (window.location=+urlFor(page, IRedirectListener.INTERFACE)); -Igor On 8/17/06, samyem [EMAIL PROTECTED] wrote: What do I need to do to go to a different page as a result the user pressing an ajax link? My problem is that depending on the result of state the page is on, pressing on the link could either lead to a different or change portion of the same page (it's a bit more complex than this, but this should give some idea). However, the setResponsePage() method does not work for onClick for AjaxLink. What could be a possible solution? -- View this message in context: http://www.nabble.com/AjaxLink-setresponse-tf2124210.html#a5860434 Sent from the Wicket - User forum at Nabble.com. - 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 - 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 -- View this message in context: http://www.nabble.com/AjaxLink-setresponse-tf2124210.html#a5860761 Sent from the Wicket - User forum at Nabble.com. - 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 - Using Tomcat but need to do more? Need to support web services,
[Wicket-user] getValue(), getInput(), and defaultFormProcessing
I have two questions. First one is what is the difference between getValue and getInput? Second one is how can I retrieve the value entered to the form component if defaultFormProcessing is set to false? These questions have arisen when I was trying to implement an editable multi-page table that was remembering changes while user navigates across the pages. I created page navigation links as SubmitLinks with defaultFormProcessing set to false. After each navigation values are read from inputs (although I'm not sure if I do read them in a right way) and models are updated manually. This was necessary because the table's form has lots of validation on it and this validation shouldn't pop up when navigationg between pages. Maybe, there is an easier way to do this? - 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