java - How to listen on save button or assign an event after it was clicked in Vaadin 7 -
when editing grid inline can save or cancel grid row changes. want update database entries after button 'save' pushed(data base mechanism has done) how can implement it?
my container: beanitemcontainer<categoryofservice> beanscontainer;
editing view:
all need know listeners have use. found commithandler can add editorfieldgroup class can't implement maybe there have way resolve problem.
there's kind of way capture inline save
click on grid.
grid.geteditorfieldgroup().addcommithandler(new fieldgroup.commithandler() { @override public void precommit(fieldgroup.commitevent commitevent) throws fieldgroup.commitexception { //... } @override public void postcommit(fieldgroup.commitevent commitevent) throws fieldgroup.commitexception { //... } });
after clicking save
both methods precommit , postcommit called.
hope helps :)
Comments
Post a Comment