-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
how can I make use of annotation in zscript (inside a .zul file).
For example, in test.zul:
<zk:zscript language="Java">
public class Myclass
{
public Myclass()
{
super();
}
@Init
public void init(@BindingParam("param") String param)
{ . .. }
]]></zk:zscript>
since running the zul file I get this error
'' Token Parsing Error: Lexical error at line 21, column 26. Encountered: "I" (73), after : "@": <at unknown="" location="">
Thanks
Alfredo
zscript relies on bean shell which doesn't support full java syntax like annotation, generic type. Please put those code in a composer/ViewModel.
Asked: 2023-03-01 20:13:46 +0800
Seen: 4 times
Last updated: Mar 02