Java Reference
In-Depth Information
Finally, to make PhoneNumberTypeConverter easy to reuse, we would pro-
vide a general error message with the converter.phoneNumber.invalid key
in the StripesResources.properties file. That's the last key in the search,
and defining a message with that key would make sure that Stripes
uses it by default. Our type converter now works right out of the box!
Wrapping Up
Stripes gives you a reasonable display of information and error mes-
sages with minimal effort. If the defaults do not suit you, you can cus-
tomize just about everything about how you present messages to your
users. Using entries in the StripesResources.properties file and a touch of
CSS goes a long way.
So, what's next? When we started building the sample application in
Chapter 3 , The Core: Action Beans and JSPs, we touched on the topic
of reusable layouts. It's time to discuss them in more detail.
 
 
Search WWH ::




Custom Search