[DOCU-2098] Doc Site Feedback Created: 12/Jan/21  Updated: 12/Apr/21  Resolved: 16/Mar/21

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Thomas Martin Assignee: Ashraf Khamis
Resolution: Done Votes: 0
Labels: external
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Documentation page URL: https://docs.magnolia-cms.com/product-docs/Templating/Dialog-definition/Field-definition/List-of-fields/Text-field.html

 Description   

An error occurs when trying to create a text field with the type java.lang.Long (as per https://docs.magnolia-cms.com/product-docs/Templating/Dialog-definition/Field-definition/List-of-fields/Text-field.html). If you use that Java class, you also need to use com.vaadin.data.converter.StringToLongConverter as converterClass (https://jira.magnolia-cms.com/browse/MGNLUI-6355).

Update the Text field page with this info.



 Comments   
Comment by Ashraf Khamis [ 16/Mar/21 ]

Updated the common type property with the following note:

Make sure that type has a value matching the type of data you entered (for example, java.lang.Long for long values) and that converterClass is set accordingly.

Example definition

text:
  $type: textField
  type: java.lang.Long
  converterClass: com.vaadin.data.converter.StringToLongConverter

Reviewed by Roman.

Generated at Mon Feb 12 01:24:02 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.