-
FEATURED COMPONENTS
First time here? Check out the FAQ!
If I have a class defined at the top level not in any package, then the forward directive works and evaluates the if condition. For instance, class called "Auth" ...
<?forward uri="/login" if="${!Auth.auth()}"?>
But if I have the class in a package it does not and does not even instantiate the class. In this case the class is called "uil.Auth".
<?forward uri="/login" if="${!uil.Auth.auth()}"?>
In both cases, the "auth()" function is public static boolean.
Thoughts?
To call a static method, you need to import
<?import util.*?>
Then call
<?forward uri="/login" if="${!Auth.auth()}"?>
See http://books.zkoss.org/zk-mvvm-book/9.5/databinding/elexpression.html
Asked: 2023-04-28 09:07:28 +0800
Seen: 7 times
Last updated: May 02
bug with intboxes on mobile devices
zk keikai-how to add custom button/label to formulabar?
zk-keikai- update multiple cells parallel at same time asynchronously
zk-keikai-How to auto fit column width based on text
zk-keikai-ClipboardPateEvent-called twice
Reference a spring bean from VariableResolver