Questions tagged [requestfactory]

RequestFactory is a component of the Google Web Toolkit that targets developers building data-oriented (CRUD) applications.

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

POST request with unbuffered RestTemplate and sslcontext customization

Using Spring RestTemplate I try to send a large stream to a server. Than I receive getBody not supported error. If I do it with SimpleClientHttpRequestFactory it works normally, but I can't make my ...
Hasuni's user avatar
  • 21
1 vote
0 answers
74 views

Allauth user_logged_in signal does not trigger in a TestCase

I'm using allauth for user management in my Django web app and I have functionality which finds session data stored when the user was not logged in and stores it when they next log in on the same ...
ChrisM's user avatar
  • 63
0 votes
1 answer
39 views

Django Test RequestFactory post with foreign key

I'm trying to test a view-function with django's RequestFactory's post-method. The view-function should create a new ObjA-instance. ObjA has a foreign key field to an ObjB. My test currently looks ...
nik_kobe's user avatar
1 vote
0 answers
105 views

Django module tests: Failing to attach a non-anonymous user to a request

I am trying to test that my custom permissions in DRF work properly, so I need to imitate some requests made by users with different rights (the rights are stored as attributes in the db in a table ...
Inna Em's user avatar
  • 11
1 vote
0 answers
287 views

RestTemplate 404 error upon adding HttpComponentsClientHttpRequestFactory

I am using RestTemplate exchange method to call a Microservice. Its working fine with the below code. RestTemplate rs = new RestTemplate(); rs.exchange(........); But if I add ...
Nabarun Dey's user avatar
0 votes
1 answer
59 views

GWT Requestfactory 3 nested object

I have a GWT application with Requestfactory. On the serverside I have a service returning a triple nested object. A contains a List<B> #B. Each B contains a C. When I fire my request to findAll(...
Dormmamu's user avatar
0 votes
1 answer
102 views

Where to use @SuppressWarnings("requestfactory")

I'm trying to build a simple (read-only) web app with GWT and RequestFactory, and I can't work out how to get rid of following warning: warning: The domain type DDisplay is not default-instantiable. ...
Jim ReesPotter's user avatar
4 votes
0 answers
740 views

SocketTimeoutException Read timed out on RestTemplate, PoolingHttpClientConnectionManager

I am struggling with Read timed out exception. For API call, I am using RestTemplate and it works pretty well, but the read timed out exception occured 5~6 times a day. I've spend for a while to ...
jongseok's user avatar
  • 153
0 votes
1 answer
1k views

Django Rest API Test Request Factory Content Empty

In the following test I get one of two errors, which I have not been able to resolve. This is my first project in Django, and therefore first time testing with it. I read that the APIRequestFactory ...
Blake Lassiter's user avatar
1 vote
1 answer
236 views

gwt RequestFactory Map containing a List

I want to use a Map<enum, List<Integer>> in a gwt RequestFactory. (I'm using gwt-2.7.0) According to the latest documentation (which still seems to be for version 2.7.0) this should work. ...
Sebastian Saip's user avatar
0 votes
1 answer
67 views

GWT requestfactory validate entities on external server

Im usign gwt 2.7.0 request factory. Edit: Im not using client side validations, only server side validations (hibernate annotations) The entity im trying to edit is called "Article.java". In a ...
Woodstock Monkey's user avatar
1 vote
2 answers
3k views

PUT request with unbuffered RestTemplate

Using Spring RestTemplate, buffer request body set to false and empty body SimpleClientHttpRequestFactory requestFactory = new SimpleClientHttpRequestFactory(); requestFactory.setBufferRequestBody(...
dmitryvim's user avatar
  • 1,993
1 vote
1 answer
77 views

Hibernate ResultTransformer and gwt requestfactory

I created custom result transformer which extends BasicTransformerAdapter. In transformTuple method I create new object of Entity: @Override public Object transformTuple(Object[] tuple, String[] ...
Caroline's user avatar
  • 232
0 votes
1 answer
203 views

GWT RequestFactory throws java.lang.UnsupportedOperationException: <Proxy interface class> from ValueCodex.getTypeOrDie

In our application we need to share domain code between GWT client and server. Because of that we are using common interfaces for GWT proxies and server-side entities. This approach was once described ...
ilya's user avatar
  • 968
0 votes
1 answer
412 views

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 ...
masterdany88's user avatar
  • 5,101
0 votes
1 answer
37 views

Should a GWT RequestFactory Locator method expect a passed-in JPA entity to be attached or detached?

Right now I have to call JPA merge() at the end of my service method to persist changes. I'm doing this because our servlets do not start a transaction before the Locator.find() runs. They start them ...
unremarkable's user avatar
0 votes
1 answer
354 views

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. ...
masterdany88's user avatar
  • 5,101
1 vote
1 answer
151 views

RequestFactory client-side inheritance of typed class with generics

I would like to know, is it possible to use generic classes of request factory proxy/context for common actions for all entities, like getById(Long id). In my app I will have many dictionaries like ...
masterdany88's user avatar
  • 5,101
1 vote
0 answers
268 views

Gwt Request Factory. Generics and Inheritance on client side

I am trying to write a generic class to avoid code repetition. I would like to have generic methods for: Get Entity/Model from server by id. Get List of all Entities/Models from server. Send to ...
masterdany88's user avatar
  • 5,101
0 votes
2 answers
228 views

RequestFactory Entity's parameter: List<OfOtherEntity> is null on client. On server is ok

I am learning RequestFactory. I have simple example working. Now I would like to implement for RF those Entities from below: Server package @Entity public class Pizza implements Identifiable, ...
masterdany88's user avatar
  • 5,101
0 votes
0 answers
217 views

GWT Request Factory create ValueProxy from object

GWT Request Factory : create ValueProxy instance from bean I'm looking for a way to convert beans to corresponding ValueProxy on server side without using Request Factory. MyBean --> MyBeanProxy ...
Erwang's user avatar
  • 1
0 votes
0 answers
38 views

How to make the result from a request factory call available for for injection using GIN?

I have a proxy, let's call it ConfigParametersProxy. It has a method (for example) String getParameter1(); It is a request factory managed value proxy. I want to be able to do this with it in my ...
Michael Wiles's user avatar
0 votes
1 answer
238 views

GWT Request Factory. Where to put Proxies?

I have multimodule maven project. Root Module: parent contain: server, shared, client submodules. I wonder where in that structure should I put Proxy classes? Now I have them in client module, but I ...
masterdany88's user avatar
  • 5,101
1 vote
1 answer
458 views

Requestfactory hibernate session-per-request

I am trying to update my application to use a session-per-request pattern so I can move to newer GWT versions (my entities don't save correctly past 2.4 - GWT >2.4 RequestFactory not saving child ...
CyDharttha's user avatar
0 votes
1 answer
179 views

Error:ConstraintViolation in GWt requestfactory

Hi I am trying to use requestfactory and see if its a better choice than RPC. I am facing an error whenever I am trying to run my GWT application as- [ERROR] [exampledataextractrf] Uncaught ...
Aniket's user avatar
  • 3
0 votes
1 answer
48 views

GWT RequestFactory RequestContext.append what guarantees on order of firing receivers?

If I have two or more request contexts (appended) each with one or more service method requests is there any guarantee on the order the receivers are fired? The code seems to fire service method ...
salk31's user avatar
  • 1,005
0 votes
1 answer
59 views

Cannot delete item from set using hibernate

I have a 1 to many relationship between Report and Setting. The mapping is defined in the parent as <set name="settings" table="SETTING" inverse="true" lazy="true" fetch="select" cascade="all-...
user2046211's user avatar
0 votes
1 answer
61 views

Gwt editor that edit multiple propertys

Is it posible to create a proxy editor that edits multiple propertys ? Here is an example that ilustrates what i want to do: Supose i have an entity called Marker(like google maps) that haves two ...
Woodstock Monkey's user avatar
0 votes
1 answer
177 views

Gwt Client Validation with editor and request factory

I had a problems with GWT Client Validation used with RequestFactory and Editors. The edit code is : LocalityRequest localityContext = //create Request Locality locality = //Locality Entity Proxy ...
Patrice De Saint Steban's user avatar
0 votes
1 answer
245 views

GWT Editors: How to record changes to fields and sub-editors? (RequestFactory?)

I have an app that makes extensive use of the Editor Framework. Right now I'm at the point where I want to add a new feature: if a user edits an entity, I'd like to record which changes were made and ...
slugmandrew's user avatar
  • 1,806
1 vote
1 answer
370 views

GWT Unit Testing with RequestFactory / Activities

I'm trying to test the start method of an Activity that uses RequestFactory. I manage to test RF calls invoking directly the service using this article example, but I'm missing something mocking RF ...
Pintouch's user avatar
  • 2,629
0 votes
1 answer
164 views

UiEditor/RequestFactory generate null delegate on ValueProxy

I have a Service.class ValueProxy in a service oriented architecture (i have a server method like "storeService(service)". I would use an Editor with RequestFactoryEditorDriver. I expect all work, ...
Paolo's user avatar
  • 136
0 votes
2 answers
182 views

GWT RequestFactory, how to override getters in EntityProxy?

I am using GWT RequestFactory facility and I want share some code between client and server. To achieve my goal, I implemented a common interface between client proxies and server domain classes. So I ...
Gainder's user avatar
  • 304
1 vote
1 answer
85 views

GWT - RPC equivalent of "ServiceLayerDecorator.invoke(Method domainMethod, Object... args)"

For Request factory calls I can use ServiceLayerDecorator.invoke(Method domainMethod, Object... args) to check for every method that is invoked, if the user has a valid session and is allowed to ...
jan's user avatar
  • 3,953
25 votes
1 answer
941 views

Bad GWT Request Factory performance for list of objects

I am transferring a list of objects to the client with GWT Request Factory. The objects contain only a couple of strings and the list does only contain 20 objects. To transfer this small list of data, ...
jan's user avatar
  • 3,953
0 votes
2 answers
248 views

GWT "shared" objects inheritance / alternative to converters

Inside a GWT application we have a "shared" package which contains, as its name implies, objects shared between client-side and server-side code. We have a multi-module maven project: + server | | |...
Olivier Tonglet's user avatar
-1 votes
1 answer
144 views

GWT Requestfactory: EntityProxy containing List of "InterfaceProxy"

Imagine the following situation when using GWT, RequestFactory and JPA. The server side: @Entity public class SuperEmployee implements IsEmployee {...} @Entity public class BadEmployee implements ...
Ralf K.'s user avatar
2 votes
1 answer
875 views

RequestFactory: Proxy implementing interface with generics

I am struggling with requestfactories and generics. In the code below, the proxy methods are matching exactly with the entity methods, but I get the log trace: java.lang.NullPointerException: null ...
JFB's user avatar
  • 109
1 vote
1 answer
252 views

GWT RequestFactory: IllegalArgumentException for setter only fields

Why is it mandatory to have both getters and setters for a field in RF Proxy interfaces? For some fields (like plain text password), you want setters only. e.g. @ProxyFor(value = User.class) public ...
tj-recess's user avatar
  • 1,791
3 votes
1 answer
626 views

GWT 2.6 - RequestFactory Locator Could not find domain method similar to

I am new to GWT and using the version 2.6 with RequestFactory but I am running into GWT validation problems. Somehow GWT cannot find the method on the domain side once I started using Locator and ...
bohanl's user avatar
  • 1,885
1 vote
1 answer
637 views

GWT Requestfactory issue with Maven + IntelliJ

I am working on a webapp project using GWT 2.5.1 and the requestfactory with a maven config. Actually, I began the project out of maven as a standalone project in eclipse and it still works fine. ...
ovie's user avatar
  • 621
0 votes
0 answers
110 views

Populate a GWT CellTable with ValueProxy

I have a view that contain a cellTable populated by Proxys (type ValueProxy) received from server side using RequestFactory. I can display rows but some problems* occur when i want to update a row via ...
user3728064's user avatar
0 votes
1 answer
82 views

GWT requestFactory EntityProxy nesting

Can i do that? @ProxyFor(value = User.class, locator = EntityLocator.class) public interface UserProxy extends EntityProxy{ List<UserProxy> getFriends(); } I suppose that work, but i get ...
Paolo's user avatar
  • 136
0 votes
1 answer
197 views

GWT >2.4 RequestFactory not saving child object changes

I have a project that has been running on GWT 2.4 for some time (and 2.0 etc before that). When I switch it to GWT 2.5 or 2.6, child objects attached to my main Entity no longer save changes made to ...
CyDharttha's user avatar
2 votes
2 answers
99 views

Disable GWT Request Factory Obfuscation

With GWT 2.4 obfuscation is performed for RequestFactory interfaces. Is there any way to disable this? Specifically I am looking to get at the names of actual RF method names in the client.
0E322070's user avatar
  • 762
0 votes
1 answer
55 views

RequestFactory production logging/diagnostic context

We have gone into production with a GWT/RequestFactory based app. All pretty good but debugging is tough as we currently don't always know the service methods being called. What is best practice for ...
salk31's user avatar
  • 1,005
0 votes
1 answer
59 views

GWT RequerstFactory - Extract code from entity to service locator

Let's say I have an entity "MyUser" and I don't want to store all my logic in there. As I understand the docu, I can add the logic to a service locator. I linked the service locator in my request ...
jan's user avatar
  • 3,953
0 votes
1 answer
40 views

Should GWT ReuestFactory share the same EventBus with the application?

I have set up a RequestFactory in my GWT project. now the question is whether it is a good idea to share event bus between RequestFactory in the application? Thanks,
H4F's user avatar
  • 91
1 vote
3 answers
66 views

How to handle the situation where a bean requires a server call as part of its initialiation

I have the folowing constructor... @Inject public EditorPresenter(final EventBus eventBus, final MyView view, final Provider<DataProvider> provider) { DataProvider provider = provider.get()...
Michael Wiles's user avatar
0 votes
1 answer
121 views

GWT RequestFactory: check if members have been set without permission

I am working with GWT / RequestFactory and a set of customer requirements regarding permissions. Let me explain a basic example: Every user is assigned to a company. Every user should be able to edit ...
grange's user avatar
  • 582

1
2 3 4 5
9