org.apache.tapestry.form
Interface ValidationMessages

All Known Subinterfaces:
FormComponentContributorContext
All Known Implementing Classes:
FormComponentContributorContextImpl, ValidationMessagesImpl

public interface ValidationMessages

Support interface used to provide access to validation messages. Typically used by Validators.

Since:
4.0
Author:
Howard Lewis Ship

Method Summary
 String formatValidationMessage(String messageOverride, String messageKey, Object[] arguments)
          Formats a validation message.
 Locale getLocale()
          Returns the locale for which messages are generated.
 

Method Detail

formatValidationMessage

String formatValidationMessage(String messageOverride,
                               String messageKey,
                               Object[] arguments)
Formats a validation message. Automatically chooses the correct localization.

Parameters:
messageOverride - a supplied override to the default message format taken from the ValidationStrings.properties message catalog.
messageKey - used to look up the message format when messageOverride is blank (null or empty)
arguments - array of arguments formatted with the message format

getLocale

Locale getLocale()
Returns the locale for which messages are generated.



Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.