List of usage examples for org.apache.wicket.util.convert ConversionException getLocale
public final Locale getLocale()
From source file:org.wicketstuff.multitextinput.MultiTextInput.java
License:Apache License
/** * Robbed from {@link FormComponent}/*from w ww .j a v a2s .co m*/ * * @param e * @param error */ private void reportValidationError(ConversionException e, ValidationError error) { final Locale locale = e.getLocale(); if (locale != null) { error.setVariable("locale", locale); } error.setVariable("exception", e); Format format = e.getFormat(); if (format instanceof SimpleDateFormat) { error.setVariable("format", ((SimpleDateFormat) format).toLocalizedPattern()); } Map<String, Object> variables = e.getVariables(); if (variables != null) { error.getVariables().putAll(variables); } error(error); }