View Full Version : Question on upcoming JavaBean support?

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:


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...


8 Aug 2008, 10:08 AM
According to Zaccret, I should be able to send the beans to the server over RPC.
Is this correct?

If you use BeanModel and you are able to include your server-side POJOs in your client source, I think you don't need Dozer anymore, you can directly transfer the POJOs via GWT RPC.
At first glance, with a big table, I think I would send to the server the updated Pojo on each cell/row update. I haven't tested yet GWT with Hibernate, but I guess you would then just have to tell Hibernate to update the pojo.



11 Aug 2008, 7:24 AM
According to Zaccret, I should be able to send the beans to the server over RPC.
Is this correct?

11 Aug 2008, 9:11 AM
Cool, thanks!