1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    127
    Vote Rating
    0
    Answers
    4
    robl is on a distinguished road

      0  

    Exclamation Unanswered: PR2 - Fields in form panel but not in fieldset don't display.

    Unanswered: PR2 - Fields in form panel but not in fieldset don't display.


    I am finding that fields in a formpanel that are not in a fieldset are not displaying in PR2. Can anyone spot an error in my code below or is it a PR2 bug?

    Code:
    Ext.application({
        name: '2.0 PR2 Form Test',
    
    
        launch: function() {
            console.log('launch:');
    
    
            var myPanel = Ext.create("Ext.Panel", {
                fullscreen: true,
                layout: 'vbox',
                items: [
                {
                    title: 'Basic',
                    xtype: 'formpanel',
                    id: 'basicform',
                    layout: {
                        type: 'vbox',
                        align: 'stretch'
                    },
                    // xtype: 'fieldset',
                    // title: 'Personal Info',
                    // defaults: {
                    //  labelWidth: '35%'
                    //  },
                    items: [
                    {
                        xtype: 'textfield',
                        name: 'first',
                        label: 'First'
                    },
                    {
                        xtype: 'textfield',
                        name: 'last',
                        label: 'Last'
                    }
                    ]
                }
                ]
            });
            console.log('myPanel=' + myPanel);
            // var tf = new Ext.field.Text();
            // tf.setLabel("hello");
            // myPanel.add(tf);
        }
    });

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,641
    Vote Rating
    434
    Answers
    3107
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Is this due to using vbox?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost in print!

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

  3. #3
    Ext GWT Premium Member
    Join Date
    Apr 2009
    Location
    NYC
    Posts
    104
    Vote Rating
    0
    Answers
    2
    stan229 is on a distinguished road

      0  

    Default


    I actually had something similar. Not that they wouldnt display, but they wouldn't have a "white" background where the actual input was. Labels rendered fine, but the actual input didn't have it's box.

  4. #4
    Sencha User
    Join Date
    Oct 2011
    Posts
    127
    Vote Rating
    0
    Answers
    4
    robl is on a distinguished road

      0  

    Default


    I was loading the wrong sencha touch javascript file and somehow the browser/simulator was using the old cached version. Now I'm using the correct file but I am encountering much bigger issues as my app doesn't display at all.

  5. #5
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,641
    Vote Rating
    434
    Answers
    3107
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    The name config of Ext.application is the root of your namespacing. Example:

    Code:
    Ext.application({
        name : 'MyApp',
    
        ....
    });
    Sets up the namespaces:

    MyApp.controller = {};
    MyApp.model = {};
    MyApp.store = {};
    MyApp.view = {};

    Code:
    Ext.application({
        name : 'Sencha',
    
        ....
    });
    Sets up the namespaces:

    Sencha.controller = {};
    Sencha.model = {};
    Sencha.store = {};
    Sencha.view = {};

    So based on the name you specify, your views should all go into [Name].view[ClassName]
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost in print!

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