dev@woodstock.java.net

Re: ReadOnly attribute is deprected. Why?

From: richard ratta <Richard.Ratta_at_Sun.COM>
Date: Fri, 25 Apr 2008 08:40:52 -0400

The problem with the "readOnly" attribute was that it did not just
affect the
appearance, like "greyout", the select element, but changed what was
rendered
structurally. This caused lots of complications in the implementation,
as well
as the layout of the page, when the attribute was toggled dynamically on
the client.

Get the values of the dropDown, if it is multiple selections, or the
single value
if it is single selection and render the result as a string of
StaticText in the format
that is consistent with your application.

You may have to use a converter if the values are not String. It depends
on your application.


-rick

Sergey wrote:

> Hello,
>
> I use component dropDownList. I need to use attribute ReadOnly. The
> attribute is deprected starting from version 4.1.
>
> Why?
>
>
> How do now I realize the regime ReadOnly for component dropDownList?
>
>
>
> Sergey.
>