struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anil Kumar T" <anilkum...@infics.com>
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.

Anil.

-----Original Message-----
From: Gareth Evans [mailto:gareth.evans@msoft.co.uk]
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.

Gareth

Rafael Nami wrote:
> You can choose to maintain the value from this select in a hidden
field,
> that will be submitted with your page. I was used to use another
approach,
> making the select enabled in the submit, but it was a great meal to
> hackers.
>
> 2006/11/1, Mississippi John Hurt <johnhurt@gmail.com>:
>>
>> Help, I can make <html:text> readonly by setting readonly="true"
which
>> 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
my
>> form
>> validation says its required.  How can I make the <html:select>
disabled
>> or
>> readonly while keeping the values it has passing back to the action
when
>> form is submitted. Thanks.
>>
>>
>

--
Gareth Evans

Senior Developer

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

--
Tel:    +44 (0)870 0100 704
Fax:    +44 (0)870 9010 705
E-Mail: gareth@msoft.co.uk
Web:    www.msoft.co.uk

----------------------------------------------
Terms:
Please note that any prices quoted within this e-mail are subject to
VAT.
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
----------------------------------------------
Disclaimer:
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
viruses,
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


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 info.in@infics.com and delete this email from your records.

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


Mime
View raw message