Could you use the html standard attribute 'disabled'? For example:
<html:select disabled='disabled' /> would make your select box disabled
and effectively read only.

disabled='' is selectable (default)
disabled='disabled' is read only.

Simply put this attribute is a session/request scope variable and that
should do the job 


Rob Langridge 
Analyst Programmer - Java CoE
e: [EMAIL PROTECTED] 



-----Original Message-----
From: Vinicius Carvalho [mailto:[EMAIL PROTECTED] 
Sent: 17 July 2006 20:10
To: Struts Users Mailing List
Subject: html:select disable problem

Hello there! I believe this is an HTML/HTTP issue, but...

I have a userForm that some of the fields (selects) when the user is
editing must come as readonly (disabled). Well, that's almost ok,
because I need that data on the action called by the form, and those
values are not passed to the action.
I tried to use hidden values together with the html:select, but it seems
that struts is too smart and its not setting the values, keeping the
null ones :(

Any solutions for this dumb problem?

Regards

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This communication together with any attachments transmitted with it ("this 
E-Mail") is intended only for the use of the addressee and may contain 
information which is privileged and confidential.  If the reader of this E-Mail 
is not the intended recipient or the employee or agent responsible for 
delivering it to the intended recipient you are hereby notified that any use, 
dissemination, forwarding, printing or copying of this E-Mail is strictly 
prohibited.  Addressees should check this E-mail for viruses.  The Company 
makes no representations as regards the absence of viruses in this E-Mail.  If 
you have received this E-Mail in error please notify our IT Service Desk 
immediately by e-mail at [EMAIL PROTECTED]  Please then immediately delete, 
erase or otherwise destroy this E-Mail and any copies of it.

Any opinions expressed in this E-Mail are those of the author and do not 
necessarily constitute the views of the Company.  Nothing in this E-Mail shall 
bind the Company in any contract or obligation.

For the purposes of this E-Mail "the Company" means The Carphone Warehouse 
Group Plc and/or any of its subsidiaries.

Please feel free to visit our website:  http:// www.carphonewarehouse.com or 
http://www.phonehouse.com

The Carphone Warehouse Group Plc (Registered in England No. 3253714) 1 Portal 
Way, London W3 6RS


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to