Package org.thymeleaf.spring4.expression
Class Fields
- Object
-
- org.thymeleaf.spring4.expression.Fields
-
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
- Since:
- 3.0.0
- Author:
- Daniel Fernández, Tobias Gafner
-
-
Constructor Summary
Constructors Constructor Description Fields(org.thymeleaf.context.IExpressionContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
hasAnyErrors
public boolean hasAnyErrors()
-
hasErrors
public boolean hasErrors()
-
hasErrors
public boolean hasErrors(String field)
-
hasGlobalErrors
public boolean hasGlobalErrors()
-
allDetailedErrors
public List<DetailedError> allDetailedErrors()
-
detailedErrors
public List<DetailedError> detailedErrors()
-
detailedErrors
public List<DetailedError> detailedErrors(String field)
-
globalDetailedErrors
public List<DetailedError> globalDetailedErrors()
-
-