Class SessionLocaleInterpolator
- java.lang.Object
-
- org.apache.wicket.bean.validation.SessionLocaleInterpolator
-
- All Implemented Interfaces:
javax.validation.MessageInterpolator
public class SessionLocaleInterpolator extends Object implements javax.validation.MessageInterpolator
MessageInterpolator
that adapts another to a locale from Wicket'sSession
- Author:
- igor
-
-
Constructor Summary
Constructors Constructor Description SessionLocaleInterpolator(javax.validation.MessageInterpolator delegate)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
interpolate(String messageTemplate, javax.validation.MessageInterpolator.Context context)
String
interpolate(String message, javax.validation.MessageInterpolator.Context context, Locale locale)
-
-
-
Constructor Detail
-
SessionLocaleInterpolator
public SessionLocaleInterpolator(javax.validation.MessageInterpolator delegate)
Constructor- Parameters:
delegate
- the MessageInterpolator to delegate to
-
-
Method Detail
-
interpolate
public String interpolate(String messageTemplate, javax.validation.MessageInterpolator.Context context)
- Specified by:
interpolate
in interfacejavax.validation.MessageInterpolator
-
interpolate
public String interpolate(String message, javax.validation.MessageInterpolator.Context context, Locale locale)
- Specified by:
interpolate
in interfacejavax.validation.MessageInterpolator
-
-