0

domodal no modal dialog shows up

asked 2013-04-09 15:36:11 +0800

redsofa gravatar image redsofa
2 2

updated 2013-04-09 17:14:52 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

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();
delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-04-09 21:28:15 +0800

Matze2 gravatar image Matze2
773 7

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);
    }
link publish delete flag offensive edit
0

answered 2013-04-09 17:29:33 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

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);
    }
link publish delete flag offensive 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: 2013-04-09 15:36:11 +0800

Seen: 21 times

Last updated: Apr 09 '13

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