Restricting text length in textarea in JSF can be done as below. Here we restrict the maximum length to be 390 and the minimum length to be 10. Please note that these restrictions will be applied only when the required attribute is true.