Dave Alvarado wrote:But isn't there a way I can define a single message in my resource bundle, yet somehow have customize it so that it reads
The field 'Subject' is required.
Instead of having 32 messages in my resource bundle for 32 fields? Please provide an example. Thanks, - Dave
Well, yes, actually, there is. You can put an attribute on the control to give it a display name to be used in the message in place of its system ID. However, since I'm too lazy to RTFM, I'll leave it to you.
Most of the time, I have the item messages displaying physically adjacent to their respective controls, so I just go with "*lt;- This item is REQUIRED" in red type. But you can do it your way as well.
Joined: Jul 02, 2008
Thanks for the suggestion, but the erorr is still displaying incorrectly ...
ERROR! The "index:Name" field requires a value.
and I want to get rid of "index:" (the name of the form). I tried the attribute thing you suggested, but it didn't eliminate the problem ...
Here is what is in my resources bundle ...
If you can point me to a link or a term to search on Google, that would be awesome. I tried searching with the phrase from your thread, "an attribute on the control to give it a display name" but didn't get anything meaningful. Thanks, - Dave
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Need some help customizing this error message