Questions tagged [requestfactory]
RequestFactory is a component of the Google Web Toolkit that targets developers building data-oriented (CRUD) applications.
439
questions
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 ...
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 ...
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 ...
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 ...
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 ...
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(...
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. ...
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 ...
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 ...
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.
...
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 ...
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(...
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[] ...
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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, ...
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
...
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 ...
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 ...
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 ...
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 ...
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 ...
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-...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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, ...
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
| |
|...
-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 ...
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
...
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 ...
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 ...
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.
...
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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,
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()...
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 ...