gwt

GWT resize textarea in IE Internet Explorer

夙愿已清 提交于 2020-01-06 06:12:26
问题 How can we make a textarea resizable in IE on a GWT project? A textarea can be made resizable using CSS, but this doesn't work in IE: .gwt-TextArea { resize: vertical; } 回答1: I figured out a solution using the JQuery resizable() method. In order to use it in a GWT project, I used JSNI (Javascript Native Interface) to integrate Javascript code into your GWT project. Steps Set the element id of the widget that we want to resize in GWT. Add your JQuery libraries to the GWT project's starter page

GWT resize textarea in IE Internet Explorer

烈酒焚心 提交于 2020-01-06 06:12:12
问题 How can we make a textarea resizable in IE on a GWT project? A textarea can be made resizable using CSS, but this doesn't work in IE: .gwt-TextArea { resize: vertical; } 回答1: I figured out a solution using the JQuery resizable() method. In order to use it in a GWT project, I used JSNI (Javascript Native Interface) to integrate Javascript code into your GWT project. Steps Set the element id of the widget that we want to resize in GWT. Add your JQuery libraries to the GWT project's starter page

GWT log file when deployed

不打扰是莪最后的温柔 提交于 2020-01-06 05:49:27
问题 i have a GWT web application project and i will deploy it to Tomcat . before deploying it, i want to set a log file so that i can trace if some errors occur like JavaScriptException . how can i do this? as i did some research, i've read that GWT's default logging does not emulate the FileHandler that allow me write my log file to a specific file. Then from some forums about logging, someone has been using log4j but log4j is for Java (am i right?). how can i do the logging for my GWT app? 回答1:

GWT - area selection/imagemap

时光怂恿深爱的人放手 提交于 2020-01-06 05:30:26
问题 So, I'm starting to use GWT and I am having a little problem. I have to retrieve some information about a building and I want to show to the user a floorplan for him to choose from where does he want information to be shown. So, I tried an imagemap, but Iit is not working. Do someone has any suggestion or example of that? Thank you, Mauricio 回答1: I'm sure there are a couple ways of going about this. You might want to try some extension of the an already existing class as was done here with

What the best strategy to structure CSS in GWT?

孤街醉人 提交于 2020-01-06 05:07:09
问题 We have a medium size application with around 30 views. We have many CSS files laying around. Some are specialized (popup styles) but the rest contains style for different parts of the application, in addition of the style embedded in the *.ui.xml and it's start to get pretty messy. Is there any guideline on how to structure the styling in a GWT application and in a web application in general ? How do you structure yours ? 回答1: There are two schools of thought on this. Some developers prefer

What the best strategy to structure CSS in GWT?

倖福魔咒の 提交于 2020-01-06 05:07:05
问题 We have a medium size application with around 30 views. We have many CSS files laying around. Some are specialized (popup styles) but the rest contains style for different parts of the application, in addition of the style embedded in the *.ui.xml and it's start to get pretty messy. Is there any guideline on how to structure the styling in a GWT application and in a web application in general ? How do you structure yours ? 回答1: There are two schools of thought on this. Some developers prefer

I have a modal Window implemented in SmartGWT - how can I close it when someone clicks off of the window?

半腔热情 提交于 2020-01-06 04:35:46
问题 I've created a class that extends the Window SmartGWT class, and it is set to be modal. I am trying to make the Window close when a user clicks off the window. I have tried to link it up to a FocusChangedHandler with no luck. Has anyone done something like this before? /** * Sets up a modal Dialog box that lets the user edit attributes associated * with the properties of the {@link LabElement} that are given. * * @author Therin Irwin */ public class EditorDialog extends Window { final

GWT: Export a CellTable to an image or pdf file

余生长醉 提交于 2020-01-06 02:16:48
问题 I have a CellTable showing data that is plotted in a GFlot SimplePlot. An export of the plot is possible with GFlots integrated function: exportImage = plot.getImage(); Now I would like to export the CellTable too, to show the corresponding data to the plot. Is this possible in some way with GWT on the client-side? It needn't to be the CellTable itself, just the data it shows would suffice. 回答1: I think You can use flash4j library: package com.emitrom.flash4j.demo.client; import com.emitrom

How to test “Timer code” in a GWTTestCase?

假装没事ソ 提交于 2020-01-05 14:27:50
问题 I am writing code using GWT, and I have created a java.util.Timer emulation , which I could like to test . In Java, I would create a Timer, fire a task on it, wait until the task was executed, and then return from successfully the unit test method (or fail, after some timeout expired). I don't know much about JavaScript (which is why I use GWT), but I have seen examples using the JavaScript "native" timer functions setTimeout()/setInterval(), where the handler/callback, used a flag to make

How to test “Timer code” in a GWTTestCase?

不羁岁月 提交于 2020-01-05 14:26:14
问题 I am writing code using GWT, and I have created a java.util.Timer emulation , which I could like to test . In Java, I would create a Timer, fire a task on it, wait until the task was executed, and then return from successfully the unit test method (or fail, after some timeout expired). I don't know much about JavaScript (which is why I use GWT), but I have seen examples using the JavaScript "native" timer functions setTimeout()/setInterval(), where the handler/callback, used a flag to make