Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating a simple form having a textfield using sencha extjs 4

 
siva bangarusamy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to create a form having a textfield using sencha extjs 4. My app.js file is

Ext.create('Ext.form.Panel', {
title: 'Contact Info',
width: 300,
bodyPadding: 10,
renderTo: Ext.getBody(),
items: [{
xtype: 'textfield',
name: 'name',
fieldLabel: 'Name',

}, {
xtype: 'textfield',
name: 'email',
fieldLabel: 'Email Address',

}]
});


But I am getting error as uncaught exception: Attempting to create a component with an xtype that has not been registered: [object Object]. Can anyone help me out in solving this issue.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you call Ext.reg()?
 
siva bangarusamy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No.I didn't call.can you provide me the code of Ext.Reg() and how to use and where to use it.I am new to sencha extjs 4.I got an error that it is not registered.can you please provide me the working code of a simple form having text field using sencha extjs 4.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic