requestfactory

Need Help Packaging a GWT Library Module into a JAR

天大地大妈咪最大 提交于 2019-12-07 19:44:13
问题 I am trying to package a GWT library module into a JAR file and use the library in a separate GWT web app by adding the JAR file into its class path. The JAR contains: Java sources RequestFactory generated sources UiBinder generated sources class files library module descriptor UiBinder XML files The library module is inherited from the web app: <module> <!-- my web app's module descriptor --> ... <inherits name="[path to my library module].Library"/> ... </module> However, I am running into

GWT servlet filter ,How to identify special service request?

社会主义新天地 提交于 2019-12-06 11:36:18
问题 I created a app with GWT+requestfacotry(MVP)+GAE. There are some service or method exposed to GWT client ,such as 1.create 2.remove 3.query I want to add authorization function to "create" and "remove" ,but not to "query". I did it with servlet filter : public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException { UserService userService = UserServiceFactory.getUserService(); HttpServletRequest request =

GWT RF: How to share the same code in client and server

社会主义新天地 提交于 2019-12-06 10:46:23
I would like to use the same code to sort and manipulate objects in client and server sides. But I am facing a problem since in client we need a proxy interface representing the class of the server. Is there a way to use the same interface in both?, I know RF has a mechanism to copy bean attributes from the server instance to the client instance when it is sent through the wire. Manolo Carrasco Moñino As Thomas says in his answer , the only way in current GWT to have shared code in client and sever is implementing the same interface in both sides and using it in your shared code. Since RF

RequestFactory service inheritance on the client in GWT 2.4

自作多情 提交于 2019-12-06 09:23:54
GWT 2.4 brings service inheritance on the client ( issue 6234 , issue 6035 ). I've been waiting for this future for a long time, as it saves a lot of duplicated code on the client. I've started implementing it, but so for with mixed success. This is my code: public interface BaseEntityRequest<T> { Request<Void> put(T entity); Request<List<T>> getAllOrderBy(String propertyName); Request<List<T>> getRangeAndFilter(int limit,int offset, QueryInfoProxy queryInfo); } @Service(value = EgdDao.class, locator = DaoServiceLocator.class) public interface EgdRequest extends RequestContext,

Need Help Packaging a GWT Library Module into a JAR

雨燕双飞 提交于 2019-12-05 21:37:35
I am trying to package a GWT library module into a JAR file and use the library in a separate GWT web app by adding the JAR file into its class path. The JAR contains: Java sources RequestFactory generated sources UiBinder generated sources class files library module descriptor UiBinder XML files The library module is inherited from the web app: <module> <!-- my web app's module descriptor --> ... <inherits name="[path to my library module].Library"/> ... </module> However, I am running into Deferred binding failed for '[path to mylibrary].client.ClientFactory'... error when I try to launch

GWT polymorphic lists with @ExtraTypes

最后都变了- 提交于 2019-12-04 20:04:41
I have a little problem with a list that contains different types of elements and i would like to see if anyone of you have met the problem before. The issue should be solved with the use of @ExtraTypes, but it is not working for me, so i guess i am not using it correctly. So, the scenario is (bean names are changed for clarity): GENERAL: I am using GWT 2.5 with RequestFactory. SERVER-SIDE: I have a RootBean that contains, among other stuff, a List <ChildBean> . This ChildBean contains some primitive attributes. ChildBean is also extended by a MoreSpecificChildBean that inherits all the parent

GWT servlet filter ,How to identify special service request?

旧巷老猫 提交于 2019-12-04 15:48:16
I created a app with GWT+requestfacotry(MVP)+GAE. There are some service or method exposed to GWT client ,such as 1.create 2.remove 3.query I want to add authorization function to "create" and "remove" ,but not to "query". I did it with servlet filter : public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException { UserService userService = UserServiceFactory.getUserService(); HttpServletRequest request = (HttpServletRequest) servletRequest; HttpServletResponse response = (HttpServletResponse) servletResponse

GWT compiler can't find sources of depending module in IntelliJ IDEA

时光总嘲笑我的痴心妄想 提交于 2019-12-04 14:06:37
I'm using IDEA 117.216 It would be great if CrazyCoder sees this question :) How do you guys reference another module so GWT compiler sees it ? When I say module I mean module in IntelliJ IDEA's terminology. Here is my situation. I have midside project (GAE + GWT + RequestFactory). Now I created Android module in my project. The idea is that it will use C2DM and talk to the server via RequestFactory (RF). So naturally I created 3rd module within my project and moved all RF proxies and interfaces there so I can reference it both from GWT/GAE module and Android module. Android module likes it,

GWT Requestfactory performance suggestions

核能气质少年 提交于 2019-12-04 10:36:30
问题 I am observing really bad performance when using GWT requestfactory. For example, a request that takes my service layer 2 seconds to fullfil is taking GWT 20 seconds to serialize. My service is returning ~100 what will be EntityProxies. Each of these objects has what will become 4 ValueProxies and 2 more EntityProxies (100 root level EntityProxies, 400 ValueProxies and 200 additional EntityProxies). However, I see the same 10x performance degradation on much smaller datasets. Example of log

objectify query filter by list in entity contains search parameter

谁说胖子不能爱 提交于 2019-12-04 05:27:38
in an app i have an entity that contains a list of other entities (let's say an event holding a list of assigned employees) using objectify - i need to find all the events a particular employee is assigned to. is there a basic way to filter a query if it contains the parameter - kind of the opposite of the query in ... quick pseudocode findAll(Employee employee) { ... return ofy.query(Event.class).filter("employees.contains", employee).list(); } any help would be greatly appreciated i tried just doing filter("employees", employee) after seeing this http://groups.google.com/group/objectify