View Full Version : Date Problem on java.util.Date

18 Jan 2011, 9:57 AM
Hi there

I have got field of java.util.Date called nascimento. It is never rendered on grid, sound like ExtJS is not reading the JSON.

My Proxy, Reader and Store are

var proxy = new Ext.data.HttpProxy({
api: {
read : 'extjs.request'

var reader = new Ext.data.JsonReader({
totalProperty : 'total',
successProperty : 'success',
idProperty : 'idpessoa',
root : 'rows',
messageProperty : 'message',
fields: [
{name: 'nascimento', type: 'date', dateFormat: 'd/m/Y'}

var store = new Ext.data.Store({
proxy : proxy,
reader: reader,
fields: [
{name: 'idpessoa'},
{name: 'nome'},
{name: 'sobrenome'},
{name: 'nascimento', type: 'date', dateFormat: 'd/m/Y'}

The Column is

header : 'Nascimento',
width : 85,
sortable : true,
renderer : Ext.util.Format.dateRenderer('d/m/Y'),
dataIndex: 'nascimento'

Looking on web I made a converter on the DateField and got this in a alert ({date:18, day:2, hours:15, minutes:40, month:0, seconds:57, time:1295372457780, timezoneOffset:120, year:111}), that is the correct date. The problem is that ExtJS is not rendeing.

This is comming from a Java List<MyClass>

Thanks A lot

18 Jan 2011, 12:12 PM
moved to ext help

18 Jan 2011, 1:43 PM
Sorry and Thank You