Revision history [back]

click to hide/show revision 1
initial version

answered 2010-02-11 09:45:52 +0800

terrytornado gravatar image terrytornado flag of Germany

http://www.oxitec.de/

Joh,

you use cutted pieces of my code. I'm working with a BaseController from where i extend the controllers. And at no time i have worked with several zul-files and ONE controller for it.

I don't know which version you have from the sample app. zksamplegui or Zksample2 If you will have access to the components you must let the controllers know of that. Therefore are so called composers. Implement the Interface afterCompose or extend from a xxxComposer. Please read the docs about Composers.

public class FrontWindow extends Window implements AfterCompose {

    private transient static final Logger logger = Logger.getLogger(FrontWindow.class);

    @Override
    public void afterCompose() {
         Components.wireVariables(this, this); // auto wire variables
         Components.addForwards(this, this); // auto forward
    }

Stephan

PS: Can you debug through your events? Set breakpoints

    /**
     * default constructor.<br>
     */
    public FrontWindow() {
        super();

        if (logger.isDebugEnabled()) {
            logger.debug("--> super()");
        }
    }
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More