I am getting the error js alert box but without any error messages : Step -1 : You add these properties in the - ApplicationResources.properties file : AddressForm.name=Name AddressForm.address=Address AddressForm.emailAddress=E-mail address
Step -2 : In the ApplicationResources.properties file add this line where such type of message are there : errors.required={0} is required.
Step -3 : Add these in the Validation.xml file : <!-- Address form Validation--> <form name="AddressForm"> <field property="name" depends="required"> <arg0 key="AddressForm.name"/> </field> <field property="address" depends="required"> <arg0 key="AddressForm.address"/> </field> <field property="emailAddress" depends="required"> <arg0 key="AddressForm.emailAddress"/> </field> </form>
Now your problem is going to be solved the alert box will come with the results.