gwt

GWT sliding side panel

断了今生、忘了曾经 提交于 2019-12-23 03:19:20
问题 I am interested in how would you approach creating sliding side panel in GWT? (i.e. social networks sliding panel on the left of this page: http://www.inc.com/articles/2011/03/how-19-year-old-daniel-gross-is-taking-on-google-with-greplin.html) What kind of events should I handle? Regards 回答1: This kind of stuff can be done entirely with CSS. Have a look at the css properties position: relative (for the initial position), position: fixed as well as top and left properties when the user scrolls

How to set default value to a GWT AutoBean?

自作多情 提交于 2019-12-23 02:53:56
问题 I have a Class that i wanted to generate his AutoBean. Example.class : public static class Example implements Serializable { public Example2 example2 = new Example2(); public static BigDecimal calc(BigDecimal dec){ return dec != null ? dec: BigDecimal.ZERO; } public static class Example2 implements Serializable { public BigDecimal value1 = BigDecimal.ZERO; public BigDecimal value2 = BigDecimal.ZERO; public BigDecimal getSum(){ return calc(value1).add(calc(value2)); } } } AutoBean Example:

Installing GWT plugin for eclipse

风流意气都作罢 提交于 2019-12-23 02:36:46
问题 I have tried to install the GWT plugin for eclipse helios. when I try to I get this message: Cannot complete the install because one or more required items could not be found. Software being installed: Google Web Toolkit SDK 2.4.0 2.4.0.v201203300216-rel-r36 (com.google.gwt.eclipse.sdkbundle.e36.feature.feature.group 2.4.0.v201203300216-rel-r36) Missing requirement: Google Plugin for Eclipse 3.6 2.5.2.v201203300216-rel-r36 (com.google.gdt.eclipse.suite.e36.feature.feature.group 2.5.2

Maven, GWT and Eclipse project

寵の児 提交于 2019-12-23 02:33:45
问题 I'm trying to setup new web project using newest Maven, GWT and Eclipse. I'm trying to generate it with available archetype from GWT Maven Plugin with command: mvn archetype:generate -DarchetypeGroupId=org.codehaus.mojo -DarchetypeArtifactId=gwt-maven-plugin -DarchetypeVersion=2.4.0 -DarchetypeRepository=repo1.maven.org Running mvn gwt:run builds project, appication starts and everything seems to be ok. The problem appears when I'm trying to import this project as "Maven Project" into Eclipse

SVG animation not working in Chrome (using animateTransform in GWT)

吃可爱长大的小学妹 提交于 2019-12-23 02:22:20
问题 i'm using GWT and the GWTGraphics library to to create an animation for a svg Path element. I use the GWTGraphics library to create the path element and the animateTransform element (witch is appended to the path element) to create a rotation animation. I tested in Firefox 4.0 and it works fine. I then tested in Chrome (ver. 17) and Opera(11.61) but nothing happens. So I tried copying the html, as it was generated by the gwt code using the Chrome development tools, and created a simple html

Make GWT load faster during DevMode

点点圈 提交于 2019-12-23 02:22:12
问题 What are the ways to make browser page refresh faster during GWT DevMode? As code gets complex DevMode becomes slower. One of my "performance tweak" is to add the -vmargs in the project Run Configuration, what other tweaks can we do? 回答1: Use Firefox, rather than Chrome - Chrome with dev mode is much slower than firefox. Try to avoid passing into/out of JSNI - that often is quite expensive. And, as always, more ram helps, if you can get it. Looking to the future, according to Ray Cromwell's

How to use JavaScript with gwt Uibinder

那年仲夏 提交于 2019-12-23 02:03:02
问题 I want to execute JavaScript in my application which is written with GWT. This is the code that works in a regular HTML: <html> <head> </head> <body> <ul> <li></li> <li></li> <li></li> <li></li> <li></li> </ul> <script src="jquery.js"></script> <script src="jquery.roundabout.js"></script> <script> $(document).ready(function() { $('ul').roundabout(); }); </script> </body> </html> (Assume jquery.js and jquery.roundabout.js are in the same folder.) I have a somePresenter (with someView.java and

GWT: Get URL of file located on server

时间秒杀一切 提交于 2019-12-23 02:02:26
问题 I am developing an web application which can upload/download a file from client to PostgreSQL database server via GWT RPC call. I managed to create an upload servlet which store desired file(choosed by user via FileUpload widget) to Glassfish "TEMP" directory => then i used SQL command: INSERT INTO table VALUES ('"+name+"',lo_import('"+f.getCanonicalPath()+"\\TEMP\\"+name+"'),...) which put that file into database. This works pretty good. Problem occurs when i want to download file from

How to get data from activation link with Java Servlet

a 夏天 提交于 2019-12-23 01:52:52
问题 I am using GWT and after that a user registers, I need to send the user a mail with an activation link. The activation link might contain the username of the user and a hashed value. With PHP, I know to retrieve these values using get method. I am new GWT Java and I want to be able to get the values in the activation link. I am also using a Java on the server. I just want to know, what i need to do when the user is redirected to my site after clicking on the activation link (which contains

Trying to use SmartGWT but getting errors: “Cannot read property 'setAutoDraw' of undefined”

穿精又带淫゛_ 提交于 2019-12-23 01:43:20
问题 I am trying to introduce SmartGWT to my existing GWT application. What I did so far was placing <inherits name="com.smartgwt.SmartGwt"/> into my client.gwt.xml and module.gwt.xml files. If I run the application, the compilation appears to work. I am not getting any errors from the code server - just a few warnings about deprecated classes but nothing else. However, if I just import a SmartGWT button like this: public LandingPageViewImpl() { initWidget(uiBinder.createAndBindUi(this));