"Custom Settings" wont work in RTC 5.0.1 JS/Dojo Widget Dev
Hy there fellas,
I've created some widgets in JS/Dojo under RTC 4.5
There I could always use the "custom settings" to define my own setting.
But in RTC 5.0.1 the settings-Panel won't load if I've added a preference-def in my plugin.xml which type is custom.
If I deactivate this preference-def the settings-Panel is loaded normally.
What can I do?
The error in Firebug:
I've created some widgets in JS/Dojo under RTC 4.5
There I could always use the "custom settings" to define my own setting.
But in RTC 5.0.1 the settings-Panel won't load if I've added a preference-def in my plugin.xml which type is custom.
If I deactivate this preference-def the settings-Panel is loaded normally.
What can I do?
The error in Firebug:
_39.firstChild is null
One answer
I found the solution myself.
But of course I gonna share it with you.
Problem:
Was in the Class " com.ibm.team.dashboard.web.ui.CustomPreferenceProvide".
Since RTC Version 5, you HAVE TO OVERWRITE it!
Because, he interprets the empty string as a null Object.
Solution:
Overwrite the function like this.
getLabel: function(value){
return "<emptydiv>"; //I can't write it normally. its just a div /div
},
Et voila.. it work again.
But of course I gonna share it with you.
Problem:
Was in the Class " com.ibm.team.dashboard.web.ui.CustomPreferenceProvide".
Since RTC Version 5, you HAVE TO OVERWRITE it!
Because, he interprets the empty string as a null Object.
Solution:
Overwrite the function like this.
getLabel: function(value){
return "<emptydiv>"; //I can't write it normally. its just a div /div
},
Et voila.. it work again.