jpa-invoicer icon indicating copy to clipboard operation
jpa-invoicer copied to clipboard

Example for internal Grid editor and JPA

Open red-hood opened this issue 9 years ago • 2 comments

Hi,

it took me quite some time to figure out how to save an item which was edited by the internal Grid editor to a JPA database. I did not want to use the JPAContainer, as the documentation states it is now deprecated. Unfortunately, there is little documentation and examples on which events to register to, and which data to retrieve to get the actual bean, which can be persisted, so I think an example would be quite helpful.

Could you provide some, or should i try to make one and crate a pull request?

Cheers, Chris

red-hood avatar Oct 13 '16 19:10 red-hood

Hi,

I don't remember exactly what features of Table is used in this example. I'm not a big fan of the Grid's inline editor form as it seldom works in real life, but if some simple feature could be implemented with it, maybe it could indeed work.

Feel free to suggest a pull request!

mstahv avatar Nov 14 '16 20:11 mstahv

Maybe the "Product" view could be replaced with Grid editor based implementation? That should be simple enough.

mstahv avatar Nov 14 '16 21:11 mstahv