Package org.thymeleaf.spring6.util
Class FieldUtils
Object
org.thymeleaf.spring6.util.FieldUtils
Static utility class containing methods for dealing with form fields in Spring-enabled environments.
Note a class with this name existed since 1.0, but it was completely reimplemented in Thymeleaf 3.0
- Since:
- 3.0.3
- Author:
- Daniel Fernández, Tobias Gafner
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<DetailedError>
detailedErrors
(IExpressionContext context) static List<DetailedError>
detailedErrors
(IExpressionContext context, String field) errors
(IExpressionContext context) errors
(IExpressionContext context, String field) static IThymeleafBindStatus
getBindStatus
(IExpressionContext context, boolean optional, String expression) static IThymeleafBindStatus
getBindStatus
(IExpressionContext context, String expression) static IThymeleafBindStatus
getBindStatusFromParsedExpression
(IExpressionContext context, boolean optional, boolean useSelectionAsRoot, String expression) static IThymeleafBindStatus
getBindStatusFromParsedExpression
(IExpressionContext context, boolean useSelectionAsRoot, String expression) static List<DetailedError>
globalDetailedErrors
(IExpressionContext context) globalErrors
(IExpressionContext context) static boolean
hasAnyErrors
(IExpressionContext context) static boolean
hasErrors
(IExpressionContext context, String field) static boolean
hasGlobalErrors
(IExpressionContext context) static String
idFromName
(String fieldName)
-
Field Details
-
ALL_FIELDS
- See Also:
-
GLOBAL_EXPRESSION
- See Also:
-
ALL_EXPRESSION
- See Also:
-
-
Method Details
-
hasErrors
-
hasAnyErrors
-
hasGlobalErrors
-
errors
-
errors
-
globalErrors
-
detailedErrors
-
detailedErrors
-
globalDetailedErrors
-
idFromName
-
getBindStatus
-
getBindStatus
public static IThymeleafBindStatus getBindStatus(IExpressionContext context, boolean optional, String expression) -
getBindStatusFromParsedExpression
public static IThymeleafBindStatus getBindStatusFromParsedExpression(IExpressionContext context, boolean useSelectionAsRoot, String expression) -
getBindStatusFromParsedExpression
public static IThymeleafBindStatus getBindStatusFromParsedExpression(IExpressionContext context, boolean optional, boolean useSelectionAsRoot, String expression)
-