1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    127
    Answers
    4
    Vote Rating
    0
    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
    Gainesville, FL
    Posts
    36,756
    Answers
    3462
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Is this due to using vbox?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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.

  3. #3
    Ext GWT Premium Member
    Join Date
    Apr 2009
    Location
    NYC
    Posts
    111
    Answers
    2
    Vote Rating
    1
    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
    Answers
    4
    Vote Rating
    0
    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
    Gainesville, FL
    Posts
    36,756
    Answers
    3462
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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
    ________________
    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.

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi