Re: [Wicket-user] ListChoice changes appearance from dropdown to listbox

2006-12-07 Thread Johan Compagner
ahh found the constructor that did set the max rows. I will sync it completely. johan On 12/7/06, Johan Compagner <[EMAIL PROTECTED]> wrote: thats the default yes. Strange that it is set somehow i don't see that in that constructor /** * @see wicket.markup.html.form.AbstractChoice#Abstr

Re: [Wicket-user] ListChoice changes appearance from dropdown to listbox

2006-12-07 Thread Johan Compagner
thats the default yes. Strange that it is set somehow i don't see that in that constructor /** * @see wicket.markup.html.form.AbstractChoice#AbstractChoice(String, IModel,IModel) */ public ListChoice(String id, IModel model, IModel choices) { super(id, model, choices); }

Re: [Wicket-user] ListChoice changes appearance from dropdown to listbox

2006-12-07 Thread TH Lim
For 1st example, the size attribute is " size="8" ". Johan Compagner wrote: > > hmm we don't seem to set the default max rows in every constructor > strange thing is that in the first example you give we also don't do it. > So > max rows is still 0 > > Can you check what is exactly generated

Re: [Wicket-user] ListChoice changes appearance from dropdown to listbox

2006-12-07 Thread Johan Compagner
hmm we don't seem to set the default max rows in every constructor strange thing is that in the first example you give we also don't do it. So max rows is still 0 Can you check what is exactly generated (what the size attribute is) johan On 12/6/06, TH Lim <[EMAIL PROTECTED]> wrote: I came

Re: [Wicket-user] ListChoice changes appearance from dropdown to listbox

2006-12-05 Thread TH Lim
I came to the same conclusion as Nino. What I have observed was this, 1. For, ListChoice selection = new ListChoice("disciplineSelection", new Model(), disciplines) , a list box is created in the web page. 2. For, ListChoice selection = new ListChoice("disciplineSelection", disciplines) , a

RE: [Wicket-user] ListChoice changes appearance from dropdown to listbox

2006-05-10 Thread Nino Wael
use that instead since it’s the correct one to use.   -regards Nino From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: 9. maj 2006 12:50 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] ListChoice changes appearance from dropdown to listbox

Re: [Wicket-user] ListChoice changes appearance from dropdown to listbox

2006-05-09 Thread Johan Compagner
A ListChoice should always be a List instead of a DropDown (for a drop down we have the DropDownChoice)I don't know why you see a difference it shouldn't look at all to the model that holds the selection.It only looks at the choices: tag.put("size", Math.min(maxRows, getChoices().size()));so i gues