How to close popup when button has @command binding

asked 2012-08-20 11:30:50 +0800

tisaksen gravatar image tisaksen
46 6


I've got a page which has a button to open a popup.

In that popup there's a grid and a save button. The save button is defined as follows:

<button id="btnSave" label="Lagre" onClick="@command('addRateRow')"/>

Question is, how do I close the popup ?

I'm using MVVM. No composers or anything. POJO's and .zul files only.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2012-08-23 06:15:30 +0800

psingh gravatar image psingh flag of India
963 8

If your modal window ID is modalDialog,then you have to write as:

@Wire ("#modalDialog")
Window modalWindow;

public void addRateRow()
Try it.It will work.

link publish delete flag offensive edit

answered 2012-08-23 06:42:14 +0800

tisaksen gravatar image tisaksen
46 6

It does work, thank you :)

link publish delete flag offensive edit
Your reply
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




Asked: 2012-08-20 11:30:50 +0800

Seen: 114 times

Last updated: Aug 23 '12

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