Re: The GWT application hangs on the loading screen

2024-01-13 Thread Craig Mitchell
I use a servlet filter to tell the browser not to cache the nocache files: public class ServletFilter implements Filter { private static final String NO_CACHE = ".nocache.js"; @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws

Re: Announcing GWT 2.10.1 and 2.11 releases

2024-01-13 Thread Craig Mitchell
Thank you Colin! You're spot on, found it: https://mvnrepository.com/artifact/org.gwtproject/gwt-servlet-jakarta/2.11.0 > *Note that this is not compatible with running your jakarta-servlet app inside dev mode, but you will need to run your own server separately from dev mode. * Thanks

Re: Announcing GWT 2.10.1 and 2.11 releases

2024-01-13 Thread Colin Alworth
Craig, you’ll need to change to the -jakarta artifacts. That is, for RemoteServiceServlet, instead of gwt-servlet.jar, use gwt-servlet-jakarta.jar, and the class is in the .rpc.jakarta package to ensure there is no possibility of referencing the wrong type. Change both the jar and your imports

Re: Announcing GWT 2.10.1 and 2.11 releases

2024-01-13 Thread Craig Mitchell
Awesome! Thank you GWT team! Regarding: *> Added release artifacts for jakarta.servlet packages for both RequestFactory and GWT-RPC.* When I look at com.google.gwt.user.server.rpc.RemoteServiceServlet, it's still using javax.servlet.http.HttpServlet. So calls like getThreadLocalRequest()

Re: Is moving away from RPC a good idea?

2024-01-13 Thread Paul Robinson
One thing I really like about using JSON for my message formats is that they are human readable (YMMV). If you're wondering whether a problem is client side or server side, or when you just want to know exactly what information the client was given, being able to read the content of messages can

Re: Is moving away from RPC a good idea?

2024-01-13 Thread Alex Karg
gwt-rpc is one of the parts I like the most about GWT and why we chose GWT to start with. Same DTOs on client and server and you don't have to care (too much) about de/serialization. Why do I care about JSON, or binary or whatever serialized format, as long as it is secure, performant and