Seems to me that this violates good UI design. I mean, what purpose does a Select Box have if you can't select anything. If I rememember my UI theory correctly, the selections should be displayed in a form such as static text that makes it clear that they aren't changeable.
I might use a table (single column to mimic the layout of the Select) and display static text in it for the selected items. :-> -----Original Message----- :-> From: Srinivas Kusunam [mailto:[EMAIL PROTECTED] :-> Sent: Friday, February 20, 2004 10:11 AM :-> To: [EMAIL PROTECTED] :-> Subject: Re: How to make readonly in Select Box :-> :-> :-> :-> We are achieving the same using disabled property. First :-> you need to check for the mode if it is edit then make your :-> select box is disabled with the selected value (you might :-> be having this already selected value in some where :-> session.....). If you need to retrieve the value in this :-> edit mode retrieve it from the already stored value (session). :-> :-> otherwise as meeru suggested display it in a readonly textbox. :-> :-> Thanks, :-> Srini :-> :-> :-> >>> [EMAIL PROTECTED] 02/20/04 09:38AM >>> :-> Hi, :-> :-> I want to make readyonly in Select Box. If i gave :-> readonly="true". :-> There is no property :-> called readonly..What i have to do for that one.... :-> :-> <html:select property="depid" size="1"> :-> <html:option value="1"> :-> Marketing :-> </html:option> :-> <html:option value="2"> :-> Human Resource :-> </html:option> :-> <html:option value="3"> :-> Administration :-> </html:option> :-> </html:select> :-> :-> Bye :-> Ram :-> :-> :-> ------------------------------------------------------------ :-> --------- :-> To unsubscribe, e-mail: [EMAIL PROTECTED] :-> For additional commands, e-mail: :-> [EMAIL PROTECTED] :-> :-> :-> :-> ------------------------------------------------------------ :-> --------- :-> To unsubscribe, e-mail: [EMAIL PROTECTED] :-> For additional commands, e-mail: [EMAIL PROTECTED] :-> :-> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

