struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fernandes Celinio" <cfernan...@sopragroup.com>
Subject RE: [Struts 2] Disabled fields are not posted on form submission
Date Wed, 13 May 2009 11:50:38 GMT
Ok, thanks.
I was thinking about using hidden fields indeed. I wanted to know if a built-in solution existed
with Struts 2.

-----Message d'origine-----
De : Lukasz Lenart [mailto:lukasz.lenart@googlemail.com] 
Envoyé : mercredi 13 mai 2009 11:55
À : Struts Users Mailing List
Objet : Re: [Struts 2] Disabled fields are not posted on form submission

2009/5/13 Fernandes Celinio <cfernandes@sopragroup.com>:
> How do i submit the value of a disabled text field ?
> Is there an interceptor that already takes care of it in Struts 2 ?

By HTML spec, disabled fields aren't send to a server, it isn't Struts issue but general rule.
You can consider to use readOnly attribute or use hidden fields


Regards
--
Lukasz
http://www.lenart.org.pl/

---------------------------------------------------------------------
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