1

ZK7 Clients.ShowNotification Issue?

asked 2014-03-13 09:46:44 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

updated 2014-03-13 11:53:17 +0800

sitansu gravatar image sitansu
2254 13
http://java91.blogspot.in...

Here is my example http://zkfiddle.org/sample/ie9g11/3-zk-Show-Notification-Issue

If you will check when i am adding Messagebox type its showing weired issue in Notifaction Window:

Clients.showNotification("Hariom",Messagebox.ERROR, null, null, 3000);
delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-03-13 09:50:33 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

updated 2014-03-13 09:51:03 +0800

Ok I got what the issue i think ZK7 not support code like this

public void doAfterCompose(Component comp) throws Exception {
          Clients.showNotification("Hariom",Messagebox.ERROR, null, null, 3000);

    }

We have to use like this

public void doAfterCompose(Component comp) throws Exception {
          Clients.showNotification("Hariom","error", null, null, 3000);

    }

Refrence zk7 showNotification())

link publish delete flag offensive edit
1

answered 2014-03-17 15:09:47 +0800

IngoB gravatar image IngoB flag of Germany
256 6

updated 2014-03-17 15:12:26 +0800

Messagebox != Notification :)

No you don't have to :)

Try

http://www.zkoss.org/javadoc/7.0.1/zk/constant-values.html#org.zkoss.zk.ui.util.Clients.NOTIFICATIONTYPEERROR

public void doAfterCompose(Component comp) throws Exception {
         Clients.showNotification("Hariom",Clients.NOTIFICATION_TYPE_ERROR, null, null, 3000);
         Clients.showNotification("Hariom",Clients.NOTIFICATION_TYPE_INFO, null, null, 3000);
       Clients.showNotification("Hariom",Clients.NOTIFICATION_TYPE_WARNING, null, null, 3000);
    }
link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-03-13 09:46:44 +0800

Seen: 33 times

Last updated: Mar 17 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More