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
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
The solution is to nest the ListViews:
Markup:
Code:
Select select = new Select(selectId);
select.add(new ListView("optGroups", transList) {
@Override
protected
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
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
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?
>
>