Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member lorezyra's Avatar
    Join Date
    Dec 2007
    Location
    Japan -- 日本
    Posts
    638
    Vote Rating
    15
    lorezyra will become famous soon enough lorezyra will become famous soon enough

      0  

    Exclamation 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 provided
    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!
    ================================================
    And here are my terms...
    1. I don't care if you use my source code. (Known as "Code.")
    2. I don't care if I get any monetary compensation.
    3. I do care to receive credit for Code provided. So, please keep my name in the comments for Code provided.
    4. Code is provided without warranty "AS-IS" and I claim absolutely no warranty nor liability to the quality, security, and run-ability on any platform.
    5. By using Code, you accept all risk inherit with Code regardless if Code has known and yet to be discovered bugs.
    6. You are welcome to change and improve the Code to best meet your needs.
    7. I don't care if you use the Code in a commercial or open-source project.
    8. You are not required to contact me prior to using the Code.
    ================================================
    Simple. Enjoy.

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,358
    Vote Rating
    127
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    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

  3. #3
    Sencha Premium Member lorezyra's Avatar
    Join Date
    Dec 2007
    Location
    Japan -- 日本
    Posts
    638
    Vote Rating
    15
    lorezyra will become famous soon enough lorezyra will become famous soon enough

      0  

    Default


    @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!
    ================================================
    And here are my terms...
    1. I don't care if you use my source code. (Known as "Code.")
    2. I don't care if I get any monetary compensation.
    3. I do care to receive credit for Code provided. So, please keep my name in the comments for Code provided.
    4. Code is provided without warranty "AS-IS" and I claim absolutely no warranty nor liability to the quality, security, and run-ability on any platform.
    5. By using Code, you accept all risk inherit with Code regardless if Code has known and yet to be discovered bugs.
    6. You are welcome to change and improve the Code to best meet your needs.
    7. I don't care if you use the Code in a commercial or open-source project.
    8. You are not required to contact me prior to using the Code.
    ================================================
    Simple. Enjoy.

  4. #4
    Sencha Premium Member lorezyra's Avatar
    Join Date
    Dec 2007
    Location
    Japan -- 日本
    Posts
    638
    Vote Rating
    15
    lorezyra will become famous soon enough lorezyra will become famous soon enough

      0  

    Question 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!
    ================================================
    And here are my terms...
    1. I don't care if you use my source code. (Known as "Code.")
    2. I don't care if I get any monetary compensation.
    3. I do care to receive credit for Code provided. So, please keep my name in the comments for Code provided.
    4. Code is provided without warranty "AS-IS" and I claim absolutely no warranty nor liability to the quality, security, and run-ability on any platform.
    5. By using Code, you accept all risk inherit with Code regardless if Code has known and yet to be discovered bugs.
    6. You are welcome to change and improve the Code to best meet your needs.
    7. I don't care if you use the Code in a commercial or open-source project.
    8. You are not required to contact me prior to using the Code.
    ================================================
    Simple. Enjoy.

  5. #5
    Sencha Premium Member lorezyra's Avatar
    Join Date
    Dec 2007
    Location
    Japan -- 日本
    Posts
    638
    Vote Rating
    15
    lorezyra will become famous soon enough lorezyra will become famous soon enough

      0  

    Default


    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!
    ================================================
    And here are my terms...
    1. I don't care if you use my source code. (Known as "Code.")
    2. I don't care if I get any monetary compensation.
    3. I do care to receive credit for Code provided. So, please keep my name in the comments for Code provided.
    4. Code is provided without warranty "AS-IS" and I claim absolutely no warranty nor liability to the quality, security, and run-ability on any platform.
    5. By using Code, you accept all risk inherit with Code regardless if Code has known and yet to be discovered bugs.
    6. You are welcome to change and improve the Code to best meet your needs.
    7. I don't care if you use the Code in a commercial or open-source project.
    8. You are not required to contact me prior to using the Code.
    ================================================
    Simple. Enjoy.

Thread Participants: 1