membuat checkbox mvvm zk zkoss

Membuat checkbox sederhana pada framework zk (zkoss) menggunakan teknik mvvm

q> Buat file zul -> cobaCheckbox.zul

 <window apply="org.zkoss.bind.BindComposer"

 <checkbox onCheck="@command('pilih', checked = self.checked) " />


q> Buat file zul ->

package com.ipi.zk7.mywebzk7;

import org.zkoss.bind.annotation.BindingParam;
import org.zkoss.bind.annotation.Command;
import org.zkoss.bind.annotation.NotifyChange;
import org.zkoss.zul.Messagebox;

public class CobaCheckboxVM {

 public void pilih(@BindingParam("checked") boolean isPicked){"Pilih = " + isPicked);


q> Hasil



Published by


Begin a big Process with a bit trying

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s