|
message
The message category covers the messages element of dWebSpec.
This category captures the various way platforms would capture messages and display them on the page view.
The messages element provides messages for the page or enclosing form; whereas the message element provides messages for individual elements.
Some of the features provided by platforms are, Categorization of messages, Standardized error messages, Field error messages, and internationalization. These are expanded upon below.
Categorization of messages
This involves means of grouping the errors into categories, which would allow showing the appropriate messages, as relevant or per user customization. It also allow applying different styles to the messages, for instance red fonts for errors, and green for informational.
Standardized error messages
A scheme is usually provided to define a list of standardize messages. These messages would allow some level of customization, by including tokens or place holder that could be replaced with predetermined or ad-hoc strings.
There would also be standard means to add custom messages at runtime.
Field Errors
The standardized errors could be leverage to allow passing the field label as parameter to make it appear field specific.
The validator would allow for message specifications. The syntax is as follow; it should be noted that the variables required vary for the different validations.
Validator:message,variable1,variable2,...
Example being: MaxLengthValidator:"Text must be less than 24 characters",25
Specification of element validation messages in dWebSpec.
Internationalization
All the messages discussed above, should have possibility of being presented as simply string or externalized strings for internationalization.
|