Re: [Wicket-user] Use HTML controls directly with no wicket:id

2007-06-21 Thread Igor Vaynberg
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 PROTE

Re: [Wicket-user] Use HTML controls directly with no wicket:id

2007-06-21 Thread Timo Rantalaiho
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 Oy

Re: [Wicket-user] Use HTML controls directly with no wicket:id

2007-06-21 Thread Toscano
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.set

Re: [Wicket-user] Use HTML controls directly with no wicket:id

2007-06-20 Thread Igor Vaynberg
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 y

Re: [Wicket-user] Use HTML controls directly with no wicket:id

2007-06-20 Thread Toscano
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 i

Re: [Wicket-user] Use HTML controls directly with no wicket:id

2007-06-20 Thread Igor Vaynberg
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.

Re: [Wicket-user] Use HTML controls directly with no wicket:id

2007-06-20 Thread Toscano
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:

Re: [Wicket-user] Use HTML controls directly with no wicket:id

2007-06-20 Thread Igor Vaynberg
add(new FormComponent("staticselect", new PropertyModel(this, "countryname")) {}); 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