-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have created a custom component which is a replacement for the zul.inp.Textbox. Every time I leave a page with this component on it it throws an error in the red box:
"Failed to mount: Listener _doBlur not found in foo.bar.inp.Textbox"
Which is correct as the function is never references. If I add the _doBlur function the error goes away, but this is not an ideal solution.
The Textbox is defined as follows:
foo.bar.inp.Textbox = zk.$extends(zul.inp.InputWidget,{
....
bind_: function () {
this.$supers('bind_', arguments);
this.domListen_(this.$n(), "onBlur","doBlur_");
},
unbind_: function () {
this.domUnlisten_(this.$n(), "onBlur");
this.$supers('unbind_', arguments);
},
doBlur_: function (evt) {
if (!this._disabled) {
if (this.isRequired()){
if (this.desktop)
this.markAsInvalid(this.getInputValue().trim() == '');
}
return this.$supers('doBlur_', arguments);
}
},
Asked: 2014-11-20 05:52:12 +0800
Seen: 4 times
Last updated: Nov 20 '14
Id attribute set in zul code doesn't reflect in html code? [closed]
passing present viewmodel to included page. [closed]
Upload Button dosn't work on chrome
How to handle big (large) file upload?
ZK and Dynamic Component And DataBinder
Attributes in macro was not updated after notifyChange
Problem binding values to a composite component
How to access static member field of a class in zul without zscript