0

can't refresh grid from modal dialog

asked 2016-05-02 08:46:37 +0800

zigas gravatar image zigas
1

Hi every one , I have trouble with refresh data when data inserted to database using dialog window if not using modal dialog every thing is okay data refresh when button save clicked in the listbox this is my code : @Command("save") @NotifyChange("allData") public void saveData(){
data.save(this.newData);
}

but when I'm using modal dialog data can't refresh when button save clicked , thanks in advanced

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2016-05-02 09:27:57 +0800

Darksu gravatar image Darksu
1991 1 4

Hello zigas,

You should use a global command in the modal dialog as shown below:

BindUtils.postGlobalCommand(null, null, "method_name", args);

And in the main page you should declare a method using the @GlobalCommand

For more info please refer to the following:

http://books.zkoss.org/zk-mvvm-book/8.0/databinding/globalcommand_binding.html

Best regards,

Darksu

link publish delete flag offensive edit
0

answered 2016-05-03 06:53:57 +0800

zigas gravatar image zigas
1

done finally problem solved I change method @Command to @global-command, thanks very much

link publish delete flag offensive edit

Comments

In stead of posting extra post for thanking, upvote and accept answer as thanking

chillworld ( 2016-05-03 08:09:24 +0800 )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: 2016-05-02 08:46:37 +0800

Seen: 26 times

Last updated: May 03 '16

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