The default value is list value. For example, my code is as follow:
What I want is on validation error to repopulated data that user entered not
the one that comes with list from database.
From: Łukasz Lenart
To: Struts Users Mailing List ; Omar Ngarigari
2012/6/15 Omar Ngarigari :
> Please advice me on how to repopulate data on s:textfield after validation
> error. When a user enters some values on the s:textfield or s:select fields
> and click submit button validation error displays, the values goes back to
> the default not the ones that a use
Hello,
Please advice me on how to repopulate data on s:textfield after validation
error. When a user enters some values on the s:textfield or s:select fields and
click submit button validation error displays, the values goes back to the
default not the ones that a user entered in first place.
Do you use Spring ? If so, action must have scope="prototype"
Regards
--
Łukasz
mobile +48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/
-
To unsubscribe, e-mail: user-unsubscr..
Thank you very much, it helps so much on validation and format issues.
But when I use the simple theme, the validation display multiple times as long
as I continue to trigger the validation.
Ex: 1rst time I submit form, it return:
[field1]
*must not be null
But when I tried to trigger a again b
Use simple theme and add tag to display validation
messages or per each field
http://struts.apache.org/2.x/docs/actionerror.html
http://struts.apache.org/2.x/docs/fielderror.html
Regards
--
Łukasz
mobile +48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://conf
6 matches
Mail list logo