RE: How to make a SELECT list readonly? If set disabled, loses the value when submit.

2007-04-18 Thread Frank Russo
That's cool. I never thought of that... -Original Message- From: Lance [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 18, 2007 10:56 AM To: Struts Users Mailing List Subject: Re: How to make a SELECT list readonly? If set disabled, loses the value when submit. Another option

Re: How to make a SELECT list readonly? If set disabled, loses the value when submit.

2007-04-18 Thread Lance
Another option is to make a disabled style in your css and blur onfocus : Using a hidden element with the same name is slightly dodgy in that form.elements["id"] will return a different value depending if the hidden element is placed before or after the select. Megani wrote: Hey, i was ha

Re: How to make a SELECT list readonly? If set disabled, loses the value when submit.

2007-04-18 Thread Megani
Hey, i was having the same problem... i needed a (...) works fine ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to make a SELECT list readonly? If set disabled, loses the value when submit.

2006-11-03 Thread Yujun Liang
8 PM To: Struts Users Mailing List Subject: How to make a SELECT list readonly? If set disabled, loses the value when submit. Help, I can make readonly by setting readonly="true" which works. has no readonly attribute, only a disabled. If I use disabled attribute, then the value of the

RE: How to make a SELECT list readonly? If set disabled, loses the value when submit.

2006-11-02 Thread Dean, Michael
2006 12:18 PM To: Struts Users Mailing List Subject: How to make a SELECT list readonly? If set disabled, loses the value when submit. Help, I can make readonly by setting readonly="true" which works. has no readonly attribute, only a disabled. If I use disabled attribute, then the value

Re: How to make a SELECT list readonly? If set disabled, loses the value when submit.

2006-11-02 Thread Nitin M. Mandolkar
Is any on know other logic apart from this, then please share with us. ni3 On 11/2/06, Nitin M. Mandolkar <[EMAIL PROTECTED]> wrote: i used same logic, i.e. Hidden form field. ntin On 11/2/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote: > On 11/2/06, Gareth Evans <[EMAIL PROTECTED]> wrote: > >

Re: How to make a SELECT list readonly? If set disabled, loses the value when submit.

2006-11-02 Thread Nitin M. Mandolkar
i used same logic, i.e. Hidden form field. ntin On 11/2/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote: On 11/2/06, Gareth Evans <[EMAIL PROTECTED]> wrote: > > You could add an onchange function that sets the selected item back to the > orginal item. I wouldnt do that..imagine yourself as the u

Re: How to make a SELECT list readonly? If set disabled, loses the value when submit.

2006-11-02 Thread Puneet Lakhina
On 11/2/06, Gareth Evans <[EMAIL PROTECTED]> wrote: You could add an onchange function that sets the selected item back to the orginal item. I wouldnt do that..imagine yourself as the user with this kind of javascript. Gareth Rafael Nami wrote: > You can choose to maintain the value from t

Re: How to make a SELECT list readonly? If set disabled, loses the value when submit.

2006-11-02 Thread Gareth Evans
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 th

Re: How to make a SELECT list readonly? If set disabled, loses the value when submit.

2006-11-01 Thread Angelo zerr
Hi, if you see HTML specification at http://www.w3.org/TR/html401/interact/forms.html#h-17.6, select has not readonly (just disabled, but you can't use it for submiut value). So proposition of Rafael, is the same solution that I use. But when you have several select in your JSP, it begin borring t

Re: How to make a SELECT list readonly? If set disabled, loses the value when submit.

2006-11-01 Thread Rafael Nami
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 <[EMAIL PROTECTED]>: Help, I can make

How to make a SELECT list readonly? If set disabled, loses the value when submit.

2006-11-01 Thread Mississippi John Hurt
Help, I can make readonly by setting readonly="true" which works. 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 disabled or readonly while keeping the va