Re: [Wicket-user] Use HTML controls directly with no wicket:id
Hello Igor, Thank you so much for your answer. It didn't work. When I try I got the component added in code but not referenced on markup. This is my code: page.java: userInformationForm.add(new FormComponent(oskar){}); // I have a CompoundPropertyModel html: select wicketd:id=oskar option value=1Oskar1/option option value=2Oskar2/option /select Any ideas? Again, thank you very much for your time. Oskar igor.vaynberg wrote: add(new FormComponent(staticselect, new PropertyModel(this, countryname)) {}); select wicket:id=staticselectoption ought to do it -igor On 6/20/07, Toscano [EMAIL PROTECTED] wrote: Hello, I'm working in a very big project with Wicket, but we have a huge form with more than 20 dropdown lists whose content is loaded from database. This makes the form loading very slow. Most of these dropdown lists will not change, so there is no need of loading them from database. For example, we have a Countries dropdown. Instead of using select wicket:id=countries/ Can we just put directly the values into the html page? select id=countries option value=1Albania/option option value=2Australia/option .. /select If I put wicket:id, Wicket will replace the options. If I use standard html id=countries, can I retrieve the value from Wicket? How can I do that? Thank you very much for your help and time, Oskar -- View this message in context: http://www.nabble.com/Use-HTML-controls-directly-with-no-wicket%3Aid-tf3956238.html#a11225889 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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/Use-HTML-controls-directly-with-no-wicket%3Aid-tf3956238.html#a11227283 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Use HTML controls directly with no wicket:id
look at the error, it says you added the component to code but not to markup, that means wicket cannot find the component in markup - in this case because you misspelled wicket:id attribute -igor On 6/20/07, Toscano [EMAIL PROTECTED] wrote: Hello Igor, Thank you so much for your answer. It didn't work. When I try I got the component added in code but not referenced on markup. This is my code: page.java: userInformationForm.add(new FormComponent(oskar){}); // I have a CompoundPropertyModel html: select wicketd:id=oskar option value=1Oskar1/option option value=2Oskar2/option /select Any ideas? Again, thank you very much for your time. Oskar igor.vaynberg wrote: add(new FormComponent(staticselect, new PropertyModel(this, countryname)) {}); select wicket:id=staticselectoption ought to do it -igor On 6/20/07, Toscano [EMAIL PROTECTED] wrote: Hello, I'm working in a very big project with Wicket, but we have a huge form with more than 20 dropdown lists whose content is loaded from database. This makes the form loading very slow. Most of these dropdown lists will not change, so there is no need of loading them from database. For example, we have a Countries dropdown. Instead of using select wicket:id=countries/ Can we just put directly the values into the html page? select id=countries option value=1Albania/option option value=2Australia/option .. /select If I put wicket:id, Wicket will replace the options. If I use standard html id=countries, can I retrieve the value from Wicket? How can I do that? Thank you very much for your help and time, Oskar -- View this message in context: http://www.nabble.com/Use-HTML-controls-directly-with-no-wicket%3Aid-tf3956238.html#a11225889 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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/Use-HTML-controls-directly-with-no-wicket%3Aid-tf3956238.html#a11227283 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Use HTML controls directly with no wicket:id
Oh, I'm very sorry, I was so worried about the FormComponent that I didn't realized Sorry for bothering you with this! And Thanks!, Oskar igor.vaynberg wrote: look at the error, it says you added the component to code but not to markup, that means wicket cannot find the component in markup - in this case because you misspelled wicket:id attribute -igor On 6/20/07, Toscano [EMAIL PROTECTED] wrote: Hello Igor, Thank you so much for your answer. It didn't work. When I try I got the component added in code but not referenced on markup. This is my code: page.java: userInformationForm.add(new FormComponent(oskar){}); // I have a CompoundPropertyModel html: select wicketd:id=oskar option value=1Oskar1/option option value=2Oskar2/option /select Any ideas? Again, thank you very much for your time. Oskar igor.vaynberg wrote: add(new FormComponent(staticselect, new PropertyModel(this, countryname)) {}); select wicket:id=staticselectoption ought to do it -igor On 6/20/07, Toscano [EMAIL PROTECTED] wrote: Hello, I'm working in a very big project with Wicket, but we have a huge form with more than 20 dropdown lists whose content is loaded from database. This makes the form loading very slow. Most of these dropdown lists will not change, so there is no need of loading them from database. For example, we have a Countries dropdown. Instead of using select wicket:id=countries/ Can we just put directly the values into the html page? select id=countries option value=1Albania/option option value=2Australia/option .. /select If I put wicket:id, Wicket will replace the options. If I use standard html id=countries, can I retrieve the value from Wicket? How can I do that? Thank you very much for your help and time, Oskar -- View this message in context: http://www.nabble.com/Use-HTML-controls-directly-with-no-wicket%3Aid-tf3956238.html#a11225889 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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/Use-HTML-controls-directly-with-no-wicket%3Aid-tf3956238.html#a11227283 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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/Use-HTML-controls-directly-with-no-wicket%3Aid-tf3956238.html#a11227565 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Use HTML controls directly with no wicket:id
happens to everyone once in a while :) -igor On 6/20/07, Toscano [EMAIL PROTECTED] wrote: Oh, I'm very sorry, I was so worried about the FormComponent that I didn't realized Sorry for bothering you with this! And Thanks!, Oskar igor.vaynberg wrote: look at the error, it says you added the component to code but not to markup, that means wicket cannot find the component in markup - in this case because you misspelled wicket:id attribute -igor On 6/20/07, Toscano [EMAIL PROTECTED] wrote: Hello Igor, Thank you so much for your answer. It didn't work. When I try I got the component added in code but not referenced on markup. This is my code: page.java: userInformationForm.add(new FormComponent(oskar){}); // I have a CompoundPropertyModel html: select wicketd:id=oskar option value=1Oskar1/option option value=2Oskar2/option /select Any ideas? Again, thank you very much for your time. Oskar igor.vaynberg wrote: add(new FormComponent(staticselect, new PropertyModel(this, countryname)) {}); select wicket:id=staticselectoption ought to do it -igor On 6/20/07, Toscano [EMAIL PROTECTED] wrote: Hello, I'm working in a very big project with Wicket, but we have a huge form with more than 20 dropdown lists whose content is loaded from database. This makes the form loading very slow. Most of these dropdown lists will not change, so there is no need of loading them from database. For example, we have a Countries dropdown. Instead of using select wicket:id=countries/ Can we just put directly the values into the html page? select id=countries option value=1Albania/option option value=2Australia/option .. /select If I put wicket:id, Wicket will replace the options. If I use standard html id=countries, can I retrieve the value from Wicket? How can I do that? Thank you very much for your help and time, Oskar -- View this message in context: http://www.nabble.com/Use-HTML-controls-directly-with-no-wicket%3Aid-tf3956238.html#a11225889 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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/Use-HTML-controls-directly-with-no-wicket%3Aid-tf3956238.html#a11227283 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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/Use-HTML-controls-directly-with-no-wicket%3Aid-tf3956238.html#a11227565 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Use HTML controls directly with no wicket:id
Sorry again... I have it working, but I have another problem... For example, if we have two values in the select, how can I specify from java code to select the second value? I tried to setup the property of the Compound Model but the value is not selected... Java code: userInformation.setOskar(2); userInformationModel = new CompoundPropertyModel(userInformation); // Form userInformationForm = new UserInformationForm (userInformationForm, userInformationModel); userInformationForm.add(new FormComponent(oskar){}); // Add form to page add(userInformationForm); Html code: tdselect wicket:id=oskar option value=1Oskar1/option option value=2Oskar2/option /select Any ideas? Again, thank you very very very very very much! Oskar igor.vaynberg wrote: happens to everyone once in a while :) -igor On 6/20/07, Toscano [EMAIL PROTECTED] wrote: Oh, I'm very sorry, I was so worried about the FormComponent that I didn't realized Sorry for bothering you with this! And Thanks!, Oskar igor.vaynberg wrote: look at the error, it says you added the component to code but not to markup, that means wicket cannot find the component in markup - in this case because you misspelled wicket:id attribute -igor On 6/20/07, Toscano [EMAIL PROTECTED] wrote: Hello Igor, Thank you so much for your answer. It didn't work. When I try I got the component added in code but not referenced on markup. This is my code: page.java: userInformationForm.add(new FormComponent(oskar){}); // I have a CompoundPropertyModel html: select wicketd:id=oskar option value=1Oskar1/option option value=2Oskar2/option /select Any ideas? Again, thank you very much for your time. Oskar igor.vaynberg wrote: add(new FormComponent(staticselect, new PropertyModel(this, countryname)) {}); select wicket:id=staticselectoption ought to do it -igor On 6/20/07, Toscano [EMAIL PROTECTED] wrote: Hello, I'm working in a very big project with Wicket, but we have a huge form with more than 20 dropdown lists whose content is loaded from database. This makes the form loading very slow. Most of these dropdown lists will not change, so there is no need of loading them from database. For example, we have a Countries dropdown. Instead of using select wicket:id=countries/ Can we just put directly the values into the html page? select id=countries option value=1Albania/option option value=2Australia/option .. /select If I put wicket:id, Wicket will replace the options. If I use standard html id=countries, can I retrieve the value from Wicket? How can I do that? Thank you very much for your help and time, Oskar -- View this message in context: http://www.nabble.com/Use-HTML-controls-directly-with-no-wicket%3Aid-tf3956238.html#a11225889 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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/Use-HTML-controls-directly-with-no-wicket%3Aid-tf3956238.html#a11227283 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Use HTML controls directly with no wicket:id
On Thu, 21 Jun 2007, Toscano wrote: Any ideas? Use DropDownChoice. With that you provide one model for all the choices (a list) and another model for the default selection (a single item of the same type as the list contents). - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Use HTML controls directly with no wicket:id
you cant :) you said you wanted static html to optimize it, but its static - so you cannot add the selected attribute to the proper option tag. do what timo said and use a proper component, to go around the database just keep a static list of countries. -igor On 6/21/07, Toscano [EMAIL PROTECTED] wrote: Sorry again... I have it working, but I have another problem... For example, if we have two values in the select, how can I specify from java code to select the second value? I tried to setup the property of the Compound Model but the value is not selected... Java code: userInformation.setOskar(2); userInformationModel = new CompoundPropertyModel(userInformation); // Form userInformationForm = new UserInformationForm (userInformationForm, userInformationModel); userInformationForm.add(new FormComponent(oskar){}); // Add form to page add(userInformationForm); Html code: tdselect wicket:id=oskar option value=1Oskar1/option option value=2Oskar2/option /select Any ideas? Again, thank you very very very very very much! Oskar igor.vaynberg wrote: happens to everyone once in a while :) -igor On 6/20/07, Toscano [EMAIL PROTECTED] wrote: Oh, I'm very sorry, I was so worried about the FormComponent that I didn't realized Sorry for bothering you with this! And Thanks!, Oskar igor.vaynberg wrote: look at the error, it says you added the component to code but not to markup, that means wicket cannot find the component in markup - in this case because you misspelled wicket:id attribute -igor On 6/20/07, Toscano [EMAIL PROTECTED] wrote: Hello Igor, Thank you so much for your answer. It didn't work. When I try I got the component added in code but not referenced on markup. This is my code: page.java: userInformationForm.add(new FormComponent(oskar){}); // I have a CompoundPropertyModel html: select wicketd:id=oskar option value=1Oskar1/option option value=2Oskar2/option /select Any ideas? Again, thank you very much for your time. Oskar igor.vaynberg wrote: add(new FormComponent(staticselect, new PropertyModel(this, countryname)) {}); select wicket:id=staticselectoption ought to do it -igor On 6/20/07, Toscano [EMAIL PROTECTED] wrote: Hello, I'm working in a very big project with Wicket, but we have a huge form with more than 20 dropdown lists whose content is loaded from database. This makes the form loading very slow. Most of these dropdown lists will not change, so there is no need of loading them from database. For example, we have a Countries dropdown. Instead of using select wicket:id=countries/ Can we just put directly the values into the html page? select id=countries option value=1Albania/option option value=2Australia/option .. /select If I put wicket:id, Wicket will replace the options. If I use standard html id=countries, can I retrieve the value from Wicket? How can I do that? Thank you very much for your help and time, Oskar -- View this message in context: http://www.nabble.com/Use-HTML-controls-directly-with-no-wicket%3Aid-tf3956238.html#a11225889 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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/Use-HTML-controls-directly-with-no-wicket%3Aid-tf3956238.html#a11227283 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just
[Wicket-user] Use HTML controls directly with no wicket:id
Hello, I'm working in a very big project with Wicket, but we have a huge form with more than 20 dropdown lists whose content is loaded from database. This makes the form loading very slow. Most of these dropdown lists will not change, so there is no need of loading them from database. For example, we have a Countries dropdown. Instead of using select wicket:id=countries/ Can we just put directly the values into the html page? select id=countries option value=1Albania/option option value=2Australia/option .. /select If I put wicket:id, Wicket will replace the options. If I use standard html id=countries, can I retrieve the value from Wicket? How can I do that? Thank you very much for your help and time, Oskar -- View this message in context: http://www.nabble.com/Use-HTML-controls-directly-with-no-wicket%3Aid-tf3956238.html#a11225889 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Use HTML controls directly with no wicket:id
add(new FormComponent(staticselect, new PropertyModel(this, countryname)) {}); select wicket:id=staticselectoption ought to do it -igor On 6/20/07, Toscano [EMAIL PROTECTED] wrote: Hello, I'm working in a very big project with Wicket, but we have a huge form with more than 20 dropdown lists whose content is loaded from database. This makes the form loading very slow. Most of these dropdown lists will not change, so there is no need of loading them from database. For example, we have a Countries dropdown. Instead of using select wicket:id=countries/ Can we just put directly the values into the html page? select id=countries option value=1Albania/option option value=2Australia/option .. /select If I put wicket:id, Wicket will replace the options. If I use standard html id=countries, can I retrieve the value from Wicket? How can I do that? Thank you very much for your help and time, Oskar -- View this message in context: http://www.nabble.com/Use-HTML-controls-directly-with-no-wicket%3Aid-tf3956238.html#a11225889 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user