0

Confirm before delete

asked 2013-11-08 07:49:41 +0800

teltacworldwide gravatar image teltacworldwide
1

Hi, i want to know how to pass the argument row to method onEvent(Event e) ?

    @Command
@NotifyChange("companyAccessList") 
public void deleteConnectionCommand(@BindingParam("row") CompanyDBModel row)
{
    Messagebox.show("Are you sure to delete this connection ?","Delete",Messagebox.YES | Messagebox.NO, Messagebox.QUESTION, new EventListener()
     {
         public void onEvent(Event e)
         {
             if (Messagebox.ON_YES.equals(e.getName()))
            {
                 //i want to use here row variable
                                      data.deleteHostInfo(row); 
            }
         }

     });            
}
delete flag offensive retag edit

Comments

can you post feedback or accept answer?

chillworld ( 2014-01-14 21:34:20 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-11-08 08:36:53 +0800

chillworld gravatar image chillworld flag of Belgium
5337 4 9
https://github.com/chillw...

updated 2013-11-12 09:53:42 +0800

public void deleteConnectionCommand(@BindingParam("row") final CompanyDBModel row)

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-11-08 07:49:41 +0800

Seen: 21 times

Last updated: Nov 12 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More