-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, I have a page with a grid of data. Then I click a button to open a pop-up window to edit one row's data. Then after I close the pop-up window how can I reload the parent page so that the edited value will show up ?
Thank you.
Hi
there are many way to change the grid's data, for example, you could use ListModel, just access the model and change it;
or you could use Event Quene to do this, you could refer to Chat with Event Queue
*public void onClick$PopButoonid(Event e){ try {
final Window window = (Window)Executions.createComponents(
"page source path", null, null);
window.doModal();
** Button okBtn = (Button) window.getFellow("ButtonID");
System.out.println("okbtn==" + okBtn);
okBtn.addEventListener("onClick", new org.zkoss.zk.ui.event.EventListener() {
public void onEvent(Event event) throws Exception {
***here u have to write logic to reload the particular grid/list
}
});
} catch(Exception ex){
ex.printStackTrace();
}
}
Asked: 2010-05-10 15:45:45 +0800
Seen: 978 times
Last updated: Jun 06 '13