PDA

View Full Version : DWR evaluation



pilotjohn
17 Jan 2008, 9:59 AM
Hello, I definitely want to use EXTJS in my project. Now I am trying to evaluate how DWR fits in.

After going through the various posts, here is what I understand:

We neeed to extend the DataRecord class
We need to extend the DataProxy class
We are able to load Form fields and submit the Form as well


I have these further questions:

Can I have nested Java objects. e.g Department object containing Employee object which has an Address object


Regards
John

loeppky
21 Jan 2008, 10:05 AM
You can definitely have nested Java objects. DWR takes care of all the marshalling and unmarshalling of the data.

Concering DataRecord, why do you need to extend that class? Can you please provide a link to the post where you saw this. My experience hasn't required me to.

Extending the DataProxy class is required if you want to have your store fetch data with DWR. There is a DwrProxy class discussed here: http://extjs.com/forum/showthread.php?t=19529. I have been using it but have made some additions/improvements to it that I hope to post soon.

SeaSharp2
21 Jan 2008, 12:31 PM
There is a DwrProxy class discussed ... I have been using it but have made some additions/improvements to it that I hope to post soon.
Looking forward to this as I am just in the process of converting from C# .Net to Java + DWR server-side on my ExtJS project.

loeppky
22 Jan 2008, 3:00 PM
I have made some improvements to Axel's original DWRProxy. They have been put into this thread: http://extjs.com/forum/showthread.php?t=23884. There is also a complete example showing it in action with a combo box. Try it out and see how it works for you. If you have any questions, go ahead and post them in that thread.

rams
24 Jan 2008, 11:35 AM
Hi, I am also a new bee to this extjs. If you can provide some sample code for ext and dwr that would help me a lot.

loeppky
24 Jan 2008, 11:44 AM
rams: you should check out DWR's site for setting up and using DWR. As far as an example of DWR with Ext's combobox, see the thread mentioned above: http://extjs.com/forum/showthread.php?t=23884.