struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nils-Helge Garli Hegvik <nil...@gmail.com>
Subject Re: [Struts 2] Disabled fields are not posted on form submission
Date Wed, 13 May 2009 09:52:38 GMT
Are you sure that you really want to disable it? Can you use a hidden
field, or hide the field with css, if you're just trying to hide it
from the user?

Nils-H

On Wed, May 13, 2009 at 11:28 AM, Fernandes Celinio
<cfernandes@sopragroup.com> wrote:
> Hi,
>
> Disabled fields by W3 specifications will not get posted on form
> submission (http://www.w3.org/TR/html4/interact/forms.html#h-17.12.1).
>
>        <s:textfield
>                        key="Label_DateCreation"
>                        id="dateCreation"
>                        name="dateCreation"
>                        labelposition="left"
>                        maxlength="30"
>                        required="true"
>                        disabled="%{fieldDisabled}"
>        />
>
> In my case, the textfield "dateCreation" has a "disabled" attribute set
> to true (fieldDisabled is set to true).
>
> How do i submit the value of a disabled text field ?
> Is there an interceptor that already takes care of it in Struts 2 ?
>
> Thanks for helping.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message