-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
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.
If your modal window ID is modalDialog,then you have to write as:
@Wire ("#modalDialog")
Window modalWindow;
@command("addRateRow")
public void addRateRow()
{
saving.........code...;
modalWindow.detach();
}
Try it.It will work.
Asked: 2012-08-20 11:30:50 +0800
Seen: 115 times
Last updated: Aug 23 '12