Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing error messages defined in package.properties from MyAction.validate method

 
Fletcher Munson
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do pull messages from the package.properties file for my actions? I'm running some user entered data against my DB, and need to display an error message if the validation fails. I would like to just define the message in the package.properties file with the rest of the ones I've defined for the xml validation, but I don't understand how to access them in the validate method in my action. I thought it would be something like addActionError("myMessage");, but this only displays myMessage on the GUI. Can someone give me a hint?

Thank you in advance,
Fletcher
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Fletcher Munson
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ever have those moments were you feel totally brilliant? This is not one of them.

Thanks again.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ever have those moments were you feel totally brilliant?

No :(
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic