public final class Fields extends Object
Expression Object for performing form-field-related operations inside Thymeleaf Standard Expressions in Spring environments.
Note a class with this name existed since 1.0, but it was completely reimplemented in Thymeleaf 3.0
Constructor and Description |
---|
Fields(org.thymeleaf.context.IExpressionContext context) |
Modifier and Type | Method and Description |
---|---|
List<DetailedError> |
allDetailedErrors() |
List<String> |
allErrors() |
List<DetailedError> |
detailedErrors() |
List<DetailedError> |
detailedErrors(String field) |
List<String> |
errors() |
List<String> |
errors(String field) |
List<DetailedError> |
globalDetailedErrors() |
List<String> |
globalErrors() |
boolean |
hasAnyErrors() |
boolean |
hasErrors() |
boolean |
hasErrors(String field) |
boolean |
hasGlobalErrors() |
String |
idFromName(String fieldName) |
public boolean hasAnyErrors()
public boolean hasErrors()
public boolean hasErrors(String field)
public boolean hasGlobalErrors()
public List<DetailedError> allDetailedErrors()
public List<DetailedError> detailedErrors()
public List<DetailedError> detailedErrors(String field)
public List<DetailedError> globalDetailedErrors()
Copyright © 2017 The THYMELEAF team. All rights reserved.