struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nguyen Ngoc Hai (FSU17.BU2)" <Hai...@fsoft.com.vn>
Subject RE: How to display 2 textfield while still being to use XML validation
Date Fri, 15 Jun 2012 10:15:36 GMT
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 by pressing submit, it return

[field1] 
*must not be null
*must not be null

Do you have any idea for this?

Thanks & best regards,

NGUYễN NGỌC HẢI (MR.)
Developer
Business Unit No2

FPT  Software Strategic Unit No.17
Add: 8th Floor, FPT Building, Pham Hung Road, Cau Giay Dist, Hanoi, Vietnam
E-mail: hainn3@fsoft.com.vn
Cell: 0169.808.9435




-----Original Message-----
From: Łukasz Lenart [mailto:lukasz.lenart@googlemail.com] 
Sent: Friday, June 15, 2012 4:22 PM
To: Struts Users Mailing List
Subject: Re: How to display 2 textfield while still being to use XML validation

Use simple theme and add <s:actionerror/> tag to display validation messages or <s:fielderror/>
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://confitura.pl/

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

Mime
View raw message