Hi,
We just finished a GWT application using client GWT-Ext and server JPA, client-server communication via GWT-RPC. To move ahead with another application, we are thinking about a new infrastructure in which the JPA layer will be kept intact. Client side is open for discussion. While moving towards Ext-GWT (GXT) we came accross SmartGWT. Very promissing components and good story about client-server integration, but the big question now is: how to handle complex hierarchical data structures (1:n, parent-multiple childs) when communicating between client and server ?
With GWT-RPC we used Java Serializable Objects for this. Now trying SmartGWT we experimented with the RestDataSource, passing XML between client and server. Works fine, but this concept is Record oriented, so no multiple levels. Can this RestDataSource be an approach in the right direction, or can you suggest another approach ?
I came accross another thread in the SmartClient forum: 2834 about hierarchical XML data binding. This thread pretty much explains the issue we have. However this is a solution for SmartClient, not SmartGWT.
To be clear, we are not looking for direct communication with a JPA layer. On the server side we talk to JPA, which returns Java Serializable Objects (JPA entities), containing Collections for 1:n relations. But how to translate these JPA entities, so that the outcome can be used in SmartGWT Grids. Oh, and not just data retrieval of course, but how to handle the translation best when using a SmartGWT DynamicForm for add or update of a parent with multiple child records ?
Kind Regards
We just finished a GWT application using client GWT-Ext and server JPA, client-server communication via GWT-RPC. To move ahead with another application, we are thinking about a new infrastructure in which the JPA layer will be kept intact. Client side is open for discussion. While moving towards Ext-GWT (GXT) we came accross SmartGWT. Very promissing components and good story about client-server integration, but the big question now is: how to handle complex hierarchical data structures (1:n, parent-multiple childs) when communicating between client and server ?
With GWT-RPC we used Java Serializable Objects for this. Now trying SmartGWT we experimented with the RestDataSource, passing XML between client and server. Works fine, but this concept is Record oriented, so no multiple levels. Can this RestDataSource be an approach in the right direction, or can you suggest another approach ?
I came accross another thread in the SmartClient forum: 2834 about hierarchical XML data binding. This thread pretty much explains the issue we have. However this is a solution for SmartClient, not SmartGWT.
To be clear, we are not looking for direct communication with a JPA layer. On the server side we talk to JPA, which returns Java Serializable Objects (JPA entities), containing Collections for 1:n relations. But how to translate these JPA entities, so that the outcome can be used in SmartGWT Grids. Oh, and not just data retrieval of course, but how to handle the translation best when using a SmartGWT DynamicForm for add or update of a parent with multiple child records ?
Kind Regards
Comment