gwt

Element.getStyle() does not return any value in GWT

感情迁移 提交于 2020-01-07 04:13:00
问题 My CSS file below sets width "50px" for style "myButton", and accordingly the element is correctly created with width 50px. The issue is managing the element from Java (GWT). The following lines: MyFile.java final Element box1 = DOM.getElementById("myButton"); String test=box1.getStyle().getWidth(); box1.getStyle().setWidth(100, Unit.PX); String test2=box1.getStyle().getWidth(); have as a result test="" and test2="100px" , and element is correctly resized to 100px. Why doesn't test have any

Element.getStyle() does not return any value in GWT

旧街凉风 提交于 2020-01-07 04:11:52
问题 My CSS file below sets width "50px" for style "myButton", and accordingly the element is correctly created with width 50px. The issue is managing the element from Java (GWT). The following lines: MyFile.java final Element box1 = DOM.getElementById("myButton"); String test=box1.getStyle().getWidth(); box1.getStyle().setWidth(100, Unit.PX); String test2=box1.getStyle().getWidth(); have as a result test="" and test2="100px" , and element is correctly resized to 100px. Why doesn't test have any

Save gwt entities to google application engine datastore with jdo, using rpc

孤人 提交于 2020-01-07 04:09:10
问题 Hello iam new to GWT framework. I want to persist my domain objects/entities to google application engine datastore using rpc. A simple implementation to test if i can make multiple rpc calls ( greetServer() , saveStudent() ) Student import javax.jdo.annotations.Extension; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; import com.google.gwt.user.client.rpc

GWT ORM OrmConcurrencyException: Concurrent modification detected - find the cause

巧了我就是萌 提交于 2020-01-07 01:49:35
问题 In a GWT based application (Google Gerrit in particular), I'm getting an exception (while executing the gerrit review command): com.google.gwtorm.server.OrmConcurrencyException: Concurrent modification detected at com.google.gwtorm.jdbc.JdbcAccess.execute(JdbcAccess.java:449) at com.google.gwtorm.jdbc.JdbcAccess.updateAsBatch(JdbcAccess.java:270) at com.google.gwtorm.jdbc.JdbcAccess.update(JdbcAccess.java:223) Is there a way to identify which data in particular caused the concurrency error?

GWT retrieve list from datastore via serviceimpl

谁都会走 提交于 2020-01-07 01:31:59
问题 Hi I'm trying to retrieve a linkedhashset from the Google datastore but nothing seems to happen. I want to display the results in a Grid using GWT on a page. I have put system.out.println() in all the classes to see where I go wrong but it only shows one and I don't recieve any errors. I use 6 classes 2 in the server package(ContactDAOJdo/ContactServiceImpl) and 4 in the client package(ContactService/ContactServiceAsync/ContactListDelegate/ContactListGui). I hope someone can explain why this

No source code is available for type <type> did you forget to inherit a required module?

假装没事ソ 提交于 2020-01-06 22:52:08
问题 I am trying to split my project into 4 Java modules: web-client web-client-admin web-client-landing web-client-core The module web-client is the one that puts all pieces together, so the dependency tree would look something like this: <-- web-client-admin <---- / \ web-client <--- <---- web-client-core \ / <-- web-client-landing <-- In my module.gwt.xml I am having: <inherits name="com.mz.client.application.landing" /> <inherits name="com.mz.client.application.admin" /> <inherits name="com.mz

No source code is available for type <type> did you forget to inherit a required module?

限于喜欢 提交于 2020-01-06 22:48:07
问题 I am trying to split my project into 4 Java modules: web-client web-client-admin web-client-landing web-client-core The module web-client is the one that puts all pieces together, so the dependency tree would look something like this: <-- web-client-admin <---- / \ web-client <--- <---- web-client-core \ / <-- web-client-landing <-- In my module.gwt.xml I am having: <inherits name="com.mz.client.application.landing" /> <inherits name="com.mz.client.application.admin" /> <inherits name="com.mz

jQuery vs GQuery Benchmark

拈花ヽ惹草 提交于 2020-01-06 19:56:32
问题 I remember stumbling upon a benchmark comparing jQuery vs GQuery (run time selectors) vs GQuery (compile time selectors). Once the site was loaded one could click "Start" and the benchmark (mostly CSS selectors) would run for all three versions and present the results (overall time spent) after finishing. Unfortunately, I cannot find it anymore. I do not refer to the "horse race" benchmark in Ray Cromwell's excellent video. Does anyone know this benchmark and provide me with the link? Thanks!

GWT (2.7) Compile fails when declaring a GwtQuery (1.0.6) Widget in UiBinder in GWTP (1.5.1) project

[亡魂溺海] 提交于 2020-01-06 19:33:29
问题 When I simply just declare a GwtQuery DragAndDropCellTree in my MyView.ui.xml UiBinder in my GWTP project, I cannot GWT Compile it: [3] xmlns:gq="urn:import:gwtquery.plugins.droppable.client.gwt" ... [59] <gq:DragAndDropCellTree></gq:DragAndDropCellTree> [ERROR] No class matching "DragAndDropCellTree" in urn:import:gwtquery.plugins.droppable.client.gwt: < gq:DragAndDropCellTree > (:59) [ERROR] Errors in 'gen/my/package/com_gwtplatform_mvp_client_DesktopGinjector_DesktopGinjectorGinjector

Clone a panel of widgets

╄→尐↘猪︶ㄣ 提交于 2020-01-06 15:33:07
问题 is it possible in GWT to clone a panel? If so, are all the handler settings copied as well? Basically I have a Panel full of controls, all laid out, I want to copy it and pop it up in a PopupPanel without having to go through the code that created the controls in the first place. I got as far as DOM.clone(), and this message post. But there is no wrap() in Widget, UIObject etc. setElement() is protected. 回答1: Have you considered creating a new GWT widget, consisting of all of those controls?