1

Issue With Client.Shownotification Modal Window

asked 2014-03-28 13:15:28 +0800

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

Please check the Attached Image..In this Zk popup a Modal Window but if you look Text and Images are not in one link its up and down Is this ZK7 issue? image description

Can anyone tel how to resolve this issue or i Have to report ZK team?

Using Below code for this

protected void showNotificationNew(String message,String type) {
        Clients.showNotification( message, type, null, null, 3000,true);
    }
delete flag offensive retag edit

Comments

ANyone have update on this?

sjoshi ( 2014-04-03 06:33:06 +0800 )edit

It happens when referenced component is null. It looks as a bug for me. Try to determine a referenced component (third parameter)

stream ( 2014-04-30 20:37:20 +0800 )edit

It happen in Whole Project So it is Bug from ZK side?

sjoshi ( 2014-05-01 05:52:12 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-05-01 15:24:54 +0800

stream gravatar image stream
81 3

It is a bug. Please see an example:

<window id="w" height="100%" width="100%" position="center, center">
    <hlayout>
        <button onClick='Clients.showNotification("Some Text", Clients.NOTIFICATION_TYPE_WARNING, null, "middle_center", 3000)' label="No referenced component" autodisable="self"/>
        <button onClick='Clients.showNotification("Some Text", Clients.NOTIFICATION_TYPE_WARNING, w, "middle_center", 3000)' label="referenced component specified" autodisable="self"/>
    </hlayout>
</window>
link publish delete flag offensive edit

Comments

I created an issue. http://tracker.zkoss.org/browse/ZK-2273

stream ( 2014-05-01 15:33:49 +0800 )edit

That's not a bug, that difference is by design with different meaning.

jumperchen ( 2014-05-08 09:53:30 +0800 )edit

What is that different meaning? Why the size of a window depends on referenced component? Here is an example: I show notification message when press Save&Stay and Save&Close buttons in modal window. Both notifications look different while having the same meaning: Saved successfully.

stream ( 2014-05-09 16:39:19 +0800 )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-28 13:15:28 +0800

Seen: 39 times

Last updated: May 01 '14

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