public final class FieldUtils extends Object
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
Modifier and Type | Field and Description |
---|---|
static String |
ALL_EXPRESSION |
static String |
ALL_FIELDS |
static String |
GLOBAL_EXPRESSION |
Modifier and Type | Method and Description |
---|---|
static List<DetailedError> |
detailedErrors(org.thymeleaf.context.IExpressionContext context) |
static List<DetailedError> |
detailedErrors(org.thymeleaf.context.IExpressionContext context,
String field) |
static List<String> |
errors(org.thymeleaf.context.IExpressionContext context) |
static List<String> |
errors(org.thymeleaf.context.IExpressionContext context,
String field) |
static org.springframework.web.servlet.support.BindStatus |
getBindStatus(org.thymeleaf.context.IExpressionContext context,
boolean optional,
String expression) |
static org.springframework.web.servlet.support.BindStatus |
getBindStatus(org.thymeleaf.context.IExpressionContext context,
String expression) |
static org.springframework.web.servlet.support.BindStatus |
getBindStatusFromParsedExpression(org.thymeleaf.context.IExpressionContext context,
boolean optional,
boolean useSelectionAsRoot,
String expression) |
static org.springframework.web.servlet.support.BindStatus |
getBindStatusFromParsedExpression(org.thymeleaf.context.IExpressionContext context,
boolean useSelectionAsRoot,
String expression) |
static List<DetailedError> |
globalDetailedErrors(org.thymeleaf.context.IExpressionContext context) |
static List<String> |
globalErrors(org.thymeleaf.context.IExpressionContext context) |
static boolean |
hasAnyErrors(org.thymeleaf.context.IExpressionContext context) |
static boolean |
hasErrors(org.thymeleaf.context.IExpressionContext context,
String field) |
static boolean |
hasGlobalErrors(org.thymeleaf.context.IExpressionContext context) |
static String |
idFromName(String fieldName) |
public static final String ALL_FIELDS
public static final String GLOBAL_EXPRESSION
public static final String ALL_EXPRESSION
public static boolean hasErrors(org.thymeleaf.context.IExpressionContext context, String field)
public static boolean hasAnyErrors(org.thymeleaf.context.IExpressionContext context)
public static boolean hasGlobalErrors(org.thymeleaf.context.IExpressionContext context)
public static List<String> errors(org.thymeleaf.context.IExpressionContext context, String field)
public static List<String> globalErrors(org.thymeleaf.context.IExpressionContext context)
public static List<DetailedError> detailedErrors(org.thymeleaf.context.IExpressionContext context)
public static List<DetailedError> detailedErrors(org.thymeleaf.context.IExpressionContext context, String field)
public static List<DetailedError> globalDetailedErrors(org.thymeleaf.context.IExpressionContext context)
public static org.springframework.web.servlet.support.BindStatus getBindStatus(org.thymeleaf.context.IExpressionContext context, String expression)
public static org.springframework.web.servlet.support.BindStatus getBindStatus(org.thymeleaf.context.IExpressionContext context, boolean optional, String expression)
public static org.springframework.web.servlet.support.BindStatus getBindStatusFromParsedExpression(org.thymeleaf.context.IExpressionContext context, boolean useSelectionAsRoot, String expression)
public static org.springframework.web.servlet.support.BindStatus getBindStatusFromParsedExpression(org.thymeleaf.context.IExpressionContext context, boolean optional, boolean useSelectionAsRoot, String expression)
Copyright © 2016 The THYMELEAF team. All rights reserved.