Annotation Type Width


  • @Target({FIELD,METHOD})
    @Retention(RUNTIME)
    @Documented
    @UseWith({BEAN,COMPONENT,MIXIN,PAGE})
    public @interface Width
    Defines the desired width of the field used to edit the property. Note that width (generally equivalent to the size attribute of an HTML <input> element) is only used for presentation; validation must be used to actually enforce a maximum input length. May be placed on an getter or setter method, or on the matching field.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      int value
      The width used to display the field for the property (values less than one indicate unspecified).
    • Element Detail

      • value

        int value
        The width used to display the field for the property (values less than one indicate unspecified).