Revision history [back]

click to hide/show revision 1
initial version

answered 2012-04-05 02:25:14 +0800

gyowanny gravatar image gyowanny

Can you keep a reference to the menu object in your composer? Like a class field?

public class MyComposer extends GenericForwardComposer{

     Component menu;

     public void doAfterCompose(Component comp){
          this.menu = Executions.createComponents("/includes/menu.zul", mainWindow, null);
     }

     private void removeMenu(){
         if (this.menu != null){
              menu.detach();
              mainWindow.invalidate(); //force mainWindow to readraw
         }
     }
}
/code]
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More