Quick tip: how to serialize a java.util.Date object with Jackson JSON Processor – Sprinv MVC 3.
Scenario:I have the following Java Bean:
package com.loiane.model;
import java.util.Date;
import org.codehaus.jackson.annotate.JsonAutoDetect;
@JsonAutoDetect @Entity public class Company {
private int id; private double price; private String company; private Date date; private String size; private byte visible; }
And I have the following method in my controller:
public…
AKPC_IDS += "505,";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 values and popolate ComboBox. It is the same logic used to populate an ExtJS…
AKPC_IDS += "393,";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 name…
AKPC_IDS += "375,";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… AKPC_IDS += "237,";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 the JavaScript Programming Language.
It…
AKPC_IDS += "66,";