@Override public PropertyDescriptorMessageBean getMessageBean() { return (PropertyDescriptorMessageBean) super.getMessageBean(); }
/** * Returns the violations as message text. * * @param locale the locale to use. * @return the violations as message text. */ @MessageParam("violations") public final String getViolationsAsText(final Locale locale) { final StringBuilder buffer = new StringBuilder(); if (propertyViolations != null && !propertyViolations.isEmpty()) { for (final PropertyException violation : propertyViolations) { buffer.append(" ").append(violation.getLocalizedMessage(locale)) .append('\n'); } } return StringUtils.chomp(buffer.toString()); }