Tag: JSON

How to Serialize Java.util.Date with Jackson JSON Processor / Spring 3.0

How to Serialize Java.util.Date with Jackson JSON Processor / Spring 3.0

September 17, 2010 | By | 12 Comments

Quick tip: how to serialize a java.util.Date object with Jackson JSON Processor – Sprinv MVC 3. Scenario: I have the following Java Bean: And I have the following method in my controller: Which returns a list of Company. The @ResponseBody annotation instructs Spring MVC to serialize the hashmap to the client. Spring MVC automatically serializes [...]

Continue Reading

How to Populate Ext JS ComboBox using Spring Controller

How to Populate Ext JS ComboBox using Spring Controller

May 19, 2010 | By | 4 Comments

This tutorial will walk through how to populate an ExtJS ComboBox using a Spring Controller. To populate ExtJS ComboBox using Spring Controller, you need create an Ajax request using Ext.data.HttpProxy and as response you can return JSON Objects (or an XML – in this example, I will use JSON). And using a JsonReader, you can read [...]

Continue Reading

Populating an ExtJS DataGrid + RowExpander using Spring MVC 3

Populating an ExtJS DataGrid + RowExpander using Spring MVC 3

May 13, 2010 | By | 8 Comments

This tutorial will walk through how to implement an ExtJS DataGrid with RowExpander plugin using Spring MVC Framework version 3 in the server side. Sometimes you need to show more information than fits within the grid, as an expansion of the record/row. ExtJS DataGrid component provides a plugin called RowExpander, which does exactly what its [...]

Continue Reading

Spring MVC and AJAX with JSON

Spring MVC and AJAX with JSON

February 15, 2010 | By | 31 Comments

This tutorial will walk through how to configure Spring MVC to return a JSON object to client browser. One of the main decisions to be taken while developing AJAX applications is the format of messages passed by the server to the client browser. There are many options to choose from including plain text, XML, CSV [...]

Continue Reading

Getting Started with JSON

Getting Started with JSON

December 14, 2009 | By | 13 Comments

This post will walk through JSON basic concepts. What is JSON? JSON (JavaScript Object Notation) is a lightweight data-interchange format, widely hailed as the successor to XML in the browser. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of [...]

Continue Reading