This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
 
Consider Paul's rocket mass heater.
 
subject: creating a simple form having a textfield using sencha extjs 4
 
Similar Threads
Dynamic Graphs(Ajax) in JSP
Best Layout for Simple Forms?
make textfield to accept numbers only
File Upload problem
Struts action mappings not working correctly