gwt

How to implement a JQueryUI slider in GWT

不羁的心 提交于 2020-01-02 09:59:30
问题 I recently needed to implement a slider in GWT to capture the percentage progress an user had made on a task. I was not happy with the slider from the GWT Incubator and was not too keen on using an external library like spiffy UI or SmartGWT. What alternatives could I use to implement an effective slider in GWT without doing too much donkey work ? 回答1: After a fair amount of searching I decided on going with a JQuery-Ui slider that would be implemented through a java wrapper class. The

What is the Difference between com.google.gwt.dev.Compiler and com.google.gwt.dev.GWTCompiler

血红的双手。 提交于 2020-01-02 08:35:13
问题 When i go through the com.google.gwt.dev package i found that there are two compilers available in com.google.gwt.dev . My need is to compile a GWT project programatically from my Java Application. Which one is suited? 回答1: Both the classes are the main executable entry point for the GWT Java to JavaScript compiler. But com.google.gwt.dev.GWTCompiler is deprecated Use com.google.gwt.dev.Compiler (latest compiler from 2.5) Here you can find the both classes api : GWTCompiler // here you can

How to set up eclipse with GWT and (regular servlet) Jetty backend

限于喜欢 提交于 2020-01-02 07:47:27
问题 Does anybody know how to set up a project in Eclipse with GWT and a jetty backend (regular web app, not app engine)? Or know of a good link (tried googling it, but no dice) I've been trying to set up this all evening, but just ran into a number of strange problems, some seems to be bugs in WST/Jetty and the other is that the host page just doesn't work :-( 回答1: There are three ways to run your own jetty server together with GWT. If you run your own jetty server you have to invoke dev-mode in

AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext

浪子不回头ぞ 提交于 2020-01-02 07:42:12
问题 I have this implementation of a login function on my server following this post basically: @Transactional public void login(String userId, String password) { LOGGER.debug("Login for " + userId); User user = new User(userId, password, true, true, true, true, new ArrayList<GrantedAuthority>()); Authentication auth = new UsernamePasswordAuthenticationToken(user, password, new ArrayList<GrantedAuthority>()); try { auth = this.authenticationProvider.authenticate(auth); } catch

How to Implement progressbar with GWT?

眉间皱痕 提交于 2020-01-02 07:20:37
问题 In a GWT application, I have a long process that runs server side and invoked using rpc(GWT dispatcher) and I want to have a feedback to the Client as a progress bar showing messages and the total progress. My question is how to recover messages and the progress dynamically from the server? I'm interested in any solution thank you in advance for your help. 回答1: Have a look at the get progress bar in the incubator. Here is another example of someone using it. UPDATE If you want to display the

GWT Maven - webapp files getting deleted when running in dev mode

旧巷老猫 提交于 2020-01-02 07:13:54
问题 As specified in the gwt maven mojo plugin documentation, I have selected src/main/webapp folder as my war directory in eclipse->project properties->Google->Web application. Then, when I tried to run my gwt project in dev mode from eclipse, the html files in webapp folder was getting deleted. After some investigation, I was able to fix this by modifiying -war value in run configuration to the target folder of the project. But the problem I am facing now is that, after running the project in

GWT vs. ScriptSharp Pros and Cons [closed]

怎甘沉沦 提交于 2020-01-02 06:43:40
问题 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 6 years ago . We have determined it's too difficult for us to maintain the bulk of javascript we need to write full-scale "single page" javascript

GWT Event Preview vs Event Handler

会有一股神秘感。 提交于 2020-01-02 06:22:08
问题 My question is, what's the different between event preview and event handler in GWT. There is a callback function boolean onEventPreview(Event event) for event preview and a callback function void onBrowserEvent(Event event) as well. They are pretty similar, so what's the different between them? Especially when should I use the event preview at all when the event handler works perfect? thanks 回答1: DOM.addEventPreview(EventPreview preview) lets you place an event preview on top of the event

Easiest way to enable Google authentication for GWT application? (non-GAE-hosted)

徘徊边缘 提交于 2020-01-02 06:19:32
问题 What is the easiest way to enable existent GWT application authenticate users using Google account? I tried googling (lol) it but have found no solutions that could work out of the box. Is there a library to solve this problem in like 10 lines of code? P.S. The application I've mentioned isn't hosted at Google Apps if it matters. 回答1: I have been looking at gwt-oauth2 for this purpose recently. It looks pretty decent, and the docs are straightforward. Perhaps it could be of interest. 来源:

Easiest way to enable Google authentication for GWT application? (non-GAE-hosted)

痴心易碎 提交于 2020-01-02 06:19:19
问题 What is the easiest way to enable existent GWT application authenticate users using Google account? I tried googling (lol) it but have found no solutions that could work out of the box. Is there a library to solve this problem in like 10 lines of code? P.S. The application I've mentioned isn't hosted at Google Apps if it matters. 回答1: I have been looking at gwt-oauth2 for this purpose recently. It looks pretty decent, and the docs are straightforward. Perhaps it could be of interest. 来源: