Download

Get Loom

TextArea

Automatic TextArea calculations

Any textarea with an associated cols or rows value will do a best guess for the other attribute using the associated maximum length, if any:

public class Customer {

  @Column(length=400)
  private String description;

}
<-- This will generate a textarea tag with cols=80, rows=5 -->
<l:textArea name="customer.description" cols="80"/>