Tag: Spring 3

JAXB Custom Binding – Java.util.Date / Spring 3 Serialization

JAXB Custom Binding – Java.util.Date / Spring 3 Serialization

June 7, 2011 | By | 9 Comments

JaxB can handle Java.util.Date serialization, but it expects the following format: “yyyy-MM-ddTHH:mm:ss“. What if you need to format the date object in another format? I had the same issue when I was working with Spring MVc 3 and Jackson JSON Processor, and recently, I faced the same issue working with Spring MVC 3 and JAXB [...]

Continue Reading

Tutorial: Linked/Cascading ExtJS Combo Boxes using Spring MVC 3 and Hibernate 3.5

Tutorial: Linked/Cascading ExtJS Combo Boxes using Spring MVC 3 and Hibernate 3.5

October 1, 2010 | By | 15 Comments

This post will walk you through how to implement ExtJS linked/cascading/nested combo boxes using Spring MVC 3 and Hibernate 3.5 I am going to use the classic linked combo boxes: state and cities. In this example, I am going to use States and Cities from Brazil! What is our main goal? When we select a [...]

Continue Reading

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

ExtJS, Spring MVC 3 and Hibernate 3.5: CRUD DataGrid Example

ExtJS, Spring MVC 3 and Hibernate 3.5: CRUD DataGrid Example

September 2, 2010 | By | 54 Comments

This tutorial will walk through how to implement a CRUD (Create, Read, Update, Delete) DataGrid using ExtJS, Spring MVC 3 and Hibernate 3.5. What do we usually want to do with data? Create (Insert) Read / Retrieve (Select) Update (Update) Delete / Destroy (Delete) Until ExtJS 3.0 we only could READ data using a dataGrid. [...]

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