dev@javaserverfaces.java.net

Re: Should disabledClass be applied to select element too?

From: Jayashri Visvanathan <Jayashri.Visvanathan_at_Sun.COM>
Date: Wed, 14 Sep 2005 10:17:00 -0700

Hi Mike,
  I looked at the Std. HTML Renderkit docs and it doesn't mention
anything specifically about how "disabled" should be handled with
respect to options. That said, this sounds like a bug to me. If the
component is "disabled", shouldn't we render "disabled" on select
element, applying the disabledClass in addition to disabling the options
that are disabled.
Roger, does the Spec need to clarify this or can we just fix this in the
RI ?
Thanks
-Jayashri

Michael Youngstrom wrote:

> I'm using a selectManyListbox. When I disable the component only the
> options get the disabledClass applied to them. This is fine except if
> the listBox is empty then it doesn't look disabled. I think it would
> be nice to applying disabledClass to the select element as well as the
> options for selectManyListbox and maybe the other select components.
> What do you think? I could probably create and issue and a patch
> however I'm not sure what kind of spec implications it has.
>
> Mike