commercetools / commercetools-sunrise-java

The next generation shop framework by commercetools
https://demo.commercetools.com
Apache License 2.0
46 stars 35 forks source link

Add the field ID To the errorMessage. #678

Closed ahalberkamp closed 7 years ago

ahalberkamp commented 7 years ago

I have to rework the error handling for forms, so that the error message, which says that a required value is not set, is displayed directly "under" the empty form field. For doing this I need a kind of a mapping between the error message and the form field, to which the error message belongs. This mapping cannot be done using the sunrise Framework right now, because its Errorbeans, which encapsulate the errors, only contains the localized error message but not the ID of field, to which the error belongs