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: enter image description here

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

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -