0

binder does not find command annotation in parent class of viewmodel

asked 2016-09-01 17:44:28 +0800

yennor gravatar image yennor
10 2

I do have an include in allmost all my zul files which includes save buttons at the bottom of forms. The viewmodel for all those classes extend a class AbstractSaveViewModel which includes:

    @Command("save")
public void onClick$saveButton$saveButtonBar() {
    checkValidation(myWindow);
    save();
}

The method name comes because I used the GenericForwardComposer before. Anyway as it seems, zk ignores the @command-anntotation in parent classes. If I try it out like that I get the message

"cannot find any method that is annotated for the command save with @Command in".

When I copy the method directly into the used ModelViewer class zk is happy and finds the command annotation.

Is there any way to teach it to find the annotation also in the parent class, or should I go back to using the genericForwardComposer?

delete flag offensive retag edit
Be the first one to answer this question!
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: 2016-09-01 17:44:28 +0800

Seen: 25 times

Last updated: Sep 01 '16

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