/** * Retrieve the Errors instance for the given bind object, using the * "defaultHtmlEscape" setting. * @param name name of the bind object * @return the Errors instance, or {@code null} if not found */ @Nullable public Errors getErrors(String name) { return getErrors(name, isDefaultHtmlEscape()); }
this.errors = requestContext.getErrors(beanName, false);
@Override public Optional<Errors> getErrors(final String name, final boolean htmlEscape) { return Optional.ofNullable(this.requestContext.getErrors(name, htmlEscape)); }
@Override public Optional<Errors> getErrors(final String name) { return Optional.ofNullable(this.requestContext.getErrors(name)); }
/** * Retrieve the Errors instance for the given bind object, using the * "defaultHtmlEscape" setting. * @param name name of the bind object * @return the Errors instance, or {@code null} if not found */ public Optional<Errors> getErrors(String name) { return getErrors(name, isDefaultHtmlEscape()); }
this.errors = requestContext.getErrors(beanName, false).orElse(null);