View Full Version : ExtJs with Spring Framework
jimmy.honeycutt
1 Feb 2008, 10:36 AM
I have created an example with Spring and ExtJS (without DWR). Is there a place where I can host it?
aarifmohammed
1 Feb 2008, 11:45 AM
I am intrested in looking into this, can you add the zip file so that I can download?
thanks
Aarif
jimmy.honeycutt
1 Feb 2008, 2:04 PM
I have included a zip file that has all the source code as well as a tutorial (step by step) of how to create the Spring/Ext JS application. The tutorial (in the zip file) is located at springapp/docs/tutorial.html.
I had to remove all class files, jar files, and ext library to make the zip file small enough to upload. So, you'll need to do a little set up. Just follow instructions in tutorial. Let me know if something doesn't work or doesn't make sense.
jianghupiao
1 Feb 2008, 5:11 PM
good job ,ths!!!!!
erwin
28 Feb 2008, 8:20 AM
Hi,
I have downloaded above Example (.zip).
I would like to use it in jsr 168 portlet, but Spring Portlet do not have any view package or AbstractView class. I need renderRequest and renderResponse.
public class XmlView extends AbstractView {
/**
* Apache commons-logging.jar logger - uncomment to enable
*/
//protected final Log logger = LogFactory.getLog(getClass());
/**
* Renders the view by marshalling the model data (set in the controller)
* into XML and writing the XML to the response output stream.
*/
protected void renderMergedOutputModel(Map map,
HttpServletRequest request, HttpServletResponse response) throws Exception {
//logger.info("Start rendering of " + this.getBeanName());
// this is the business model data (typically a POJO) that was set and returned by the controller
Object model = map.get("model");
// marshal the POJO (Plain Old Java Object) into XML string
String xml = OptimizedReflectionMarshaller.marshal(model);
// write the XML data to the response
response.getOutputStream().write(xml.getBytes());
response.setContentType("text/xml; charset=ISO-8859-1");
}
}
Thanks
Erwin
buntyindia
24 Mar 2008, 2:18 AM
I have included a zip file that has all the source code as well as a tutorial (step by step) of how to create the Spring/Ext JS application. The tutorial (in the zip file) is located at springapp/docs/tutorial.html.
I had to remove all class files, jar files, and ext library to make the zip file small enough to upload. So, you'll need to do a little set up. Just follow instructions in tutorial. Let me know if something doesn't work or doesn't make sense.
Thanks for this code example jimmy....This application is using ExtJs 1.1.1
Can you please convert it into 2.0
Hello,
Thanks a lot for this nice tutorial!
To use it with ext2:
In springapp/war/index.html, replace:
<script type="text/javascript" src="javascript/ext/ext-base.js"></script>by:
<script type="text/javascript" src="javascript/ext/adapter/yui/yui-utilities.js"></script>
<script type="text/javascript" src="javascript/ext/adapter/yui/ext-yui-adapter.js"></script>
And in springapp/war/javascript/products-grid.js, replace :
var grid = new Ext.grid.Grid('products-grid', {ds: ds, cm: cm}); by:
var grid = new Ext.grid.GridPanel({ renderTo:'products-grid', store: ds, cm: cm, autoHeight: true });
Z.
flatburger
30 Apr 2008, 7:33 PM
try feyasoft
www.sf.net/projects/feyasoft
roro
28 Jul 2008, 11:12 AM
hi , i try to unzip springapp.zip , but invalid file zip (is corrupted ?)
mystix
28 Jul 2008, 8:28 PM
hi , i try to unzip springapp.zip , but invalid file zip (is corrupted ?)
try downloading with FF instead.
roro
28 Jul 2008, 11:04 PM
it's ok .
tks
shawn.chen
14 Sep 2009, 7:52 PM
It seems that this file doesn't exist any more? Tried both in IE and FireFox.
erosszz
9 Dec 2009, 8:42 PM
successfully upgraded to Ext 2.3.0 without replacing the ext-base.js part.
thanks a lot Zef..
but still don't know the reason why did you suggested to replace also the ext-base?
Hello,
Thanks a lot for this nice tutorial!
To use it with ext2:
In springapp/war/index.html, replace:
<script type="text/javascript" src="javascript/ext/ext-base.js"></script>by:
<script type="text/javascript" src="javascript/ext/adapter/yui/yui-utilities.js"></script>
<script type="text/javascript" src="javascript/ext/adapter/yui/ext-yui-adapter.js"></script>
And in springapp/war/javascript/products-grid.js, replace :
var grid = new Ext.grid.Grid('products-grid', {ds: ds, cm: cm}); by:
var grid = new Ext.grid.GridPanel({ renderTo:'products-grid', store: ds, cm: cm, autoHeight: true });Z.
audippanaidu@gmail.com
21 Mar 2010, 1:26 AM
Hi Sir,
I am very interested to have application on Extjs and Spring
I am new to ExtJs.
Please can some one send me the source code to my mail id
audippanaidu@gmail.com
Thanks
Audippa Naidu.M
michalisp4
19 Oct 2010, 12:39 AM
If you like have a look on my open source project http://www.jprovocateur.org (http://www.jprovocateur.org/) it is spring+hibernate with generic dao+oval validation+ext j.s and you have the demo online.
I will appreciate any comments
M.
Elisha
26 May 2011, 4:33 AM
Hello,
I am a newbie to extJs and spring Framework and while searching for this I found out a link which was helpful for me. Hope you will also find it useful:
http://sapandiwakar.wordpress.com/2011/05/23/building-java-web-application-using-mybatis-spring-mvc-ext-js-tomcat-mysql-eclipse/
tamilselvam
10 Jun 2011, 8:51 AM
Hi Team,
I am new to ExtJs, I able to design login page with extjs, and using with spring and hibernate, i am not able to get return value, Like.
If user name and password are valid page should be redirect, If is not valid, error should pass in same page.
Please help me.
Regards,
Tamil Selvam .P
loiane
21 Sep 2011, 5:30 AM
Hi,
I have many examples of how to integrate Ext JS 3 and 4 with Spring framework and hibernate on my blog:
http://loianegroner.com
All posts contain explanation, screenshots and complete code for downloading.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.