gwt

Why does GWT ignore browser locale?

拈花ヽ惹草 提交于 2019-12-18 16:51:25
问题 GWT gets locale from either the locale property or the locale query string. If neither is specified, it uses the "default" (ie en_US ) locale. Why doesn't it get it from the browser settings? It seems the only solution to this is to replace your static html launch page with something like a JSP that reads the browser locales and sets the locale or redirects using the query string. There has to be a better solution than this or simply hard-coding a locale, surely? 回答1: You can also put this

Sending a date and timezone from GAE server to GWT client

寵の児 提交于 2019-12-18 13:36:41
问题 OK folks, I have been going around this problem for about 2 weeks now trying everything I can think of and looking at tons of answers on here that feel like they are going to answer it, but I just cant work out how I am meant to do what I am trying to do and it is driving me absolutely NUTS! No one seems to have an answer anywhere, there are half answers all over the place, but none seem to actually do what I need it to do, surely SOMEONE has solved this problem before! Please excuse the

if basic, sample GWT app takes 30sec to load in browser, is that normal? will real apps take 2 mins?

别来无恙 提交于 2019-12-18 13:32:07
问题 I have a decent machine capable of running 64 bit Windows 7. So how come any time I stop a small sample GWT app in "development mode", edit it and restart it it takes 30 sec to become responsive in the browser, both in latest Firefox and latest Chrome? Is that sort of molasses-based edit-compile cycle just the normal, expected thing for GWT developers nowadays? Will it get much worse for more realistic apps or is the whole of those 30 sec just the framework overhead, and my own code would not

GWT 2.1 Places example without Activities

风流意气都作罢 提交于 2019-12-18 12:45:29
问题 does anyone have any examples of how to using Places without using activities for history management. I knocked something up quickly and can see the url changing with browser-back and browser-forward clicks but the display doesn't go anywhere. I'm using a DecoratedTabPanel and have a SelectionHandler that fires off getPlaceController().goTo(place). Any ideas would be useful. 回答1: Here is a simple piece of code that I've made to demonstrate what you expected. It's based on the GWT and MVP

GWT, Eclipse Plugin how to rename project along with .gwt.xml file? Am getting error when try to do so

亡梦爱人 提交于 2019-12-18 12:36:28
问题 I've spent a while searching on this and nothing that I find seems relevant specifically to my issue. I am making RPC calls so I wanted to change the path to one of my web services. It was something like mytestproject and wanted to change it to finalprojectname I went to the mytestproject.gwt.xml file and changed <module rename-to='mytestproject'> to <module rename-to='finalprojectname'> I then ran it through and got an error that [ERROR] Unable to find 'org/ediscovery/gwt/mytestproject.gwt

GWT, Eclipse Plugin how to rename project along with .gwt.xml file? Am getting error when try to do so

丶灬走出姿态 提交于 2019-12-18 12:36:12
问题 I've spent a while searching on this and nothing that I find seems relevant specifically to my issue. I am making RPC calls so I wanted to change the path to one of my web services. It was something like mytestproject and wanted to change it to finalprojectname I went to the mytestproject.gwt.xml file and changed <module rename-to='mytestproject'> to <module rename-to='finalprojectname'> I then ran it through and got an error that [ERROR] Unable to find 'org/ediscovery/gwt/mytestproject.gwt

Which is better framework Java/GWT or Scala/Lift?

和自甴很熟 提交于 2019-12-18 12:24:57
问题 I wanted to start a new web application project and I am confused between two frameworks that is GWT(Java) or Lift(Scala). So I want your opinion which one I choose? Both are good according to my project requirement. So on the basis of frameworks comparison please tell me which is good? 回答1: I have found GWT to be an extremely effective technology for the client side, and use a combination of Java and Scala on the server-side. GWT is attractive because it allows you to write your web

Integrating Google Analytics into GWT application

放肆的年华 提交于 2019-12-18 12:22:03
问题 This should be totally simple but I can't get it working no matter what I try. I'm trying to use Google Analytics with GWT application. From what I understood, there are two way to do it: First is synchronous, by inserting tracking code at the end of <head> section HTML page and then calling this method: public static native void recordAnalyticsHit(String pageName) /*-{ pageTracker._trackPageview(pageName); }-*/; Second is asynchronous, by inserting tracking code just after <body> tag and

Best pageable table implementation in GWT [closed]

自作多情 提交于 2019-12-18 12:14:48
问题 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 7 years ago . I need to add a paging, sortable table to my GWT application. I see lots of these out there so I'm looking for your experience to save

How to build a Facebook-style input box in GWT

丶灬走出姿态 提交于 2019-12-18 12:08:39
问题 How would you build a Facebook-style input box in GWT? The following picture shows what I mean by Facebook-style input box: When typing a list of people is displayed, when a person is selected it will be displayed inside of the textbox. 回答1: The picture in the question is a screenshot of the following code and style. public class PeopleBox extends HorizontalPanel implements ValueChangeHandler<String>, KeyDownHandler { SuggestBox inputBox; public PeopleBox() { inputBox = new SuggestBox