Annotation Type Length
Requires the component value to have at least min characters. The
processor wires this into the Validator returned by
Binding#getValidator() as a
com.codename1.ui.validation.LengthConstraint(min, message).
@Bindable
public class SignupModel {
@Bind(name="passwordField") @Length(min = 8)
private String password;
}
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
min
int minMinimum number of characters. Use1for "non-empty" -- or just write@Requiredwhich is shorter and reads better. -
message
String messageOverride the default error message ("Input must be at least <min> characters").- Default:
""
-