users@javaserverfaces-spec-public.java.net

[jsr344-experts mirror] [jsr344-experts] Re: FacesComponent API review

From: Kito Mann <kito.mann_at_virtua.com>
Date: Mon, 18 Mar 2013 10:18:12 -0400

> AS> Might have been nice to spec this such that if either the tag name or
> AS> the namespace is specified, the tag is created, without requiring
> AS> createTag to also be specified.
>
> AS> That is:
>
> AS> @FacesComponent(tagName="fooLayout")
> AS> public class Foo extends UIComponentBase
>
> AS> Results in the "fooLayout" tag being created in the default namespace.
>
> AS> @FacesComponent(namespace="http://my.namespace.org")
> AS> public class Foo extends UIComponentBase
>
> AS> Results in the "foo" tag being created in the specified namespace.
>
> AS> @FacesComponent(namespace="http://my.namespace.org",
> tagName="fooLayout")
> AS> public class Foo extends UIComponentBase
>
> AS> Results in the "fooLayout" tag being created in the specified
> namespace.
>
> AS> Additionally having to specify createTag=true seems unnecessary.
>
> I wanted to make the feature very much explicitly "opt-in".
>

Why? When would you *not* want a tag?


>
> Ed
>