Thank you very much kai. But i changed my implementation as this post describes http://forum.zkoss.org/question/72249/solved-getting-confirm-dialog-messages/
Senthilchettyin ( 2013-05-06 10:26:50 +0800 )edit-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi
Using this link, the following code gives error in 6.5.1
Messagebox.show("Something is changed. Are you sure?",
"Question", Messagebox.OK | Messagebox.CANCEL,
Messagebox.QUESTION,
new org.zkoss.zk.ui.event.EventListener<ClickEvent>(){
public void onEvent(ClickEvent e){
switch (e.getButton()) {
case Messagebox.Button.OK: //OK is clicked
case Messagebox.Button.Cancel: //Cancel is clicked
default: //if the Close button is clicked, e.getButton() returns null
}
}
}
);
Error as follows
The method show(String, String, int, String, EventListener<event>) in the type Messagebox is not applicable for the arguments (String, String, int, String, new EventListener<messagebox.clickevent>() {})
The qualified case label Messagebox.Button.OK must be replaced with the unqualified enum constant OK
Hello Senthilchettyin, please change your code to
Messagebox.show("Something is changed. Are you sure?", "Question", Messagebox.OK | Messagebox.CANCEL,
Messagebox.QUESTION,
new org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>()
{
public void onEvent(org.zkoss.zk.ui.event.Event e)
{
Integer btn_id= (Integer) e.getData();
switch (btn_id.intValue())
{
case org.zkoss.zul.Messagebox.OK: //OK is clicked
case org.zkoss.zul.Messagebox.CANCEL: //Cancel is clicked
default: //if the Close button is clicked, e.getButton() returns null
}
}
}
);
Kai
Thank you very much kai. But i changed my implementation as this post describes http://forum.zkoss.org/question/72249/solved-getting-confirm-dialog-messages/
Senthilchettyin ( 2013-05-06 10:26:50 +0800 )editAny help please.................Same problem in 6.5.2
Asked: 2013-04-04 14:18:16 +0800
Seen: 38 times
Last updated: May 06 '13
pull listbox down programatically
datebox format error in win7 64bit
How to notify "check all checkboxes" in a listbox MVVM
HELP ADD ROWS TO A GRID AND SAVE THE INFORMATION IN A DATABASE
Combo box OnDouble Click Event and SelectedItem
Upload File di zk framework [closed]
how to add contents in placeholder like static with dynamic contents.