File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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: 15357
    
    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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: creating a simple form having a textfield using sencha extjs 4
 
Similar Threads
Best Layout for Simple Forms?
File Upload problem
Dynamic Graphs(Ajax) in JSP
make textfield to accept numbers only
Struts action mappings not working correctly