Hi All,

I have a form in which the user has to enter some data and then submit the form.

If at all he misses anything , he should be informed that all fields are 
required.

To do this , i used validator attribute in the form elements. 

But this validation does a page refresh and then shows the errors in 
<tc:message> or <tc:messages/>

But i was asked to do the validation without page refresh, in a javascript 
alert message, and the message should be i18n format.

I used the "onclick" attribute and called a javascript function which gives a 
alert if any field is empty.

But how can i show the messages in i18n format. Validation error will differ 
based upon the validations i do. so the alert message should be shown to the 
user based upon his locale set.

How can i achieve this ?

thnx in advance

Regards,
Madan




                
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

Reply via email to