struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anil Kumar T" <>
Subject RE: How to make a SELECT list readonly? If set disabled, loses thevalue when submit.
Date Thu, 02 Nov 2006 08:30:40 GMT

If you do not want the user to modify the select box then you should not
display the select. Just display a text/label.

If you can explain the scenario then you would get a better solution.


-----Original Message-----
From: Gareth Evans []
Sent: Thursday, November 02, 2006 1:52 PM
To: Struts Users Mailing List
Subject: Re: How to make a SELECT list readonly? If set disabled, loses
thevalue when submit.

You could add an onchange function that sets the selected item back to
the orginal item.


Rafael Nami wrote:
> You can choose to maintain the value from this select in a hidden
> that will be submitted with your page. I was used to use another
> making the select enabled in the submit, but it was a great meal to
> hackers.
> 2006/11/1, Mississippi John Hurt <>:
>> Help, I can make <html:text> readonly by setting readonly="true"
>> works.
>> <html:select> has no readonly attribute, only a disabled. If I use
>> disabled
>> attribute, then the value of the select is no longer recognized and
>> form
>> validation says its required.  How can I make the <html:select>
>> or
>> readonly while keeping the values it has passing back to the action
>> form is submitted. Thanks.

Gareth Evans

Senior Developer

MSoft eSolutions Limited
Technology Centre
Inward Way
Rossmore Business Park
Ellesmere Port
CH65 3EN

Tel:    +44 (0)870 0100 704
Fax:    +44 (0)870 9010 705

Please note that any prices quoted within this e-mail are subject to
All program details and code described in this e-mail are subject to
copyright (c) of MSoft eSolutions Limited and remain the intellectual
property of MSoft eSolutions Limited.
Any proposal or pricing information contained within this e-mail are
subject to MSoft eSolutions' Terms and Conditions
This message is intended only for use of the addressee. If this message
was sent to you in error, please notify the sender and delete this
message. MSoft eSolutions Limited cannot accept responsibility for
so please scan attachments. Views expressed in this message do not
necessarily reflect those of MSoft eSolutions Limited who will not
necessarily be bound by its contents.

To unsubscribe, e-mail:
For additional commands, e-mail:

Information transmitted by this e-mail is proprietary to Infinite Computer Solutions and /
or its Customers and is intended for use only by the individual or the entity to which it
is addressed, and may contain information that is privileged, confidential or exempt from
disclosure under applicable law. If you are not the intended recipient or it appears that
this mail has been forwarded to you without proper authority, you are notified that any use
or dissemination of this information in any manner is strictly prohibited. In such cases,
please notify us immediately at and delete this email from your records.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message