cuba-platform / cuba

CUBA Platform is a high level framework for enterprise applications development
https://www.cuba-platform.com
Apache License 2.0
1.34k stars 221 forks source link

Provide a way to configure conversion errors displaying #1877

Open dtsaryov opened 5 years ago

dtsaryov commented 5 years ago

Environment

Description of the bug or enhancement

Current implementation shows tooltip next to field with error message:

image.png

But in CUBA 6 notification is shown:

image.png

It's suggested to introduce some configuration that will enable to manage how conversion errors will be shown

Updates

The user has the ability to choose the type of conversion errors displayed. The error display type can be set using the property:

cuba.web.conversionErrorDisplayType

The default value is EXCEPTION. You can change to NOTIFICATION.

QA

Checklist

MikhailSilk commented 5 years ago
  1. Add cuba.web.conversionErrorDisplayType=NOTIFICATION in the web-app.properties file
  2. Create a new entity
  3. Add a new attribute(for example with Double type)
  4. Create browse and editor screen for the entity and run the project
  5. Open the editor screen
  6. Enter some text in the double field and press ok

Actual behavior: Two notifications are displayed on the screen image

GlebDurygin commented 5 years ago

Revert changes