Package org.zkoss.bind.annotation
Annotation Type DefaultCommand
-
@Target(METHOD) @Retention(RUNTIME) public @interface DefaultCommand
Marker annotation to identify a default command method. When a command send to a view model, it will check Command method first, if no Command method was found, then it will check DefaultCommand method.
A DefaultCommand method could also use withBindingParam
and others to assign a binding argument as its parameter, andDefault
to assign a default value if the argument is null.- Since:
- 6.5.1
- Author:
- dennischen
- See Also:
Command
,BindingParam
,ExecutionParam
,ExecutionArgParam
,HeaderParam
,CookieParam
,QueryParam
,ScopeParam
,ContextParam
,Default