PDA

View Full Version : how to update data to server using dwrproxy



wczwcg
6 Sep 2007, 6:57 AM
Hi,

Has anybody update data successfully to server using dwrproxy.I just know we can get the modified data from the Ext.data.Store object, but the type is Ext.data.Record, we must transfer them to our custom object. Maybe we can write a util class to complete this function.

Do you have any other good idea?

Animal
6 Sep 2007, 7:34 AM
You can just use DWR directly.

Just call methods of one of your DWR-exported classes.

wczwcg
7 Sep 2007, 3:59 AM
I just completed a util class to transfer the Ext.data.Record to my custom javabean using json.

Thanks very much.

Animal
7 Sep 2007, 4:23 AM
JSON and DWR?

You are wrapping things up in a JSON string, and passing a String parameter to a Java method, and then decoding that?