gwt

How to use Twilio with GWT in Google AppEngine (Java)

匆匆过客 提交于 2019-12-24 17:07:04
问题 I was trying to use Twilio's official Java library in my GWT application to send text messages. Here is the Twilio code I used in my application: public class TwilioSMS{ /** The Constant ACCOUNT_SID. */ public static final String ACCOUNT_SID = "xxxxxxxxxxxxxxxxxxxxxxxxxx"; public static final String AUTH_TOKEN = "xxxxxxxxxxxxxxxxxxxxxxxxx"; // Create a rest client TwilioRestClient client = new TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN); /** * The main method. * * @param args * the arguments *

Can I specify a file type in GWT FileUpload?

别等时光非礼了梦想. 提交于 2019-12-24 16:35:28
问题 I have a Gwt application and use a FileUpload to allow users to upload files. Only certain types of files will be accepted and I have validation to check the file types once the user has selected it for uploading but I want to know if there is a way to only show files with certain extensions in the upload dialog box. E.g. If the user has to upload a .doc file then I only want them to be able to see folders and .doc's, not All file types. 回答1: As per my knowledge There is no programmatical way

Window.open in GWT not open correctly with in a call back function

隐身守侯 提交于 2019-12-24 16:33:19
问题 I have a situation where i need to download a excel file. So i user Window.open for that. The problem is i need to check whether the file is exsist in the server location before call the Window.open. So when user click the download buton below call happens, public void onClick(Button button, EventObject e) { final String url = GWT.getModuleBaseURL() + "fileupload/dailyLogReport?param1=param1 openFileDownloadWindow(url,fileName); } public void openFileDownloadWindow(final String url,String

The import gwtupload cannot be resolved

谁说胖子不能爱 提交于 2019-12-24 16:26:18
问题 I create sample application of gwtupload . https://code.google.com/p/gwtupload/ Its working fine with the .jar I downloaded from project home. But for my custom requirement I downloaded project from git https://github.com/manolo/gwtupload and made changes as per my requirement and created .jar file. Then I imported it to my project and included in classpath. Even eclipse is not giving any error in editor mode. But when I debug and open URL its giving me following error. [ERROR] [uploadtest] -

overlapping divs on the right edge of the page

限于喜欢 提交于 2019-12-24 16:02:44
问题 I am having troubles for positioning a span with the watermark text on top of an input. The code using GWT+uibinder looks like that: http://jsfiddle.net/camposcarlos/dMzL4/ and transformed into html looks like that: http://jsfiddle.net/ajMWd/ instead of having the span overlapped on top of the input field by floating it to the left: |----------------------------------| | |------------||--|| | |passwd ||Go|| | |------------||--|| | | |----------------------------------| I get it after the

how to remove the focus on disclosure panel's header

a 夏天 提交于 2019-12-24 15:53:31
问题 i noticed that whenever i click the disclosure panel's header, it got focused, namely you can see the black dotted border around the header, is there any way i can get rid of that? Thanks. 回答1: You can achieve this by setting css style outline:0 on the Disclosure header: .gwt-DisclosurePanel .header { outline:0; } See also http://css-tricks.com/removing-the-dotted-outline/ Basically you need to remove the outline from the a anchor element. 来源: https://stackoverflow.com/questions/5034312/how

GWT: how do I go to a new place from within the Activity start method?

偶尔善良 提交于 2019-12-24 15:22:13
问题 So I'm doing something like this: public class SecureActivity extends AbstractActivity { public void start(AcceptsOneWidget container, EventBus eventBus) { if (!_app.isUserLoggedIn()) { _app.goTo(new LoginPlace(_app.getCurrentPlaceToken())) } else { // do cool secure stuff } } } But the behavior that I'm seeing is that my browser's history is for original url (from the original request), then the login:redirectPlace, and then original url again. It seems like I need to do my redirection after

How to change the url of a g:image in gwt

萝らか妹 提交于 2019-12-24 15:00:00
问题 I'm new to GWT. I created in my ui.xml a panel containing an Image. I want to change the url, the alt & the title of that image depending some conditions. How to do it ? <g:Image url="images/document-statut-1.gif" title="My title" altText="My alt"></g:Image> Thnx 回答1: Modify the uibinder element so it has a field name: <g:Image url="images/document-statut-1.gif" ui:field="imageWidget" title="My title" altText="My alt" /> Then make a matching field in your java code: @UiField Image imageWidget

GWT compiler option to see generated files from custom generator with gwt maven plugin

前提是你 提交于 2019-12-24 13:02:21
问题 points out the -gen argument to compiler As pointed out in the above post I added the gen flag by modifying my gwt maven plugin configuration like this <gen>genSource</gen> Funny thing it does write the generated classes but only the gwt core generator classes. none of my own custom generator classes output is written into it. Any clues as to what could be wrong ? 回答1: To do this, I am assuming you are using Eclipse with GWT plugin. right click on Gwt project Run As->Run Configuration, Select

GWT Google Visualization - subsequent redraws change number of Y axis steps?

人走茶凉 提交于 2019-12-24 12:36:18
问题 I am having a weird bug with GWT google visualization library wrapper, specifically AnnotatedTimeLine. Namely, I draw my chart on the initial ajax call to google visualization tools, and then I redraw it every 5 seconds using a timer. Each time it redraws, the "steps" on Y axis change their values and frequency (sometimes you will have them in more frequent intervals). Note values of graph stay exactly the same. I've included 2 screenshots to show you 2 stances it goes from. On every