Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Failed to mount: zul.wnd.Messagebox is undefined" when setting new Template to Messagebox #2293

Open
Mosarator opened this issue Dec 10, 2020 · 0 comments

Comments

@Mosarator
Copy link

Hi.

In my code i try to have a scrollable messagebox, without implementing a new one.

So i used

Messagebox.setTemplate(TEMPLATE_PATH);

to set it to an almost identical messagebox.zul (copied from this repository) with the following difference:

			<div sclass="z-messagebox"
				style="max-height:225px;overflow-x:hidden;overflow-y:auto">
				<label value="${arg.message}" multiline="true" 
				w:onBind="zul.wnd.Messagebox.onBind(this,350)"/>
			</div>

But whenever a messagebox is popped i get: "Failed to mount: zul.wnd.Messagebox is undefined"

If i don't change the template that error does not happen.
If i leave the w.onBind, i get no buttons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant