Tutorial :Importance of Shared Package in GWT



Question:

I realize that GWt doesn't compile the classes not in the Client package. But what is the importance of the shared package? What are the classes that I need to put in this package?


Solution:1

What are the classes that I need to put in this package?

Any logic or data types that are used by both the client and the server. This will save you from duplicating code across both sides, and potentially keep the logic and data types consistent.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »