-
FEATURED COMPONENTS
First time here? Check out the FAQ!
asked 2013-01-30 09:19:34 +0800
This post is a wiki. Anyone with karma >100 is welcome to improve it.
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");
}
answered 2013-01-30 09:55:28 +0800
This post is a wiki. Anyone with karma >100 is welcome to improve it.
the @command is outside a BindComposer, you should move the BindComposer outside to include the @command, or move the button inside div