myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikita Koselev" <kose...@gmail.com>
Subject Re: tomahawk - treeCheckbox renderer
Date Sat, 06 Sep 2008 05:07:01 GMT
Actually there is such a code in HtmlTreeCheckbox. So TreeCheckboxTag
says that component should render himself,
but later HtmlTreeCheckbox says that HtmlTreeCheckboxRenderer must render it.

    /** The default renderer type. */
    private static final String DEFAULT_RENDERER_TYPE =
"org.apache.myfaces.HtmlTreeCheckbox";

    /**
     * <p>
     * Default Constructor.
     * </p>
     */
    public HtmlTreeCheckbox()
    {
        setRendererType(DEFAULT_RENDERER_TYPE);
    }

2008/9/5 Leonardo Uribe <lu4242@gmail.com>:
>
>
> On Fri, Sep 5, 2008 at 2:03 PM, Nikita Koselev <koselev@gmail.com> wrote:
>>
>> Hi,
>>
>> I'm a bit messed up with tomahawk treeCheckbox tag.
>> org.apache.myfaces.taglib.html.ext.HtmlSelectBooleanCheckboxTag
>> returns null from getRendererType, which means that "the component
>> renders itself directly."
>>
>> However I can't  find encode method in
>> org.apache.myfaces.custom.tree.HtmlTreeCheckbox
>> So who renders treeCheckbox ?
>
> Checking the latest code, on AbstractHtmlTreeCheckbox:
>
> /*
>  * @JSFComponent
>  *   name = "t:treeCheckbox"
>  *   class = "org.apache.myfaces.custom.tree.HtmlTreeCheckbox"
>  *   tagClass = "org.apache.myfaces.custom.tree.taglib.TreeCheckboxTag"
>  * @since 1.1.7
>  * @author <a href="mailto:dlestrat@yahoo.com">David Le Strat</a>
>  */
> public abstract class AbstractHtmlTreeCheckbox extends UISelectItem
>
> The tag class is org.apache.myfaces.custom.tree.taglib.TreeCheckboxTag and
> the renderer is
> org.apache.myfaces.custom.tree.renderkit.html.HtmlTreeCheckboxRenderer
>
> regards
>
> Leonardo Uribe
>
>>
>> Regards,
>> Nikita Koselev
>
>



-- 
Nikita Koselev

Mime
View raw message