This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure 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
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you call Ext.reg()?
 
siva bangarusamy
Greenhorn
Posts: 2
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic