try :@command('hideSearchWin') @command('doSearch')
maybe that works
then it's posting the second command in the first command.
chillworld ( 2019-04-11 15:54:22 +0800 )editFirst time here? Check out the FAQ!
when write:
<button label="search" onClick="@command('hideSearchWin','doSearch')" width="200px" />
i found the first command is not fired, only the second command was executed. i switch the two.also only the second command was executed.
i'm on zk 8.6.0.1
i followed http://books.zkoss.org/zk-mvvm-book/8.0/syntax/viewmodelcommand.html and https://www.zkoss.org/wiki/ZK_Developer%27s_Reference/MVVM/Syntax/ViewModel (https://www.zkoss.org/wiki/ZKDeveloper%27sReference/MVVM/Syntax/ViewModel)/@Command
but got:
org.zkoss.util.IllegalSyntaxException: only allow one string of @command,but contains ['doSearch', 'hideSearchWin']
you're right,seems only one allowed currently.
try :@command('hideSearchWin') @command('doSearch')
maybe that works
then it's posting the second command in the first command.
chillworld ( 2019-04-11 15:54:22 +0800 )editAsked: 2019-04-08 12:56:46 +0800
Seen: 20 times
Last updated: Apr 08 '19