-
24 Oct 2011 6:59 PM #1
Unexpected error - TypeError: 'null' is not an object
Unexpected error - TypeError: 'null' is not an object
Designer version tested:
Designer 1.2.2 rev 28
Operating System:
WinXP Pro
Framework:
Ext JS 4.x
Description:
I'm migrating my app from EXTjs3 to EXTjs4 by rebuilding the entire app in Designer.
Made changes to a container's properties while in code-view mode
Switched to Design view and XDS crashes!
(Am I missing something in TPL configs?)
Steps to reproduce the problem:
create a simple ArrayStore
add 1 integer field with the name "id"
add 1 string field with the name "username"
add 1 string field with the name "fullName"
add 1 string field with the name "email"
add 1 string field with the name "name"
add 1 Boolean field with the name "enabled"
add 1 Boolean field with the name "banned"
add 1 integer field with the name "offenseCnt"
add 1 date field with the name "joinDate"
Create a window with a basic container
add a combobox
change to code-view mode
Config the renderTpl property (eg: '<tpl for="."><div ext:qtip="{fullName}<BR>email:{email}<BR><BR>enabled:{enabled}<BR>banned:{banned}<BR>Offenses:{offenseCnt}<BR>JoinDate:{joinDate}<BR>Group:{name}" class="x-combo-list-item">[{id}] {username}</div></tpl>')
The result that was expected:
should render the window with combo-box without issue.
The result that occurs instead:
Crash with TypeError
Screenshot(s) or Video:
attachedXDS 1.2.2-27 TypeError.jpg
Debugging already done:
Found that the renderTpl config caused a strange null error.
Deleted the renderTPL property, and everything started working.
Possible fix:
not providedPerfection as a goal is a nice idea that can point one in a specific direction. However, since "perfection" is an ever changing (evolving?) and moving target, one must admit that perfection can never be obtained...
When in doubt, check the d4mn source code!
-
27 Oct 2011 9:59 AM #2
lorezyra -
The renderTpl is a really low level component configuration to be used in conjunction with renderData and renderSelectors. We'll look at improving this experience for the end developers.
I think you are probably looking for the tpl configuration.Aaron Conran
@aconran
Sencha Architect Development Team
-
27 Oct 2011 2:18 PM #3
@aconran:
You are correct... Except that property is not available! "tpl" is needed for my comboboxes. When I type "tpl" in the filter box for the property grid, it only displayed "activeErrorsTpl" and "renderTpl!" I suspect this is another bug in Designer (1.2.2.r48)Perfection as a goal is a nice idea that can point one in a specific direction. However, since "perfection" is an ever changing (evolving?) and moving target, one must admit that perfection can never be obtained...
When in doubt, check the d4mn source code!
-
27 Oct 2011 3:54 PM #4
no tpl on ComboBox
no tpl on ComboBox
Here's the screenshot of what I see and why I tried to use the renderTpl property... "tpl" is actually what I wanted...
(this is a ExtJS 4.x project)
XDS 1.2.2-27 BUG - no tpl on ComboBox.jpg
Okay, I'll file a different bug report for this one...Perfection as a goal is a nice idea that can point one in a specific direction. However, since "perfection" is an ever changing (evolving?) and moving target, one must admit that perfection can never be obtained...
When in doubt, check the d4mn source code!
-
27 Oct 2011 4:25 PM #5
I've created a new bug report for the TPL issue: http://www.sencha.com/forum/showthre...y-for-ComboBox
Perfection as a goal is a nice idea that can point one in a specific direction. However, since "perfection" is an ever changing (evolving?) and moving target, one must admit that perfection can never be obtained...
When in doubt, check the d4mn source code!
Thank you for reporting this bug. We will make it our priority to review this report.



Reply With Quote