Re: [Wicket-user] styling options of AbstractChoice

2007-05-03 Thread Gerolf Seitz
thx, works like a charm On 5/2/07, Igor Vaynberg [EMAIL PROTECTED] wrote: selectoptions is a quick way to do it. if you want total control then put a repeater into the select and create your own options using selectoption. -igor On 5/1/07, Gerolf Seitz [EMAIL PROTECTED] wrote: hm, good

[Wicket-user] styling options of AbstractChoice

2007-05-01 Thread Gerolf Seitz
afaik, there is no way to style options of an AbstractChoice (and it's descendants). i could imagine 3 ways to add this (although i don't know which would be the most wicket-like way) 1) expand IChoiceRenderer add methods like String getClass(), String getStyle() to the IChoiceRenderer

Re: [Wicket-user] styling options of AbstractChoice

2007-05-01 Thread Igor Vaynberg
or you can use Select, SelectOption, and SelectOptions in extensions -igor On 5/1/07, Gerolf Seitz [EMAIL PROTECTED] wrote: afaik, there is no way to style options of an AbstractChoice (and it's descendants). i could imagine 3 ways to add this (although i don't know which would be the most

Re: [Wicket-user] styling options of AbstractChoice

2007-05-01 Thread Gerolf Seitz
hm, good point. but i still see one limitation with SelectOptions: how can i add a class attribute with a value depending on the option-model. i can't seem to achieve this with adding a behavior to SelectOptions, since the behavior binds to the wrong component. if i missed something, please let

Re: [Wicket-user] styling options of AbstractChoice

2007-05-01 Thread Igor Vaynberg
selectoptions is a quick way to do it. if you want total control then put a repeater into the select and create your own options using selectoption. -igor On 5/1/07, Gerolf Seitz [EMAIL PROTECTED] wrote: hm, good point. but i still see one limitation with SelectOptions: how can i add a class