alejandro-du / crudui

Automatically generate CRUD-like Vaadin views for any Java Bean
https://vaadin.com/directory#!addon/crud-ui-add-on
Apache License 2.0
85 stars 54 forks source link

Pass domain object instance to a FieldProvider #102

Closed XakepSDK closed 2 years ago

XakepSDK commented 2 years ago

My field needs to know object that owns it. Breaks compatibility with previous versions of crudui.

alejandro-du commented 2 years ago

@XakepSDK thanks for your contribution. We might have to hold this PR for a while since I cannot break compatibility just now. I was considering adding a context kind of class that encapsulates what buildField() needs so that we can add more things to it in the future if needed without breaking compatibility. However, this would also be a breaking change itself.

alejandro-du commented 2 years ago

Thanks again for your contribution. It's available in 6.0.0 (requires Vaadin 23).