Questions tagged [resty-gwt]

RestyGWT is a GWT generator for REST services and JSON encoded data transfer objects.

RestyGWT is a GWT generator for REST services and JSON encoded data transfer objects.

Its features are:

  • Generates Async Restful JSON based service proxies
  • Java Object to JSON encoding/decoding
  • Easy to use REST API
65 questions
0
votes
1 answer

Consume byte[] in GET using resty GWT

in my server side i have the following : @ApiOperation(value = "myValue", tags = "{mytag}") @GET @Path("mypath") @Produces("image/jpeg") public Response getImage(@ApiParam(hidden = true) @HeaderParam("Accept-Language") String acceptLanguage, …
0
votes
1 answer

GWT - Restygwt - Response was NOT a valid JSON document

I wantet to set up a simple demo Project on how to use Restygwt, for learning. I followed this Tutorial: https://ronanquillevere.github.io/2014/03/16/gwt-rest-app.html So far I got this on my client: In my SearchPresenter the method…
KilledByCheese
  • 852
  • 10
  • 30
0
votes
1 answer

Restygwt download byte[]

I have only an array of byte on the client side. Another server send me JSON { report - byte[] } I am looking for ways to save byte [] in browser Send them to server or I can download from client side. I can not find any solution at all. So my…
LeshaRB
  • 1,345
  • 2
  • 23
  • 44
0
votes
0 answers

GWT download byte[]

Can you help me I have PDF file in byte[] I get it from resty-gwt @Produces({ MediaType.APPLICATION_JSON }) @Consumes({ MediaType.APPLICATION_JSON }) @Path("/report") @POST void report(String id, JsonCallback jsonCallback); So I have…
LeshaRB
  • 1,345
  • 2
  • 23
  • 44
0
votes
0 answers

GWT & Certification

I have GWT, RestyGWT, Widlfly Standalone.xml
LeshaRB
  • 1,345
  • 2
  • 23
  • 44
0
votes
1 answer

Loading Resty-GWT

How can I show load widget, when client send json on server. From example in GWTP exmaple I found such method /** * We display a short lock message whenever navigation is in progress. * * @param event The {@link…
LeshaRB
  • 1,345
  • 2
  • 23
  • 44
0
votes
0 answers

Resty-GWT MeduaType

How can I change media-type in request @Path("/admin") public interface LoginService extends RestService { LoginService INSTANCE = GWT.create(LoginService.class); @Path("/login") @POST @Produces({ MediaType.APPLICATION_JSON }) …
LeshaRB
  • 1,345
  • 2
  • 23
  • 44
0
votes
1 answer

nginx access_by_lua not respecting lua_package_path

I have a reverse nginx proxy running with the following in the nginx.config: http { lua_package_path ";;$prefix/?.lua;?.lua;/etc/nginx/?.lua;/etc/nginx/resty/?.lua;"; } and then multiple location in the server : # xxx SERVICE location ~*…
Scooby
  • 3,371
  • 8
  • 44
  • 84
0
votes
1 answer

Jersey Setting up 2 servlets

I'm trying to setup my project with Jersey to basically have 2 servlets: a private one for access by the client application, and a public facing one that acts as an API. The api calls are a subset of the private ones. (In case this is relevant my…
Troncoso
  • 2,343
  • 3
  • 33
  • 52
0
votes
1 answer

Session Management in GWT without RPC

In a new GWT project (running in Tomcat), instead of using RPC, I'm using RestyGWT and Jersey on the server side for my communication. With RPC, sessions could be created and managed with getThreadLocalRequest().getSession(). As far as I know, the…
Troncoso
  • 2,343
  • 3
  • 33
  • 52
0
votes
1 answer

RestyGWT and Basic authentication

After days without any progess, I need your help. With GWT, I'm trying to communicate with my REST server, the server is on a different URL (CORS needed). My configuration: Server - spring-boot 1.3.3 Client - GWT 1.7 - restygwt 2.0.3 Server side,…
Guymage
  • 1,524
  • 1
  • 14
  • 21
0
votes
1 answer

RestyGWT and Spring. How to manage Entities and models on Client. Error: java.lang.NoClassDefFoundError: com/google/gwt/core/client/GWTBridge

I am trying to switch backend of my GWT app to Spring using RestyGwt. I followed this examples: ekito dzone Now I wonder what to do with Entities. Can they be used in client? I've put them in Shared package, but unfortunately I am getting an…
masterdany88
  • 5,041
  • 11
  • 58
  • 132
0
votes
1 answer

GWT2.7 and Spring4 integration?

I am writing new application. For client side I would like to have newest gwt 2.7, but for server side code I would like to use Spring4 (firstly spring security and spring data). Can anyone tell how it is now with integrating those 2 frameworks. I…
masterdany88
  • 5,041
  • 11
  • 58
  • 132
0
votes
1 answer

Is RestyGWT works with Generics and Polymorphic classes?

I struggle with request factory in gwt. I can make it work with Generics and Polymorphic classes. See here: RequestFactory client-side inheritance of typed class with generics Gwt Request Factory. Generics and Inheritance on client…
masterdany88
  • 5,041
  • 11
  • 58
  • 132
0
votes
1 answer

resty-gwt too much recursion exception in parent-child structure

i have a model with parent-child structure when i set parent model the following exception occures: com.google.gwt.core.client.JavaScriptException: (InternalError) : too much recursion at com.google.gwt.lang.Exceptions.wrap(Exceptions.java:36) i…
Saeed Shahsavan
  • 35
  • 1
  • 10