Hybrid View

  1. #1
    Touch Premium Member
    Join Date
    May 2007
    Posts
    47
    Vote Rating
    0
    jimmy.honeycutt is on a distinguished road

      0  

    Default ExtJs with Spring Framework

    ExtJs with Spring Framework


    I have created an example with Spring and ExtJS (without DWR). Is there a place where I can host it?

  2. #2
    Ext JS Premium Member
    Join Date
    Jan 2008
    Posts
    7
    Vote Rating
    0
    aarifmohammed is on a distinguished road

      0  

    Default


    I am intrested in looking into this, can you add the zip file so that I can download?

    thanks

    Aarif

  3. #3
    Touch Premium Member
    Join Date
    May 2007
    Posts
    47
    Vote Rating
    0
    jimmy.honeycutt is on a distinguished road

      0  

    Default Ext JS and Spring Framework Tutorial

    Ext JS and Spring Framework Tutorial


    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.
    Attached Files

  4. #4
    Ext User
    Join Date
    Nov 2007
    Posts
    4
    Vote Rating
    0
    jianghupiao is on a distinguished road

      0  

    Thumbs up


    good job ,ths!!!!!

  5. #5
    Ext User
    Join Date
    Jul 2007
    Posts
    3
    Vote Rating
    0
    erwin is on a distinguished road

      0  

    Default Ext Js and jsr 168 portlet

    Ext Js and jsr 168 portlet


    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.

    Code:
    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

  6. #6
    Sencha User
    Join Date
    Feb 2008
    Posts
    116
    Vote Rating
    0
    buntyindia is on a distinguished road

      0  

    Question


    Quote Originally Posted by jimmy.honeycutt View Post
    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

  7. #7
    Ext User
    Join Date
    Dec 2007
    Posts
    10
    Vote Rating
    0
    Zef is on a distinguished road

      0  

    Thumbs up Thanks a lot. Diff to be ext2 compliant.

    Thanks a lot. Diff to be ext2 compliant.


    Hello,

    Thanks a lot for this nice tutorial!

    To use it with ext2:

    In springapp/war/index.html, replace:
    Code:
    <script type="text/javascript" src="javascript/ext/ext-base.js"></script>
    by:
    Code:
    <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 :
    Code:
    var grid = new Ext.grid.Grid('products-grid', {ds: ds, cm: cm});
    by:
    Code:
    var grid = new Ext.grid.GridPanel({ renderTo:'products-grid', store: ds, cm: cm, autoHeight: true });
    Z.

  8. #8
    Ext User
    Join Date
    Jul 2007
    Location
    Jakarta
    Posts
    75
    Vote Rating
    0
    flatburger is on a distinguished road

      0  
    Frans Thamura
    Meruvian Foundation
    Jakarta
    indonesia

  9. #9
    Ext User
    Join Date
    Oct 2009
    Location
    日本
    Posts
    94
    Vote Rating
    0
    erosszz is on a distinguished road

      0  

    Default


    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?

    Quote Originally Posted by Zef View Post
    Hello,

    Thanks a lot for this nice tutorial!

    To use it with ext2:

    In springapp/war/index.html, replace:
    Code:
    <script type="text/javascript" src="javascript/ext/ext-base.js"></script>
    by:
    Code:
    <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 :
    Code:
    var grid = new Ext.grid.Grid('products-grid', {ds: ds, cm: cm});
    by:
    Code:
    var grid = new Ext.grid.GridPanel({ renderTo:'products-grid', store: ds, cm: cm, autoHeight: true });
    Z.

  10. #10
    Ext User
    Join Date
    Jun 2008
    Location
    Belgium
    Posts
    2
    Vote Rating
    0
    roro is on a distinguished road

      0  

    Default


    hi , i try to unzip springapp.zip , but invalid file zip (is corrupted ?)

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar