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
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
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]
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
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
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:
> >
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
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
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
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
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
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
12 matches
Mail list logo