Aug 12, 2014

Register Costum Component ZK in zk.xml

In my previous post, i Have example custom Button with Confirmation Dialog. But now i'll register my customer Component in zk, so I don't need register in .zul when i use custom component.
my previous index.zul


 

    

Now i Will register Component in zk.xml. step by step. 1.Create file lang-addon.xml in WEB-INF folder. lang-addon.xml

    ExtComponent
    xul/html
    
        extbutton
        button
        id.co.sm.ExtBtnConfirm
    

2. Call lang-addon.xml in zk.xml

 
  ajax
  /timeout.zul
 
 
    /WEB-INF/lang-addon.xml


Ok Finish, so simple guy.. Now we can call the Component everywhere page *.zul. example



    

1 comment:

Alif Levrand said...

Mas, saya lagi coba belajar aplikasi nya mas bikin yang path finding cuman kenapa yah ketika route direction, jarak dan durasinya tidak terkirim : http://prntscr.com/529blf mohon di cerahkan.... ada nomer telp/ pin bb agar bisa komunikasi langsung. email yah..