I forgot, my corp pays for me.  
Sorry about that.  

Here are some suggestions from that page:

- while loading file, create one hidden input type[field] and assign 
  dropdown selected value to this hidden input type. When you will 
  submit the page, extract value from this hidden filed

- restore back to original value when user try to change
  <select name="s1" onchange="restoreOld(this);return false;">
    ...
  </select>
  <input type="hidden" name="s1_old" id="s1_old" value="<s1's value>">
  <script language="javascript">
    function restoreOld(sObj){
       sObj.selectedIndex=document.getElementById("s1_old").value;
    }
  </script>
 




-----Original Message-----
From: arunabh [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 17, 2008 1:19 AM
To: user@struts.apache.org
Subject: RE: Want to make dropdown (<s:select>) readonly without making
it disabled


Hi ,

Thank you for the reply . But the side you reffered me to , they charge
money for signing up . And without signing up i can't see the solutions
. So
could tell me what is the solution for the problem . 

With Regards
Arunabh 


Kawczynski, David wrote:
> 
> Try picking one of the suggestions from here:
>
http://www.experts-exchange.com/Programming/Languages/Java/J2EE/JSP/Q_23
> 689617.html 
> 
> -----Original Message-----
> From: arunabh [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 16, 2008 10:13 AM
> To: user@struts.apache.org
> Subject: Want to make dropdown (<s:select>) readonly without making it
> disabled
> 
> 
> Hi,
> 
> I'm using struts2. I want to make a drop down (<s:select />) as a read
> only
> element. If I use disabled attribute the data would be lost upon
> submission.
> So I can't use disabled. 
> How do I make it read only without losing the data while submission?
> 
> Thanks,
> Arunabh 
> -- 
> View this message in context:
>
http://www.nabble.com/Want-to-make-dropdown-%28%3Cs%3Aselect%3E%29-reado
> nly-without-making-it-disabled-tp20014436p20014436.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> Notice:  This e-mail message, together with any attachments, contains
> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
> New Jersey, USA 08889), and/or its affiliates (which may be known
> outside the United States as Merck Frosst, Merck Sharp & Dohme or
> MSD and in Japan, as Banyu - direct contact information for affiliates
is
> available at http://www.merck.com/contact/contacts.html) that may be
> confidential, proprietary copyrighted and/or legally privileged. It is
> intended solely for the use of the individual or entity named on this
> message. If you are not the intended recipient, and have received this
> message in error, please notify us immediately by reply e-mail and
> then delete it from your system.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/Want-to-make-dropdown-%28%3Cs%3Aselect%3E%29-reado
nly-without-making-it-disabled-tp20014436p20027257.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and
then delete it from your system.


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

Reply via email to