Class Fields

Object
org.thymeleaf.spring5.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.3
Author:
Daniel Fernández, Tobias Gafner
  • Constructor Details

  • Method Details

    • hasAnyErrors

      public boolean hasAnyErrors()
    • hasErrors

      public boolean hasErrors()
    • hasErrors

      public boolean hasErrors(String field)
    • hasGlobalErrors

      public boolean hasGlobalErrors()
    • allErrors

      public List<String> allErrors()
    • errors

      public List<String> errors()
    • errors

      public List<String> errors(String field)
    • globalErrors

      public List<String> globalErrors()
    • idFromName

      public String idFromName(String fieldName)
    • allDetailedErrors

      public List<DetailedError> allDetailedErrors()
    • detailedErrors

      public List<DetailedError> detailedErrors()
    • detailedErrors

      public List<DetailedError> detailedErrors(String field)
    • globalDetailedErrors

      public List<DetailedError> globalDetailedErrors()