Hi easydoor,

2009/9/14 easydoor <christophe.foi...@valdoise.fr>:
> Naoki Takezoe <takezoe <at> gmail.com> writes:
>
> 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

CheckList does not use Option#render() to render items.
See the source code of CheckList:
http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/org/apache/click/extras/control/CheckList.java?view=markup

You have to create subclass of CheckList and override
render() method to generate HTML you want.

> For the other solution in JS, how do you decorate the CheckList Option ?

This is a jQuery example:

<script type="text/javascript">
$(document).ready(function(){
  $('ul#form_name_ul li').wrap('<a href="http://www.google.co.jp";></a>');
});
</script>

-- 
Naoki Takezoe

Reply via email to