Naoki Takezoe <takezoe <at> gmail.com> writes:
>
> Hi easydoor,
>
> You have to override CheckList#render().
>
> Other solution,
> It would be possible to decorate <li> by JavaScript.
> CheckList renders following HTML:
>
> <ul id="form_name_ul">
> <li>
> <label for="name_0" class="checkListLabel">
> <input type="checkbox" value="1" id="name_0"
> name="standardList"/>Item 1</label>
> </li>
> <li>
> <label for="name_1" class="checkListLabel">
> <input type="checkbox" value="2" id="name_1"
> name="standardList"/>Item 2</label>
> </li>
> </ul>
>
> You would be able to pick <li> and insert <a> using JavaScript.
>
> Hope this helps!
>
> 2009/9/10 easydoor <christophe.foiret <at> valdoise.fr>:
> > Hi all,
> > I'd like to add a link on each option of a CheckList to display a jQuery
> > tootip.
> > I tried to use the HtmlStringBuffer with the render method on each option.
> > But this render method refers to a Select List and not a CheckList
> >
> > Thank you for your help
> >
> >
>
What do you say by override CheckList render ?
I tried to use the HtmlStringBuffer with the render method on each option
but this render method refers to a Select List and not a CheckList
HtmlStringBuffer buffer = new HtmlStringBuffer();
buffer.elementStart("a");
buffer.appendAttribute("href", "
http://www.valdoise.fr");
buffer.elementEnd();
Option option = new Option("First Option");
option.render(CheckList, buffer);<-- there is a pbm here, the first
argument is for a Select List not a CheckList
For the other solution in JS, how do you decorate the CheckList Option ?
Thanks