View Full Version : Submiting CRUD store

4 Jul 2009, 3:02 PM

I'm playing with the restful example. Anyway my store looks like this:

var store = new Ext.data.Store({
id: 'dsModules',
restful: true,
proxy: new Ext.data.HttpProxy({
url: 'Controller?acx=Module.Processor'
reader: new Ext.data.JsonReader({
totalProperty: 'total',
successProperty: 'success',
idProperty: 'id',
root: 'data'
}, [
{name: 'id', allowBlank: false},
{name: 'nameSymbol', allowBlank: false},
{name: 'name', allowBlank: false},
{name: 'description', allowBlank: false}
writer: new Ext.data.JsonWriter(),
listeners: {
write : function(store, action, result, response, rs) {
App.setAlert(response.success, response.message);

The question is - whenever I submit a record (I'm using RowEditor), id field is prefield with 'ext-record-1'. I don't want that. Instead of php like in the example I'm using java and hibernate. How can I submit a row without id field being assigned some ext id?

Thank you in advance.