-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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?
Asked: 2016-09-01 17:44:28 +0800
Seen: 31 times
Last updated: Sep 01 '16