From 59b8467593ef0d2e112161f346c9eb7be06214e8 Mon Sep 17 00:00:00 2001 From: Eugene Date: Fri, 25 Jul 2025 08:56:46 -0400 Subject: [PATCH 1/2] Update README.md I was confused of what are the 2 artefacts, so updated the documentation --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 21c895d..8880528 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,22 @@ gwt-maven-archetypes ==================== -This project contains Maven archetypes for modular GWT projects. +This project contains Maven archetypes for modular GWT projects. The 2 available archetypes differ +in their client-server communication approach: + +- `modular-webapp`: Uses traditional GWT RPC (Remote Procedure Call) + - Client communicates via RemoteService interface with @RemoteServiceRelativePath + - Requires both sync (GreetingService) and async (GreetingServiceAsync) interfaces + - Server implements the service interface directly + +- `modular-requestfactory`: Uses GWT [RequestFactory](https://www.gwtproject.org/doc/latest/DevGuideRequestFactory.html) + - Client communicates via RequestContext with @ServiceName annotation + - Uses proxy objects (GreetingResponseProxy) for data transfer + - Requires a RequestFactory interface to group contexts + - More modern, supports data validation and has better performance for complex data models + +Both create modular multi-module Maven projects with client, server, and shared modules, but RequestFactory is the newer, +more efficient approach for GWT applications. How to use ---------- From 469a03853684b82943b9153071e99bb2775eda19 Mon Sep 17 00:00:00 2001 From: Eugene Date: Fri, 25 Jul 2025 11:44:02 -0400 Subject: [PATCH 2/2] Shorten the section --- README.md | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/README.md b/README.md index 8880528..54f78cf 100644 --- a/README.md +++ b/README.md @@ -5,18 +5,7 @@ This project contains Maven archetypes for modular GWT projects. The 2 available in their client-server communication approach: - `modular-webapp`: Uses traditional GWT RPC (Remote Procedure Call) - - Client communicates via RemoteService interface with @RemoteServiceRelativePath - - Requires both sync (GreetingService) and async (GreetingServiceAsync) interfaces - - Server implements the service interface directly - - `modular-requestfactory`: Uses GWT [RequestFactory](https://www.gwtproject.org/doc/latest/DevGuideRequestFactory.html) - - Client communicates via RequestContext with @ServiceName annotation - - Uses proxy objects (GreetingResponseProxy) for data transfer - - Requires a RequestFactory interface to group contexts - - More modern, supports data validation and has better performance for complex data models - -Both create modular multi-module Maven projects with client, server, and shared modules, but RequestFactory is the newer, -more efficient approach for GWT applications. How to use ----------