Re: Dynamic Select and SelectOptions

2012-03-27 Thread Gytis
Hi, I just had the problem alike, where if my list of selectoptions was empty, optgroup header was shown without any elements below, needed to hide this optgroup tag: Instead of developing OptGroup class, I used WebMarkupContainer and SelectOptions components, together they worked fine for me, her

Re: Dynamic Select and SelectOptions

2011-02-17 Thread rawe
It's working fine with IE, safari, Chrome, Opera but not with Firefox (FF) The optgroup closing tag is set wrong. The options are not enclosed in the optgroup tags. Firebug shows following rendering Audi Opel Thank's for hints! ralph -- View this message in context: http://apache-wicket.1

Re: Dynamic Select and SelectOptions

2011-02-17 Thread rawe
The solution is to nest the ListViews: Markup: Code: Select select = new Select(selectId); select.add(new ListView("optGroups", transList) { @Override protected

Re: Dynamic Select and SelectOptions

2011-02-16 Thread rawe
Hi, good solution, but how does it work using a ListView ?? I tried: Select select = new Select("selectId"); select.add(new ListView("selGrpId", list) { OptGroup optGrp = null; @Override protected void populateItem(ListIt

Re: Dynamic Select and SelectOptions

2009-08-11 Thread Raghu Kasturi
Excellent, works perfect. But the only change is instead of getModelObjectAsString() use getDefaultModelObjectAsString(). Very good idea, but the only problem is if I have 7 option groups with each option group with 5-6 options HTML will be really long. Thanks, Raghu tbt wrote: > > > homar70

Re: Dynamic Select and SelectOptions

2008-12-23 Thread tbt
homar70 wrote: > > Hi, > > I have trouble of finding out how to make dynamic optgroups and options > from the select and selectoptions in wicket-extensions. The same issue is > described in this post > http://www.nabble.com/Select-and-SelectOptions-td11684707.html#a11695243 > > Any ideas? > >