Re: How to repopulate data on s:textfield after validation error

2012-06-15 Thread Omar Ngarigari
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

Re: How to repopulate data on s:textfield after validation error

2012-06-15 Thread Łukasz Lenart
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

How to repopulate data on s:textfield after validation error

2012-06-15 Thread Omar Ngarigari
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.

Re: How to display 2 textfield while still being to use XML validation

2012-06-15 Thread Łukasz Lenart
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..

RE: How to display 2 textfield while still being to use XML validation

2012-06-15 Thread Nguyen Ngoc Hai (FSU17.BU2)
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

Re: How to display 2 textfield while still being to use XML validation

2012-06-15 Thread Łukasz Lenart
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