-
11 Nov 2011 6:33 PM #1
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); } });
-
11 Nov 2011 7:35 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 434
- Answers
- 3102
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.
-
12 Nov 2011 8:31 AM #3
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.
-
13 Nov 2011 5:14 PM #4
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.
-
13 Nov 2011 5:20 PM #5Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 434
- Answers
- 3102
The name config of Ext.application is the root of your namespacing. Example:
Sets up the namespaces:Code:Ext.application({ name : 'MyApp', .... });
MyApp.controller = {};
MyApp.model = {};
MyApp.store = {};
MyApp.view = {};
Sets up the namespaces:Code:Ext.application({ name : 'Sencha', .... });
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.


Reply With Quote