-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I want to be notified when any @command gets executed in ZK. Is that possible?
you can implement your PhaseListener
like
public class CommandLogListener implements PhaseListener {
@Override
public void prePhase(Phase phase, BindContext ctx) {
if (phase.equals(Phase.COMMAND)) {
System.out.println("pre " + ctx.getCommandName());
}
}
@Override
public void postPhase(Phase phase, BindContext ctx) {
if (phase.equals(Phase.COMMAND)) {
System.out.println("post " + ctx.getCommandName());
}
}
}
<library-property>
<name>org.zkoss.bind.PhaseListener.class</name>
<value>foo.CommandLogListener</value>
</library-property>
Asked: 2022-09-12 20:13:25 +0800
Seen: 22 times
Last updated: Sep 16 '22
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