Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to make struts <html:select> tag readOnly....!!!!

843840Mar 17 2008 — edited Mar 18 2008
Hi All,
In my below code I want to make <html:select> as readonly like I did for <html:text>
I don't want to make it disabled as it is graying out that field.
My requirement is that it should be visible and also it shouldn't be editable.
I am using Struts...!!!
<html:text property="paramName" size="20" maxlength="50" readonly="true"/>&nbsp;&nbsp;						
<html:select property="paramTypeId" disabled="true"> // I dont want to use this--- disabled="true"
	<html:options collection="queryReturnType" property="value" labelProperty="label"/>
</html:select>
Thanks in advance....!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 15 2008
Added on Mar 17 2008
7 comments
4,101 views