-
Bug
-
Resolution: Fixed
-
Blocker
-
None
-
None
-
Security Level: Jimmy
-
None
-
None
Steps to Reproduce
1. Run with ZK 10 version
Current Result
JS Error: Only caption is allowed: zul.tab.Tab
Expected Result
No error
Debug Information
ZK 10 added constraint for each widget at client.
For example,
Tab.prototype.beforeChildAdded_ = function (child, insertBefore) { var firstChild = this.firstChild; if (child instanceof zul.wgt.Caption) { //caption is always the first child (if exist) if (firstChild && firstChild instanceof zul.wgt.Caption && firstChild != child) { zk.error('Only one caption is allowed: ' + this.className); return false; } } else if (!(child instanceof zul.wgt.Label)) { zk.error('Only caption is allowed: ' + this.className); return false; } return true; };
Workaround
Overwrite Tab.prototype.beforeChildAdded_ at zss.SheetTab
- is blocked by
-
ZK-5541 Move widget restriction check to Client MVVM
- Closed