requestfactory

RequestFactoryEditorDriver getting edited data after flush

≯℡__Kan透↙ 提交于 2019-12-01 07:52:44
问题 Let me start with I have a solution, but I don't really think it is elegant. So, I am looking for a cleaner way to do this. I have an EntityProxy displayed in a view panel. The view panel is a RequestFactoryEditorDriver only using display mode. The user clicks on a data element and opens a popup editor to edit a data element of the EntityProxy with a few more bits of data than is displayed in the view panel. When the user saves the element I need the view panel to update the display. I ran

RequestFactory theory: Why is Locator<>.find() being called so often?

这一生的挚爱 提交于 2019-11-30 04:01:05
I'm new to RequestFactory but with generous help of Thomas Broyer and after reviewing documents below it's getting much better :) Getting Started with RequestFactory Request Factory Moving Parts RequestFactory changes in GWT 2.4 But could you please explain why Locator<>.find() is being called so unnecessarily (in my opinion) often ? In my sample project I have two entities Organization and Person that maintain parent-child relationship. When I fetch Organization Objectify automatically fetches child Person. Also I created two methods in my service layer findOrganizationById and

Spring + GWT or Spring vs GWT

送分小仙女□ 提交于 2019-11-30 03:09:24
Background I am in the middle of developing a web application using GWT, Java, and EclipseLink. Each of those selections are choices I have made to implement this program. GWT is the only choice where there is not a firm grasp as to what it is exactly compared to something like Spring. Right now I use GWT widgets to implement the client and GWT RequestFactory to implement the server-client communication of entities from EclipseLink. Views So I view GWT as primarily a library of widgets with a simple framework for server-client communication. This is much the same way I view Spring, a library

requestfactory and findEntity method in GWT

空扰寡人 提交于 2019-11-29 11:13:42
I am trying to use RequestFactory. My ORM provider is JPA. I have a method to retrieve a list of entity called findAll(). When the user requests for a list of entities, findAll is called. Find all executes a query against database and returns a list of entities. However, when requestFactory is asked to send this list back to the user, requestfactory calls findEntity() for each entity in the list. My question is: is there any way I can instruct request factory to not call find entity for each item in the list? This is likely from SimpleRequestProcessor.createReturnOperations() determining

GWT 2.1 Editors framework

六月ゝ 毕业季﹏ 提交于 2019-11-29 08:05:22
问题 I'm looking for some documentation or examples on how to use the GWT 2.1 Editor framework. Google's documentation is uh, somewhat lacking. From the limited documentation available, I've been able to glean that editors will (in theory) allow you to more easily bind GUI elements to data models. This will alleviate the very common task of copying data into a TextArea/ListBox/CheckBox, and then replicating the user's changes back to the underlying model (and ultimately the DB). If it does indeed

Spring + GWT or Spring vs GWT

允我心安 提交于 2019-11-29 00:11:27
问题 Background I am in the middle of developing a web application using GWT, Java, and EclipseLink. Each of those selections are choices I have made to implement this program. GWT is the only choice where there is not a firm grasp as to what it is exactly compared to something like Spring. Right now I use GWT widgets to implement the client and GWT RequestFactory to implement the server-client communication of entities from EclipseLink. Views So I view GWT as primarily a library of widgets with a

GWT RequestFactory authentication functions

↘锁芯ラ 提交于 2019-11-28 09:34:18
I'm using GWT and RequestFactory on a new project that needs authentication. Where would be the best place to add the login and logout functions ? in a UserRequestContext ? Thanks in advance. Use servlet filter. I split RequestFactory calls into two streams - one for unauthenticated calls and another one for authenticated ones. Here is piece of my web.xml . <servlet> <servlet-name>CustomRequestFactoryServlet</servlet-name> <servlet-class>my.server.CustomRequestFactoryServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>CustomRequestFactoryServlet</servlet-name> <url-pattern>

GWT Spring Security Integration (PURE GWT, NO JSP)

蓝咒 提交于 2019-11-28 08:31:53
I´m using GWT 2.4 and Spring 3.1 and I want to secure my application with Spring Security . I was looking for a GWT-only solution without a separate JSP login page. I found only old sites using JSP to do login, so this thread could result in a solution to fully integrate GWT with Spring Security in a standard way. Anyway, if there is a reference where this has been done successfully already, this thread can be closed with a link to that reference of course. So far here is my first approach: applicationcontext-security.xml: <http auto-config="false" use-expressions="true" entry-point-ref=

When should I use RequestFactory vs GWT-RPC?

大城市里の小女人 提交于 2019-11-27 16:50:14
I am trying to figure out if I should migrate my gwt-rpc calls to the new GWT2.1 RequestFactory cals. Google documentation vaguely mentions that RequestFactory is a better client-server communication method for "data-oriented services" What I can distill from the documentation is that there is a new Proxy class that simplifies the communication (you don't pass back and forth the actual entity but just the proxy, so it is lighter weight and easier to manage) Is that the whole point or am I missing something else in the big picture? The big difference between GWT RPC and RequestFactory is that

How to Use the GWT-RequestFactory in Android SyncAdapter (always getting ValidationTool-Error)

試著忘記壹切 提交于 2019-11-27 15:15:51
问题 I got a question about the usage of GWT-RequestFactory in Android. As a starting point I used the code from the “Create a AppEngine connected Android-Project”-Wizard (infos: http://code.google.com/intl/de-DE/eclipse/docs/appengine_connected_android.html) and it worked great. But now in my case I want do extend this application to use a local ContentProvider with SQLite and a SyncService with SyncAdapter do synchronize the data from the ContentProvider to the AppEngine using the RequestFactory