Hello
I display a notification message at the end of an action by using this code:
Clients.showNotification("Succes", Clients.NOTIFICATION_TYPE_INFO, null, null,
3000);
Then when the message **is still diplayed**, I open a modal by clicking on a button. See the code below:
The Java code of the command:
Window modal;
@Command
public void openModal() {
modal = (Window) Executions.createComponents(
"/modal.zul", null, null);
modal.focus();
}
The problem is when I close the opened modal i have a zk error like that :
[17/09/14 16:59:14] ERROR (DesktopImpl) : [Desktop z_mqb:/index.zul] client error: N'a pas été traité
rm
this.$(...) is null (TypeError)
After this error the modal is locked and i have to refresh to make it disappear.
Note that if I wait the auto-close of the notification message before opening the modal I don't have any problem when I close the modal.
I can observe this problem since the upgrade in zk 7.0.3 version.
Thanks for your help!
↧