Meaningless Drivel is fun!*
The moose likes HTML, CSS and JavaScript and the fly likes creating a simple form having a textfield using sencha extjs 4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "creating a simple form having a textfield using sencha extjs 4" Watch "creating a simple form having a textfield using sencha extjs 4" New topic
Author

creating a simple form having a textfield using sencha extjs 4

siva bangarusamy
Greenhorn

Joined: Oct 08, 2012
Posts: 2
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
Did you call Ext.reg()?
siva bangarusamy
Greenhorn

Joined: Oct 08, 2012
Posts: 2
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
 
subject: creating a simple form having a textfield using sencha extjs 4