Interface ConvertDateTimeTagDeclaration

All Superinterfaces:
HasFor

public interface ConvertDateTimeTagDeclaration extends HasFor
Register a DateTimeConverter instance on the UIComponent associated with the closest parent UIComponent custom action.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setBinding(javax.el.ValueExpression binding)
    A ValueExpression that evaluates to an instance of ConvertDateTimeHandler.
    void
    setLocale(javax.el.ValueExpression locale)
    Locale whose predefined styles for dates and times are used during formatting or parsing.
    void
    setPattern(String pattern)
    Custom formatting pattern which determines how the date/time string should be formatted and parsed.
    void
    setTimeZone(javax.el.ValueExpression timeZone)
    Time zone in which to interpret any time information in the date String.
    void
    Specifies what contents the string value will be formatted to include, or parsed expecting.

    Methods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasFor

    setFor
  • Method Details

    • setBinding

      void setBinding(javax.el.ValueExpression binding)
      A ValueExpression that evaluates to an instance of ConvertDateTimeHandler.
    • setLocale

      void setLocale(javax.el.ValueExpression locale)
      Locale whose predefined styles for dates and times are used during formatting or parsing. If not specified, the Locale returned by FacesContext.getViewRoot().getLocale() will be used. Value must be either a VB expression that evaluates to a java.util.Locale instance, or a String that is valid to pass as the first argument to the constructor java.util.Locale(String language, String country). The empty string is passed as the second argument.
    • setPattern

      void setPattern(String pattern)
      Custom formatting pattern which determines how the date/time string should be formatted and parsed. Pattern chars 'G', 'W', 'F', 'K', 'z' and 'X' are not supported.
    • setTimeZone

      void setTimeZone(javax.el.ValueExpression timeZone)
      Time zone in which to interpret any time information in the date String. Value must be either a VB expression that evaluates to a java.util.TimeZone instance, or a String that is a timezone ID as described in the javadocs for java.util.TimeZone.getTimeZone().
    • setType

      void setType(String type)
      Specifies what contents the string value will be formatted to include, or parsed expecting. Valid values are "date", "time", "both", "calendar", "localDate", "localDateTime", "localTime", "offsetTime", "offsetDateTime", and "zonedDateTime". The values starting with "local", "offset" and "zoned" correspond to Java SE 8 Date Time API classes in package java.time with the name derived by upper casing the first letter. For example, java.time.LocalDate for the value "localDate". Default value is "date".