I am using JSF custom validator to fetch an error message from proper resource bundle.
The syntax used is
<myCustom:regexValidator regex="^[a-zA-Z0-9_\\/\-\. ]*$"
validationMessage="#{resourceBundle['name.format.error']}" />
Now what happens is, the error message returned is always fetched from Messages_en_US.properties file.
How do I fetch the message from Messages_ar_AE.properties file? Is there a place where i need to set the Locale, for the application to identify the correct Resource Bundle file?
Thanks.