-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, I have a renderer which renders some buttons and onClick of the button there should be a modal dialog ("Provide a reason for adding this"). But no window is showing up.
What's wrong?
requestInfo = (Window) Executions.createComponents("/RequestInfo.zul", null, null);
requestInfo.doModal();
sjoshi is right. Please provide more context.
Nevertheless, a wild guess: maybe there is an exception in your createComponents() or doModal() call. Surround it with a try-catch and a log to a log file. Something like this:
try {
Window requestInfo = (Window) Executions.createComponents("/RequestInfo.zul", null, null);
requestInfo.doModal();
} catch (Exception e) {
logger.error("Error opening modal dialog", e);
}
Firstly Please share your whole code or code which anyone can understand ?And which Architecture you are using MVC and MVVM? If you are using MVVM then on some button click you will want to open the a modal WIndow then you can try below code SnapShot..
@Command
public void showModelWindow(@ContextParam(ContextType.VIEW) Component comp) {
Executions.getCurrent().createComponents("/core/new_file.zul",
comp, null);
}
Asked: 2013-04-09 15:36:11 +0800
Seen: 21 times
Last updated: Apr 09 '13