dev@woodstock.java.net

Re: Attribute "label" in JSF 1.2

From: richard ratta <Richard.Ratta_at_Sun.COM>
Date: Fri, 06 Jun 2008 09:40:40 -0400

Stefan Bley wrote:

>Hi,
>
>JSF 1.2 introduces the attribute "label" to most of the input components,
>e.g. <h:inputText>. That is to provide a useful component name that is shown
>in <h:message(s)> when validation errors occur.
>
>However, Woodstock itself provides a "label" attribute to shortcut the
>labeling of input components. So how would you plan to be highly compliant
>with the standard JSF components?
>
The "label" attribute you describe if it is defined on "inputText", is
not part of the JSF
component spec. It is part of the default JSP language binding or the
JSF default component set.

The Woodstock components are not a JSF implementation as per the spec,
since we are not an
implementation Woodstock does not have implement every part of the spec.
Woodstock is a JSF component library that extends the JSF component
model and runs on
JSF 1.2 implementations. Woodstock components extend from UIInput,
UICommand, UICompoent
and not the default component implementations.
I don't believe these classes define a "label" property.

>How can I use the "label" feature from JSF
>1.2 within Woodstock without having a label rendered?
>
>
You couldn't even if we didn't have a label attribute. The JSF classes
we extend
from do not define a "label" attribute.

-rick

>Regards, Stefan
>
>