Revision history [back]

click to hide/show revision 1
initial version

asked 2019-11-29 15:36:29 +0800

tisaksen gravatar image tisaksen

Enum as @command argument?

How can I pass an enum type as an argument to a command in a zul file?

<textbox onok="@command('mycommand', MyEnum.MyConstant)"/>

Enum as @command argument?

How can I pass an enum type as an argument to a command in a zul file?

<textbox onok="@command('mycommand', MyEnum.MyConstant)"/>onok="@command('myCommand', tag=MyEnum.MyConstant)"/>

@Command public void myCommand(@BindingParam("tag") MyEnum tag) { .... }

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More