Thanks Igor,

I copied SelectOptions and created a CustomSelectOptions  where 
onBeforeRender contains
.....
           SelectOption option =  new SimpleSelectOption("option", 
model, text);
           option.add(new AttributeAppender("class", new 
Model(renderer.getGroupValue(value)), " "));
           row.add(option);
.....

Also extended IOptionRenderer to add getGroupValue().

What i'm trying to do here is to create dynamic selects based on this recipe

http://www.bobbyvandersluis.com/articles/unobtrusivedynamicselect.php

I was actually trying to achieve the same thing using optgroup but I had 
no success.

http://www.lshift.net/blog/2007/02/21/improved-unobtrusive-linked-select-boxes


I'm still trying to see the wicket light. It is still very dark where 
I'm currently at.

THanks

Huy
> on selectoption, not directly on select
>
> -igor
>
>
> On 7/20/07, Huy Do <[EMAIL PROTECTED]> wrote:
>   
>> Hi,
>>
>> Is it possible to use an AttributeModifier on the DropDownChoice or
>> Select option element ? i.e <option class="myclass">
>> Thanks,
>>
>> Huy
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2005.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>     
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to