EvilTed
8 Aug 2008, 9:10 AM
The tutorial section uses Dozer to serialize beans across the RPC interface.
This says one must implement an invasive "ModelData" interface.
The upcoming JavaBean support:
http://extjs.com/blog/2008/07/14/preview-java-bean-support-with-ext-gwt/
mentions it is used to send from server to client without implementing "ModelData".
I have a few questions:
1) Why is the JavaBean support only from server to client? Or is this a mistake in the blog?
2) Does this replace the Dozer method highlighted in the tutorial?
Is the new support going to be the recommended method?
3) If I want to do FormPanel submits to the server and read the changes back as JSON bound to GXT controls, what is the best way to do this?
I'm thinking Dozer (or the new JavaBean support if it is possible) to submit FormPanel beans to the server.
Does a bound store know that changes have been made and automatically reflect these back up to the client?
For example, if I have a JSON bound Grid and I edit some of the content with a FormPanel, after submission, does the store automatically update and hence the client gets the change or do I have to do some extra work to make this happen?
Thanks and appreciate any suggestions...
ET
This says one must implement an invasive "ModelData" interface.
The upcoming JavaBean support:
http://extjs.com/blog/2008/07/14/preview-java-bean-support-with-ext-gwt/
mentions it is used to send from server to client without implementing "ModelData".
I have a few questions:
1) Why is the JavaBean support only from server to client? Or is this a mistake in the blog?
2) Does this replace the Dozer method highlighted in the tutorial?
Is the new support going to be the recommended method?
3) If I want to do FormPanel submits to the server and read the changes back as JSON bound to GXT controls, what is the best way to do this?
I'm thinking Dozer (or the new JavaBean support if it is possible) to submit FormPanel beans to the server.
Does a bound store know that changes have been made and automatically reflect these back up to the client?
For example, if I have a JSON bound Grid and I edit some of the content with a FormPanel, after submission, does the store automatically update and hence the client gets the change or do I have to do some extra work to make this happen?
Thanks and appreciate any suggestions...
ET