gwt

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

Failed to create an instance of Service via deferred binding

不想你离开。 提交于 2020-01-01 04:19:40
问题 I have been trying to build a GWT / Google App Engine web app using the mvp4g framework. I keep getting an error about Failing to create an instance of my Service via deferred binding . My Acebankroll.gwt.xml file looks like: <?xml version="1.0" encoding="UTF-8"?> <module rename-to='acebankroll'> <inherits name='com.google.gwt.user.User'/> <inherits name="com.google.gwt.i18n.I18N"/> <inherits name='com.google.gwt.user.theme.standard.Standard'/> <inherits name='com.mvp4g.Mvp4gModule'/> <entry

Multiple file upload using GWT and AppEngine Blobstore?

ε祈祈猫儿з 提交于 2020-01-01 03:25:10
问题 How would I go about creating a modern, Gmail-like, multiple file upload in GWT and AppEngine Blobstore? The solution most commonly proposed is gwtupload, an excellent GWT component written by Manolo Carrasco. However, the latest version 0.6.6 does not work with blobstore (at least I can't get it to work), and it does not support multiple file select. There's a patch for multiple file select in the latest 0.6.7 snapshot, but although it allows selection of multiple files (using the "multiple"

How do I remove implementing types from GWT’s Serialization Policy?

只谈情不闲聊 提交于 2020-01-01 03:21:11
问题 The opposite of this question: How do I add a type to GWT's Serialization Policy whitelist? GWT is adding undesired types to the serialization policy and bloating my JS. How do I trim my GWT whitelist by hand? Or should I at all? For example, if I put the interface List on a GWT RPC service class, GWT has to generate Javascript that handles ArrayList, LinkedList, Stack, Vector, ... even though my team knows we're only ever going to return an ArrayList. I could just make the method's return

GWT MVP updating Activity state on Place change

て烟熏妆下的殇ゞ 提交于 2020-01-01 03:17:09
问题 What is the best practise to update Activity state on Place change? Imagine you have an activity with view that displays list of categories and list of items in the category. If different category is selected then app goes to new place with category ID. I want then to only refresh items and not to create new activity that also re-reads category list. My current approach is like this: public class AppActivityMapper implements ActivityMapper { private ItemListActivity itemListActivity; ...

Is there way for a GWT program to tell if it's in hosted or web mode?

亡梦爱人 提交于 2020-01-01 02:50:07
问题 I would like my GWT program to be able to determine whether it's in hosted mode or in web mode. Is there a way to do this? Thanks! 回答1: GWT.isScript() returns true in non hosted mode and false in hosted mode. http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/core/client/GWT.html#isScript() 回答2: Be careful with this. You still can't run unemulated Java code in the statement. if(GWT.isScript()) { //some code not in the JRE emulation here } The example code will cause

GWT: FlexTable vs Table

冷暖自知 提交于 2019-12-31 21:22:31
问题 Under what circumstance I should use FlexTable instead of HTMLTable? 回答1: HTMLTable is an abstract class. FlexTable extends this class as well as Grid. HTMLTable is thus never used directly, but you would use FlexTable or Grid. The question is than probably when to use FlexTable? and when to use Grid? The difference between those classes is that a Grid always has the same number of rows and/or columns while a FlexTable can have different rows per column and different columns per row (This is

GWT: FlexTable vs Table

蹲街弑〆低调 提交于 2019-12-31 21:22:10
问题 Under what circumstance I should use FlexTable instead of HTMLTable? 回答1: HTMLTable is an abstract class. FlexTable extends this class as well as Grid. HTMLTable is thus never used directly, but you would use FlexTable or Grid. The question is than probably when to use FlexTable? and when to use Grid? The difference between those classes is that a Grid always has the same number of rows and/or columns while a FlexTable can have different rows per column and different columns per row (This is

What is the best way to test GWT code [closed]

可紊 提交于 2019-12-31 19:28:21
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . What is the best way to test GWT code? GWTTestCase in hosted mode is too slow and none of the mocking frameworks work. Currently we

set the values in Listgrid (smartGWT)

Deadly 提交于 2019-12-31 05:20:28
问题 I am trying to use smart Gwt, Listgrid. I am using both com.google.gwt.user.client.ui and smart gwt. I have value in a ListGridRecords[] records. I am unable to set the values in table. this piece of code is in composite. public TableDocument(Action action) { initWidget(getTablePanel()); } private HorizontalPanel getTablePanel() { if (tablePanel == null) { tablePanel = new HorizontalPanel(); tablePanel.setSize("144px", "75px"); addtable(); } public void addtable() { // TODO Auto-generated