-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
I want to customize the Messagebox component, that is to add names for buttons in archive/web/zul/html/messageboxdialog.zul. but instead of modifying the origional source code, I desire to add new file named namedmessageboxdialog.zul and in accordding to it, I desire to add an org.zkoss.zul.NamedMessageboxDlg.java. Now I don't know what else to do, how to configure in conf files, can any guy tell me the steps in detail?
relative files are as bellow: (1) archive/web/zul/html/namedmessageboxdialog.zul ... <hbox style="margin-left:auto; margin-right:auto"> <button id="btn1" **name="aslmsgyes" **="" identity="${arg.OK}" sclass="z-messagebox-btn" use="org.zkoss.zul.impl.MessageboxDlg$Button" if="${!empty arg.OK}"/> <button **="" name="aslmsgcancel" **="" identity="${arg.CANCEL}" sclass="z-messagebox-btn" use="org.zkoss.zul.impl.MessageboxDlg$Button" if="${!empty arg.CANCEL}"/> ... </hbox> </window>
(2) org.zkoss.zul.NamedMessageboxDlg.java package org.zkoss.zul.impl;
...
/** * Used with {@link Messagebox} to implement a message box.
@author tomyeh */ public class MessageboxDlg extends Window {
...
/**