I have Product description attribute and set the max length to be 512:
@Column(name = "DESCRIPTION", length = 512)
protected String description;
in product-edit.xml:
<richTextArea id="prodDescription"
datasource="productDs"
property="description"
width="100%"/>
Then on product edit screen, I can type in text more than 512 characters without any limitation or warning.
The document says at:
https://doc.cuba-platform.com/manual-6.6/gui_TextField.html#gui_TextField_ValueChangeListener
“If a text field is linked to an entity attribute (via datasource and property), and if the entity attribute has a length parameter defined in the @Column JPA-annotation, then the TextField will limit the maximum length of entered text accordingly.”
Does the max length constraint (512 in my case) work, or I am missing something?
Thank you,
-Mike