Hello All,

I didn't get any reply to my previous post, so I am reposting it.

I have defined two formsets in my validation.xml file.  One is the default 
(with no country and language) and the other one is for the country PK & 
language en.  I have defined validations for my form FormSelectCountry in 
the default formset (this validation is not present in the other formset). 
Now whenever in my application the locale is set ot en_US, the link to 
FormSelectCountry works fine.  But if locale is set to en_PK in the 
application, I get the following exception.

javax.servlet.jsp.JspException: No form found under 'FormSelectCountry' in 
locale 'en_PK'
at 
org.apache.struts.taglib.html.JavascriptValidatorTag.renderJavascript(JavascriptValidatorTag.java:364)
at 
org.apache.struts.taglib.html.JavascriptValidatorTag.doStartTag(JavascriptValidatorTag.java:335)
at 
org.apache.jsp.pages.ssl.select_005fcountry_jsp._jspx_meth_html_javascript_0(select_005fcountry_jsp.java:110)
at 
org.apache.jsp.pages.ssl.select_005fcountry_jsp._jspService(select_005fcountry_jsp.java:81)

Duplicating the validations for FormSelectCountry in the other formset fixes
exception.

This seems a bit strange to me, will I have to duplicate the validations for
each form in all my localised formsets?  Have I missed something here?  Can
anyone show me what is the right way to do this?  Having to duplicating form
entries in each locale seems wrong.

Regards,
Muhammad Momin Rashid. 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to