ExtJs – problems and solutions

I’m writing a UI in Ext Js (2.0.2) at the moment, and after half a year of experience I’m still struggeling sometimes. At this place, I will collect some problems and hopefully the solutions for that. Feel free to ask me questions as comments.

|Firebug errormessage| cause

| sp is not defined| check the order of object instanciation or the order of import|
|toolbar.add() throws errors | you have to render the damn toolbar before adding anything. If you don’t have a backing html-element which you apply using renderTo(), a possible solution is: toolbar.on(‘render’, addButtons, this) with the button-adding-logic in the function addButtons.

| o ist not defined | no record fields defined for a store or a reader. On instantiation a reader needs a record Check your reader instantiation.|