0

how to close zul window

asked 2013-06-06 14:45:15 +0800

pallagadda gravatar image pallagadda flag of India
1 1

updated 2013-06-06 17:50:14 +0800

Hi I opened window using <window> tag in zul file, then when I click close button I want to close this window either by using zscript or java file

Please help me to solve this issue

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-06-06 18:42:45 +0800

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

updated 2013-06-06 18:49:02 +0800

Just create a Close button on the your modal Window and fire a action in your Java code something like this ZUL file code:-

<button action="@('myAction')" label="Close"  />

In Your ViewModel or Java call you can capture it like this

    @Command 
    public void myAction(@ContextParam(ContextType.VIEW) Component comp){
    comp.detach();

}

Another way you can check here Zk Modal Window close

Another link for same zk-detach-modalwindow-without-wiring

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-06-06 14:45:15 +0800

Seen: 43 times

Last updated: Jun 06 '13

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