struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srinivas Kusunam" <SNKUSU...@kcc.usda.gov>
Subject Re: How to make readonly in Select Box
Date Fri, 20 Feb 2004 16:10:56 GMT

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


>>> ramachandran@summitworks.com 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: struts-user-unsubscribe@jakarta.apache.org 
For additional commands, e-mail: struts-user-help@jakarta.apache.org 



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message