requestfactory

GWT Maven Plugin — gwt:run works but gwt:compile doesn't. Why?

此生再无相见时 提交于 2020-01-01 05:50:28
问题 I'm using gwt-maven-plugin to manage a GWT project. I use the gwt:run goal all the time to run locally in "dev mode" for testing. I now want to compile my project into a war for deployment on Tomcat. When I run gwt:compile , however, I get compile errors that indicate a classpath configuration issue. An example: Finding entry point classes [ERROR] Errors in 'shared.MyClass.java' [ERROR] Line 4: The import server.model.MyObject cannot be resolved Any ideas? Do I need to manually add the server

Using GWT Editors with a complex usecase

蓝咒 提交于 2019-12-28 03:32:09
问题 I'm trying to create a page which is very similar to the Google Form creation page. This is how I am attempting to model it using the GWT MVP framework (Places and Activities), and Editors. CreateFormActivity (Activity and presenter) CreateFormView (interface for view, with nested Presenter interface) CreateFormViewImpl (implements CreateFormView and Editor< FormProxy > CreateFormViewImpl has the following sub-editors: TextBox title TextBox description QuestionListEditor questionList

Smartgwt DataSource with gwt requestfactory etc

痞子三分冷 提交于 2019-12-25 01:45:06
问题 Does anyone have a working example of using the new GWT constructs for RequestFactory with a SmartGWT DataSource for databound widgets ? If possible I would like to make a generic data service that contains methods for listAll , getByExample , getByPrimaryKey etc. I beleibe it should be possible ??? If using RequestFactory would it make sense to ditch the datasource altogether and work directly with the widget fields ? Cheers, Andy 回答1: http://forums.smartclient.com/showthread.php?t=10850

Problems with GWT 2.4

谁说我不能喝 提交于 2019-12-23 05:52:36
问题 I compiled the version in svn tagged as gwt2.4rc. Now there are a couple of more libraries than I had the last time. Are the any instructions on which library is needed for what? I tried it with only the standard libraries (servlet, servlet-deps, user) but I get the following error when a requestfactory call is made: java.lang.NoSuchMethodError: com.google.gwt.core.client.impl.WeakMapping.setWeak(Ljava/lang/ Object;Ljava/lang/String;Ljava/lang/Object;) I tried declaring the requestfactory

Problems with GWT 2.4

那年仲夏 提交于 2019-12-23 05:52:29
问题 I compiled the version in svn tagged as gwt2.4rc. Now there are a couple of more libraries than I had the last time. Are the any instructions on which library is needed for what? I tried it with only the standard libraries (servlet, servlet-deps, user) but I get the following error when a requestfactory call is made: java.lang.NoSuchMethodError: com.google.gwt.core.client.impl.WeakMapping.setWeak(Ljava/lang/ Object;Ljava/lang/String;Ljava/lang/Object;) I tried declaring the requestfactory

Best Practices — Hibernate persistence code inside the Entity itself?

走远了吗. 提交于 2019-12-22 08:26:56
问题 In Google's RequestFactory tutorials, they recommend putting my persistence logic (in my case, Hibernate) inside the Entity classes. Then they pose the question: "What if you don't want to implement persistence code in an entity itself?" and proceed to explain an alternate method. My question: which is better, putting persistence logic inside the Entity class, or keeping all persistence logic in a separate class? Any info is appreciated, thanks. -tjw 回答1: Putting the persistence code in an

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

丶灬走出姿态 提交于 2019-12-21 20:35:59
问题 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

objectify query filter by list in entity contains search parameter

怎甘沉沦 提交于 2019-12-21 11:32:49
问题 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

objectify query filter by list in entity contains search parameter

你离开我真会死。 提交于 2019-12-21 11:32:33
问题 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

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

↘锁芯ラ 提交于 2019-12-18 11:33:36
问题 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