struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rafael Nami" <rafan...@gmail.com>
Subject Re: How to make a SELECT list readonly? If set disabled, loses the value when submit.
Date Wed, 01 Nov 2006 20:21:22 GMT
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.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message