Results 1 to 2 of 2

Thread: Panel with template renders null objects as null string

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-3163 in a recent build.
  1. #1
    Touch Premium Member
    Join Date
    Aug 2010
    Location
    New York, NY
    Posts
    66
    Vote Rating
    1
      0  

    Default Panel with template renders null objects as null string

    I have a panel with a template like this:

    Code:
    {
      xtype:'panel',
      tpl: 'first name is {fname}'
    }
    Now i update the panel and with null it actually shows the string null. This is not how it worked in sencha touch 1 and it should not say the string null.

    I am updating like this:
    Code:
    panelObj.setData({fname:null});
    Result is that I see this:

    first name is null
    What am i doing wrong

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,323
    Vote Rating
    1294
      0  

    Default

    I'm actually going to open this as a bug.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •