Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

@RequiredFieldValidator & i18n  RSS feed

 
E Robb
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a simple required field validator in an action and it validates the field as it should. I cant figure out how to get i18n messages returned through.

properties file contains:
username.requiredString = User Name is a required field.

Action has:


When I do action validation "username.requiredString" is returned as the error message from the properties file. I have also tried OGNL in the message=%{username.requiredString} but a literal is always returned instead of the string from the properties file. I bet I have tried this 8 different ways and I cant get the message from the properties file.

If I use XML validation the string from the properties file comes back fine.

Ideas?

Earl
 
E Robb
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was able to get this working by removing the message and adding a key. The key is then pulled from the properties file as I would expect. This seems to work fine.


 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!