Revision history [back]

click to hide/show revision 1
initial version

asked 2013-01-30 09:19:34 +0800

lramellavotta gravatar image lramellavotta flag of Italy

Problem with @command: I can't firing event

Hello all, I'm trying last zk version to verify some features. My form is very simple with a listbox and button to delete row. When I click on button I can't firing event. I read examples and the book "ZK 6.5 Essentials" obviously I do not have understood something. Can someone explain where am I wrong? Thanks Luca

<window title="Gestione Utenti" border="normal" >
<caption>
    <button label="Aggiungi" onClick="@command('addUtente')" disabled="@load(not empty vm.selected)"/>
</caption>
<div apply="org.zkoss.bind.BindComposer" viewModel="@id('vm')
    @init('rvl.stcc.ui.aaa')">
    <listbox id="lbxUtenti" model="@load(vm.utenti)" selectedItem="@bind(vm.selected)">

... JAVA Class

@Command()
public void addUtente() throws Exception
{
    System.out.println("Sono in addUtente");
}
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More