Re: Failed to get SerializationPolicy when Web Application contains encoded dash
Is there anything I might have missed here? I can't imagine nobody of you experts stumbled over such problem so far. Thanks Henning Am Donnerstag, 11. Juli 2013 10:11:44 UTC+2 schrieb Henning Bredel: > > Hey Folks, > > how can I configure GWT web applications containing an encoded dash ('-' > gets %2D in some browser calls) to not fail when getting the > SerializationPolicy. > > I get this for example: > > INFO: MySuperService: ERROR: The module path requested, */ > super%2Dwebapp/client/*, is not in the same web application as this > servlet, /super-webapp. Your module may not be properly configured or your > client and server code maybe out of date. > > If I do miss something or overlooked some basics in the documentation > please point me to the right resource. > > Thanks in advance. > > Henning > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: I'm enhancing GWT to provide Java stack traces for clientside exceptions in production
Thanks for all your questions. Here are my answers. So, something like this has been used at least internally for quite a long > time -- what exactly did you have to change in StackTraceDeobfuscator? > Quite a few things, actually. I go into great detail about that, including diffs of some stack traces, in my paper: http://goo.gl/YGsrQ In short, my solution is prettier, more efficient, and more accurate than what you've been using. I'm not sure that's going to be worth using in a performance-sensitive > application. Also, how much does this affect compilation time? Performance was critical to my application as well, and that's why I put in a lot of extra effort to make my solution almost 50% more efficient than my predecessor's work. I'm already using it in production on typeracer.com. You can visit my site and see that it's very fast. The impact on compilation time is negligible (less than 1 second per permutation). Do you plan to maintain that code if it is integrated into GWT or will it > be a one time contribution and other people have to wrap their head around > it again if your solution needs to be adjusted? > Yes, I will maintain the code regardless, even if it doesn't get integrated into GWT, because my app is already using it in production, and I consider it of high importance to my business. If my project gets funded, then I will work on integrating it into GWT and maintaining that code thereafter. Otherwise, if there's not enough interest from the community, I'm not sure I'll bother integrating it. Either way, my work is pretty self-contained and only touches a handful of existing classes: JsStackEmulator, StackTraceDeobfuscator, and StackTraceCreator. > I ask this because GWT will drop support for IE6/7 relatively soon and > probably by the end of 2014 drop support for IE8. Also Opera has switched > to Blink/V8 which makes the opera permutation obsolete in the near future. > So by the end of 2014 (GWT 3.x) Firefox, Safari, Chrome and Opera are > likely to support SourceMaps and in case of IE9+ stack trace emulation is > probably not needed. > In addition to fixing and optimizing stack emulation, my code makes lots of improvements to the SourceMaps-based approach as well. That said, right now, only one browser supports SourceMaps-based stack traces. Let me be clear: my project is not about just any one solution, like stack emulation or SourceMaps: it's to make perfect Java stack traces available in any browser that can run your GWT app. My code lays the foundation to make that happen with minimal future effort, even as browsers evolve. > So by the end of next year a bunch of your code can probably be deleted > and other code refactored/optimized to fit this situation. Have you thought > about that? I don't think any of my code will have to be deleted. I've introduced a selection property that selects whether the browser supports the SourceMaps-based stack traces or not, and introduces stack emulation only if needed. Otherwise, it uses the SourceMaps-optimized solution, which carries no overhead. What sort of approach does the current emulated stack implementation use, > as opposed to the suggested function enter/exit approach? Is there a > relative speed hit involved with it too? My approach to stack emulation is the same as before, just more accurate and more optimized. The cool thing is that in Chrome and any future browsers which provide both line and column numbers in Javascript stack traces, my code will give you perfect equivalent Java stack traces with absolutely no performance penalty (you can read about how it works in my paper: http://goo.gl/YGsrQ ) Because if so, bring on the new implementation ASAP :) I'm hoping to! Please consider making a donation and spread the word about my campaign: http://igg.me/at/gwt-stack-traces/x/3494291 :) Thanks guys. Any other questions? (I'm really excited to be having this discussion with all of you, after working on it in isolation for so long). - Alex Epshteyn On Wednesday, July 17, 2013 10:48:02 PM UTC-4, mark.e...@gmail.com wrote: > > If you use emulated stack traces (including line numbers) in current GWT >> your app size will roughly increase by 100%. So 45% is a lot better of what >> GWT gives you today. >> > > ... > > Really. I had not seen that mentioned anywhere. What sort of approach > does the current emulated stack implementation use, as opposed to the > suggested function enter/exit approach? Is there a relative speed hit > involved with it too? Because if so, bring on the new implementation ASAP > :) > > > On Wednesday, July 17, 2013 7:54:28 PM UTC-4, Jens wrote: >> >> >> I certainly applaud the obvious time, effort, and care that you've put >>> into these improvements, but "45% size and 22-44% execution speed overhead" >>> sounds like a rather painful penalty to pay. I'm not sure that's going to >>> be worth using in a perfor
Re: I'm enhancing GWT to provide Java stack traces for clientside exceptions in production
> > If you use emulated stack traces (including line numbers) in current GWT > your app size will roughly increase by 100%. So 45% is a lot better of what > GWT gives you today. > ... Really. I had not seen that mentioned anywhere. What sort of approach does the current emulated stack implementation use, as opposed to the suggested function enter/exit approach? Is there a relative speed hit involved with it too? Because if so, bring on the new implementation ASAP :) On Wednesday, July 17, 2013 7:54:28 PM UTC-4, Jens wrote: > > > I certainly applaud the obvious time, effort, and care that you've put >> into these improvements, but "45% size and 22-44% execution speed overhead" >> sounds like a rather painful penalty to pay. I'm not sure that's going to >> be worth using in a performance-sensitive application. > > > If you use emulated stack traces (including line numbers) in current GWT > your app size will roughly increase by 100%. So 45% is a lot better of what > GWT gives you today. > > > >> Also, how much does this affect compilation time? >> > > This actually shouldn't matter for ordinary compilation. But it would be > interesting to hear in case of SuperDevMode + non SourceMaps browser. > > > -- J. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: gwt, IME, compositionstart, end, update
thanks for the info...raj -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: I'm enhancing GWT to provide Java stack traces for clientside exceptions in production
> I certainly applaud the obvious time, effort, and care that you've put > into these improvements, but "45% size and 22-44% execution speed overhead" > sounds like a rather painful penalty to pay. I'm not sure that's going to > be worth using in a performance-sensitive application. If you use emulated stack traces (including line numbers) in current GWT your app size will roughly increase by 100%. So 45% is a lot better of what GWT gives you today. > Also, how much does this affect compilation time? > This actually shouldn't matter for ordinary compilation. But it would be interesting to hear in case of SuperDevMode + non SourceMaps browser. -- J. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: I'm enhancing GWT to provide Java stack traces for clientside exceptions in production
Do you plan to maintain that code if it is integrated into GWT or will it be a one time contribution and other people have to wrap their head around it again if your solution needs to be adjusted? I ask this because GWT will drop support for IE6/7 relatively soon and probably by the end of 2014 drop support for IE8. Also Opera has switched to Blink/V8 which makes the opera permutation obsolete in the near future. So by the end of 2014 (GWT 3.x) Firefox, Safari, Chrome and Opera are likely to support SourceMaps and in case of IE9+ stack trace emulation is probably not needed. So by the end of next year a bunch of your code can probably be deleted and other code refactored/optimized to fit this situation. Have you thought about that? -- J. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: No source code is available for... did you forget to inherit a required module?
You either have to bundle source files into your library jar or you have to create a second jar containing only source files and put this extra jar also on classpath in your IDE (not attached to a jar, I think it must be a class path entry on its own) and in your ANT script. Finally if your library jar contains source files in folders that are not already included through an existing *.gwt.xml file, you would need to create a new *.gwt.xml containing the additional information and bundle it into your source jar. Example: Project: com/example/app/ client shared server App.gwt.xml (contains and . Also contains ) generated-utils-sources.jar (on classpath in IDE and in ANT script) com/example/app shared //lots of source files (no *.gwt.xml needed as App.gwt.xml already contains ) dtos //lots of DTO source files GeneratedDtos.gwt.xml (contains . You could also move that file one level up and then have . Just personal preference.) P.S.: You don't need and as the first already includes everything. -- J. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: HELP: HyperLink, Image and Text in one Cell of CellTable
The way I accomplish this is with a AbstractCell built from a SafeHtmlTemplate that sinks the click event. Have a template the feeds into the cell, the code will resemble something like: /** * The HTML templates used to render the cell. */ public interface Templates extends SafeHtmlTemplates { @SafeHtmlTemplates.Template("" + "" + "" + "{0}" + "{1}" + "TEXT" + "") SafeHtml cell(String linkText, String secondLinkText); } /** * A custom {@link Cell} used to render a widget that displays the search results */ private class TemplateCell extends AbstractCell< YOUROBJECT > { /** * Create a singleton instance of the templates used to render the cell. */ private Templates templates = GWT.create(Templates.class); public TemplateCell() { /** * Sink the click and keydown events. We handle click events in this * class. AbstractCell will handle the keydown event and call * onEnterKeyDown() if the user presses the enter key while the cell is * selected. */ super("click", "keydown"); } /** * Called when an event occurs in a rendered instance of this Cell. The * parent element refers to the element that contains the rendered cell, NOT * to the outermost element that the Cell rendered. */ @Override public void onBrowserEvent(Context context, Element parent, YOUROBJECT value, NativeEvent event, ValueUpdater< YOUROBJECT > valueUpdater) { // Let AbstractCell handle the keydown event. super.onBrowserEvent(context, parent, value, event, valueUpdater); // Handle the click event. if ("click".equals(event.getType())) { // Ignore clicks that occur outside of the outermost element. EventTarget eventTarget = event.getEventTarget(); Element eventElement = Element.as(eventTarget); if ("YOURID".equals(eventElement.getId())) { handleTheClick(); // handle the click here } else if ("YOURID2".equals(eventElement.getId())) { handleTheOtherClick(); // handle the other click, if you had two links } } } @Override public void render(Context context, YOUROBJECT value, SafeHtmlBuilder sb) { /** * Always do a null check on the value. Cell widgets can pass null to * cells if the underlying data contains a null, or if the data arrives * out of order. */ if (value == null) { return; } // Use the template to create the Cell's html. SafeHtml rendered = templates.cell(YOUROBJECT.firstText(), YOUROBJECT.secondText()); sb.append(rendered); } } -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: I'm enhancing GWT to provide Java stack traces for clientside exceptions in production
I certainly applaud the obvious time, effort, and care that you've put into these improvements, but "45% size and 22-44% execution speed overhead" sounds like a rather painful penalty to pay. I'm not sure that's going to be worth using in a performance-sensitive application. Also, how much does this affect compilation time? Mark Erikson On Wednesday, July 17, 2013 4:56:40 PM UTC-4, Alex Epshteyn wrote: > > Dear fellow GWT users, > > I would like to announce that I have finally solved what I always thought > to be GWT's greatest weakness: its lack of debugging information for > client-side exceptions in production. > > With my patch, your deployed app will be able to report stack traces like > this: > > com.google.gwt.core.client.JavaScriptException: (TypeError) : a is null > > com.google.gwt.dom.client.DOMImplMozilla.$getBodyOffsetLeft(DOMImplMozilla.java:145) > > > com.google.gwt.user.client.ui.PopupPanel.$setPopupPosition(Document.java:1287) > > com.google.gwt.user.client.ui.PopupPanel.setPopupPosition(PopupPanel.java:884) > com.google.gwt.user.client.ui.PopupPanel.PopupPanel(PopupPanel.java:453) > > com.typeracer.commons.client.widgets.EnhancedPopup.EnhancedPopup(EnhancedPopup.java:32) > > com.typeracer.commons.client.widgets.PopupWithIcon.PopupWithIcon(PopupWithFocusableTextBox.java:28) > > > com.typeracer.main.client.controller.TyperacerUncaughtExceptionHandler$1.execute(TyperacerUncaughtExceptionHandler.java:55) > > > com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:50) > > etc... :-) > > > instead of the current state of affairs that looks like this: > > lineNumber: 3190 columnNumber: 15354: a is null; (TypeError) fileName: > http://localhost:8088/9C4DC2D905BEA407601C92C56B43E3B8.cache.html > stack: @ > http://localhost:8088/9C4DC2D905BEA407601C92C56B43E3B8.cache.html:2422 > Rub@http://localhost:8088/9C4DC2D905BEA407601C92C56B43E3B8.cache.html:2423 > > dSb@http://localhost:8088/9C4DC2D905BEA407601C92C56B43E3B8.cache.html:3190 > > tA@http://localhost:8088/9C4DC2D905BEA407601C92C56B43E3B8.cache.html:2810 > Xmb@http://localhost:8088/9C4DC2D905BEA407601C92C56B43E3B8.cache.html:2289 > > etc... :-( > > > I am asking the community to support me in finishing this effort and > integrating my patch into GWT. Please take a look and what I've done, and > consider making a donation: > > http://igg.me/at/gwt-stack-traces/x/3494291 > > I am an indie developer and I just need some funding to continue this > work. I'm looking for both grassroots and corporate sponsorship for my > quest of improving GWT's error reporting and debugging support. > > I've written a detailed white paper ( http://goo.gl/YGsrQ ) that > describes how my solution works and why it is necessary. I welcome your > feedback! > > Thanks! > Alex > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
No source code is available for... did you forget to inherit a required module?
Ok so I have read alot of these threads but I am very new to eclipse, GWT, XSD, and jaxb. Sooo, I have come across this when doing an ANT build. I have a JAR file that has my .class files and attached the source code via configure build path menu. I have tried putting the JAR file inside my client source folder, outside of it, both, and inside a resources folder inside the client folder. I have , , in the gwt.xml file. Have also tried: http://www.vogella.com/articles/GWTModules/article.html and http://markmail.org/message/h52xvo4j52msambe#query:+page:1+mid:lg4mlgiof4giuiaq+state:results We had a workaround where we created a package inside the project within the shared folder containing the .java files for the JAR. However we would like to use the JAR with the .class files created from the XSD. Any help is greatly appreciated. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: [gwt-contrib] I'm enhancing GWT to provide Java stack traces for clientside exceptions in production
On Wed, Jul 17, 2013 at 4:56 PM, Alex Epshteyn wrote: > I would like to announce that I have finally solved what I always thought > to be GWT's greatest weakness: its lack of debugging information for > client-side exceptions in production. > > With my patch, your deployed app will be able to report stack traces like > this: > > com.google.gwt.core.client.JavaScriptException: (TypeError) : a is null > > com.google.gwt.dom.client.DOMImplMozilla.$getBodyOffsetLeft(DOMImplMozilla.java:145) > > com.google.gwt.user.client.ui.PopupPanel.$setPopupPosition(Document.java:1287) > > com.google.gwt.user.client.ui.PopupPanel.setPopupPosition(PopupPanel.java:884) > com.google.gwt.user.client.ui.PopupPanel.PopupPanel(PopupPanel.java:453) > > com.typeracer.commons.client.widgets.EnhancedPopup.EnhancedPopup(EnhancedPopup.java:32) > > com.typeracer.commons.client.widgets.PopupWithIcon.PopupWithIcon(PopupWithFocusableTextBox.java:28) > > com.typeracer.main.client.controller.TyperacerUncaughtExceptionHandler$1.execute(TyperacerUncaughtExceptionHandler.java:55) > > com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:50) > etc... :-) > > > instead of the current state of affairs that looks like this: > > lineNumber: 3190 columnNumber: 15354: a is null; (TypeError) fileName: > http://localhost:8088/9C4DC2D905BEA407601C92C56B43E3B8.cache.html > stack: @ > http://localhost:8088/9C4DC2D905BEA407601C92C56B43E3B8.cache.html:2422 > Rub@http://localhost:8088/9C4DC2D905BEA407601C92C56B43E3B8.cache.html:2423 > > dSb@http://localhost:8088/9C4DC2D905BEA407601C92C56B43E3B8.cache.html:3190 > > tA@http://localhost:8088/9C4DC2D905BEA407601C92C56B43E3B8.cache.html:2810 > Xmb@http://localhost:8088/9C4DC2D905BEA407601C92C56B43E3B8.cache.html:2289 > > etc... :-( > > So, something like this has been used at least internally for quite a long time -- what exactly did you have to change in StackTraceDeobfuscator? -- John A. Tamplin -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
I'm enhancing GWT to provide Java stack traces for clientside exceptions in production
Dear fellow GWT users, I would like to announce that I have finally solved what I always thought to be GWT's greatest weakness: its lack of debugging information for client-side exceptions in production. With my patch, your deployed app will be able to report stack traces like this: com.google.gwt.core.client.JavaScriptException: (TypeError) : a is null com.google.gwt.dom.client.DOMImplMozilla.$getBodyOffsetLeft(DOMImplMozilla.java:145) com.google.gwt.user.client.ui.PopupPanel.$setPopupPosition(Document.java:1287) com.google.gwt.user.client.ui.PopupPanel.setPopupPosition(PopupPanel.java:884) com.google.gwt.user.client.ui.PopupPanel.PopupPanel(PopupPanel.java:453) com.typeracer.commons.client.widgets.EnhancedPopup.EnhancedPopup(EnhancedPopup.java:32) com.typeracer.commons.client.widgets.PopupWithIcon.PopupWithIcon(PopupWithFocusableTextBox.java:28) com.typeracer.main.client.controller.TyperacerUncaughtExceptionHandler$1.execute(TyperacerUncaughtExceptionHandler.java:55) com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:50) etc... :-) instead of the current state of affairs that looks like this: lineNumber: 3190 columnNumber: 15354: a is null; (TypeError) fileName: http://localhost:8088/9C4DC2D905BEA407601C92C56B43E3B8.cache.html stack: @http://localhost:8088/9C4DC2D905BEA407601C92C56B43E3B8.cache.html:2422 Rub@http://localhost:8088/9C4DC2D905BEA407601C92C56B43E3B8.cache.html:2423 dSb@http://localhost:8088/9C4DC2D905BEA407601C92C56B43E3B8.cache.html:3190 tA@http://localhost:8088/9C4DC2D905BEA407601C92C56B43E3B8.cache.html:2810 Xmb@http://localhost:8088/9C4DC2D905BEA407601C92C56B43E3B8.cache.html:2289 etc... :-( I am asking the community to support me in finishing this effort and integrating my patch into GWT. Please take a look and what I've done, and consider making a donation: http://igg.me/at/gwt-stack-traces/x/3494291 I am an indie developer and I just need some funding to continue this work. I'm looking for both grassroots and corporate sponsorship for my quest of improving GWT's error reporting and debugging support. I've written a detailed white paper ( http://goo.gl/YGsrQ ) that describes how my solution works and why it is necessary. I welcome your feedback! Thanks! Alex -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT request factory - Fire request inside of success method of another request
Assuming you removed the extra GWT.create (as Thomas mentioned on stackoverflow).. if might be worth trying putting the second call inside a Scheduler.get().scheduleFinally... Seems odd. I'm sure we do this sort of thing (less directly) all the time. On Wednesday, July 17, 2013 8:21:30 PM UTC+1, Jan wrote: > > You mean renaming the inner request method? I tried that -> doesn't change > anything. > > It is not only in prod mode. It's a GWT test case that I run locally. > > Am Montag, 15. Juli 2013 23:29:14 UTC+2 schrieb Thomas Broyer: >> >> It's always worth mentionning when you also posted to StackOverflow: >> http://stackoverflow.com/q/17577892/116472 >> >> Just an idea: did you try renaming your variables so you don't have >> shadowing? (if it happens only in prod mode, there could be a bug in the >> GWT compiler) >> >> On Monday, July 15, 2013 10:10:48 PM UTC+2, Jan wrote: >>> >>> I am trying to nest two request factory calls in each other. I retrieve >>> a post object and in the success-method i use the same object again (just >>> for testing purposes, I get the same behavior for other request like for >>> example persisting). >>> >>> The problem is: Only the first request reaches the server. >>> >>> I don't get any error message. If I debug the code, everything works >>> until the second request is fired. Nothing happens then. The method on the >>> backend is not called, the frontend shows no error, even if I implement the >>> "onFailure"-method for the receiver of the second request. >>> >>> public class RequestFactoryFindTest extends GWTTestCase{ >>> >>> /** >>> * must refer to a valid module that sources this class. >>> */ >>> public String getModuleName() { >>> return "com.Test.MyTest"; >>> } >>> >>> public void test(){ >>> final ClientFactory clientFactory = >>> GWT.create(ClientFactoryImpl.class); >>> final MyRequestFactory requestFactory = >>> clientFactory.getRequestFactory(); >>> final PostRequest request = requestFactory.postRequest(); >>> >>> >>> request.findPost(1l).fire(new Receiver() { >>> >>> @Override >>> public void onSuccess(PostProxy response) { >>> >>> >>> final ClientFactory clientFactory = >>> GWT.create(ClientFactoryImpl.class); >>> final MyRequestFactory requestFactory = >>> clientFactory.getRequestFactory(); >>> final PostRequest request = requestFactory.postRequest(); >>> >>> System.out.println("outer success"); >>> >>> request.findPost(1l).fire(new Receiver() { >>> >>> @Override >>> public void onSuccess(PostProxy response) { >>> System.out.println("inner success"); >>> >>> } >>> >>> }); >>> >>> } >>> }); >>> >>> >>> }} >>> >>> Can someone explain this? >>> >>> -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Super dev mode - sourcemap not working anymore
Also having this problem. Running GWT 2.5.1 on java 6 with chrome 28.0.xx On Tuesday, May 21, 2013 7:48:46 AM UTC-6, Martones wrote: > > I tryed to reinstall the bookmark, this didnt help. But thanks for your > tip ;) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT request factory - Fire request inside of success method of another request
You mean renaming the inner request method? I tried that -> doesn't change anything. It is not only in prod mode. It's a GWT test case that I run locally. Am Montag, 15. Juli 2013 23:29:14 UTC+2 schrieb Thomas Broyer: > > It's always worth mentionning when you also posted to StackOverflow: > http://stackoverflow.com/q/17577892/116472 > > Just an idea: did you try renaming your variables so you don't have > shadowing? (if it happens only in prod mode, there could be a bug in the > GWT compiler) > > On Monday, July 15, 2013 10:10:48 PM UTC+2, Jan wrote: >> >> I am trying to nest two request factory calls in each other. I retrieve a >> post object and in the success-method i use the same object again (just for >> testing purposes, I get the same behavior for other request like for >> example persisting). >> >> The problem is: Only the first request reaches the server. >> >> I don't get any error message. If I debug the code, everything works >> until the second request is fired. Nothing happens then. The method on the >> backend is not called, the frontend shows no error, even if I implement the >> "onFailure"-method for the receiver of the second request. >> >> public class RequestFactoryFindTest extends GWTTestCase{ >> >> /** >> * must refer to a valid module that sources this class. >> */ >> public String getModuleName() { >> return "com.Test.MyTest"; >> } >> >> public void test(){ >> final ClientFactory clientFactory = >> GWT.create(ClientFactoryImpl.class); >> final MyRequestFactory requestFactory = >> clientFactory.getRequestFactory(); >> final PostRequest request = requestFactory.postRequest(); >> >> >> request.findPost(1l).fire(new Receiver() { >> >> @Override >> public void onSuccess(PostProxy response) { >> >> >> final ClientFactory clientFactory = >> GWT.create(ClientFactoryImpl.class); >> final MyRequestFactory requestFactory = >> clientFactory.getRequestFactory(); >> final PostRequest request = requestFactory.postRequest(); >> >> System.out.println("outer success"); >> >> request.findPost(1l).fire(new Receiver() { >> >> @Override >> public void onSuccess(PostProxy response) { >> System.out.println("inner success"); >> >> } >> >> }); >> >> } >> }); >> >> >> }} >> >> Can someone explain this? >> >> -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Changing the Displayed Value in a DataGrid
I am trying to modify the value that is displayed in a DataGrid cell after the user has entered or modified the existing value. For example, if the user enters "5/6/12" I want the cell to display "05/06/2012" when the user exits the cell. Here is the code that creates the column: final TextInputCell fosterDateStartCell = new TextInputCell(); final Column fosterDateStartColumn; fosterDateStartColumn = new Column(fosterDateStartCell) { @Override public String getValue(final IFosterHistoryProxy fosterHistory) { final String date = fosterHistory.getFosterDateStart(); if (GLGWTUtil.isEmpty(date)) { return ""; } return date.substring(4, 6) + "/" + date.substring(6, 8) + "/" + date.substring(0, 4); } }; fosterDateStartColumn.setFieldUpdater(new FieldUpdater() { @Override public void update(final int index, final IFosterHistoryProxy fosterHistory, final String value) { final String[] dateParts = value.split("/"); if (dateParts.length != 3) { return; } final int month = Integer.valueOf(dateParts[0]); final int day = Integer.valueOf(dateParts[1]); final int year = Integer.valueOf(dateParts[2]); final String date = (year < 100 ? 2000 + year : year) + (month < 10 ? "0" : "") + month + (day < 10 ? "0" : "") + day; getEditDTO(fosterHistory, ECacheUpdateType.Update).setFosterDateStart(date); final ViewData viewData = new ViewData(date.substring(4, 6) + "/" + date.substring(6, 8) + "/" + date.substring(0, 4)); fosterDateStartCell.setViewData(fosterHistory.getFosterHistoryId(), viewData); fosterHistoryGrid.redraw(); } }); fosterDateStartColumn.setSortable(true); fosterHistoryGrid.addColumn(fosterDateStartColumn, "Start Date"); fosterHistoryGrid.setColumnWidth(fosterDateStartColumn, "10ex"); The getValue() method is working well ... if the value in the proxy object is "20120506" then I see "05/06/2012" in the cell. But the update() method is not showing the correct value ... if the user enters "5/6/12" then I do not see "05/06/2012" (the value in the cell is still "5/6/12" after the update() method has executed). Note that the setFosterDateStart() method does not cause the update to be sent to the server; it simply sets the value in the editable proxy object. Also note that the getFosterHistoryId() method returns the stable identifier value for the IFosterHistoryProxy object, and that the key provider for the selection model associated with the DataGrid is using that identifier. Many thanks for any help! Andy -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: is code using DateTimeFormat not testable?
This can help test DateTimeFormat in server side public static com.google.gwt.i18n.shared.DateTimeFormat > createGwtDTFormat(String pattern) throws Exception > { > Constructor c = > com.google.gwt.i18n.shared.DateTimeFormat.class > .getDeclaredConstructor(String.class, > DateTimeFormatInfo.class); > c.setAccessible(true); > return c.newInstance(pattern, new DateTimeFormatInfoImpl_en()); > } пятница, 23 сентября 2011 г., 17:25:53 UTC+6 пользователь Shawn написал: > > I'm just trying to test my code that has DateTimeFormat in it. > However I see ... > > java.lang.ExceptionInInitializerError > at > com.google.gwt.i18n.client.DateTimeFormat.getDefaultDateTimeFormatInfo(DateTimeFormat.java:808) > at > com.google.gwt.i18n.client.DateTimeFormat.getFormat(DateTimeFormat.java:488) > at > com.google.gwt.i18n.client.DateTimeFormat.getLongDateTimeFormat(DateTimeFormat.java:690) > ... > Caused by: java.lang.UnsupportedOperationException: ERROR: > GWT.create() is only usable in client code! It cannot be called, for > example, from server code. If you are running a unit test, check that > your test case extends GWTTestCase and that GWT.create() is not called > from within an initializer or constructor. > at com.google.gwt.core.client.GWT.create(GWT.java:91) > at > com.google.gwt.i18n.client.LocaleInfo.(LocaleInfo.java:36) > ... 35 more > > > Is there a list of what I can not use in Tests since GWT.create > forbids it? This seems to be a reoccurring theme in GWT and I am > tired of writing code that subsequently needs to be yanked as it's not > testable. > > Shawn > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT 1.6, JSP's wont compile.
Hi all, it's been while since this error has been reported, but as i experienced it is still not fixed. I searched for hours before i came across this workaround, which works for me. http://code.google.com/p/google-web-toolkit/issues/detail?id=3557#c43 Good luck! On Tuesday, April 14, 2009 12:46:23 AM UTC+2, Adrian wrote: > > Hi Everyone, > > > I'm sure that this will be something stupid that I'm missing but I've > found I cannot get JSP's to compile in hosted mode if they include any > Java 1.5+ stuff, like generics or for each loops. > > For example I'm using the latest Eclipse with the new GWT plugin, if I > create a new GWT project then add a jsp that has code using generics I > get this error when I load the jsp: > > 2. ERROR in /tmp/Jetty_0_0_0_0_8080_warut4fm1/jsp/org/apache/jsp/ > test_jsp.java (at line 53) > new java.util.ArrayList(); > ^^ > Syntax error, parameterized types are only available if source level > is 1.5 > > > You can see the entire output at: http://pastebin.com/m7f0cd05a > > > I can't seem to find anyone else having this problem so any advice > would be great. > > > Thanks, > Adrian > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
DataGrid sorting and using setList in ListDataProvider
Hi, I just lost 2 hours on getting sorting to work correctly in my DataGrid backed by a ListDataProvider. I was calling setList( rows ) on the DataProvider to update the table and that works... but sorting was not working (I could not even see the sort indicator on the table header cells). Then it struct me: The ColumnSortEvent$ListHandler class takes a List as argument instead of the ListDataProvider. When you call setList() on the DataProvider a new wrapper is created and my ListHandler is looking at the wrong one. Wouldn't it be better that the ListHandler would keep a reference to the ListDataProvider instead ? Then it can call getList() on it when a sort is needed. It is now a bit asymetric: calling setList() updates the table rows, but the sorter does not know... I am sure many people fall in this trap! David -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Chart and Graphs with Legend
Am Dienstag, 16. Juli 2013 21:44:26 UTC+2 schrieb das.ani...@gmail.com: > > Hi > > I am a newbie, i have some doubts in the gwt > > 1 - Here are the points which i need to customize the Line / Bar Chart > > a) Legend position Should come under the chart panel. > b) Customized legend color change > c) Customized font color, Size of legends > d) Customezed Tooltip for graph > Well, search for graph/chart libraries that support this use cases. I would evaluate: 1.) Highcharts 2.) GFlot 3.) Google Charts 2 - For Separate Graph view > > In a single page user can see maximum four graphs at a time. But There > is a selection criteria where > a) If some select one check box a graph will come out full page. > b) If some one select two checkboxes, two graphs will be displya in full > page (one is left and another one is right ) > c) If some one select three check box three graphs will come in the > entire page (Two graphs Above and one below) > d) if some one select four check box four graphs will come in the entire > page (Above Two and Two Below) > similarly > i) If some one deselect a checkbox out of four selected three graphs > will be display (Two graphs Above and one below) > ii) If some one deselect another check box two graphs will be display in > the entire page. > Thats ordinary code you have to program yourself using GWT widgets (or any other widget library). Not sure how to help here other than pointing you to the GWT documentation http://www.gwtproject.org/doc/latest/DevGuideUi.html -- J. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: best way to attempt multiple times same RPC call
You could transparently handle this for all your requests of a given GWT-RPC interface by using a custom RpcRequestBuilder. This custom RpcRequestBuilder would make 3 request attempts and if all 3 fail, calls the onFailure() method. MyRemoteServiceAsync service = GWT.create(MyRemoteService.class); ((ServiceDefTarget) service).setRpcRequestBuilder(new RetryThreeTimesRequestBuilder()); The custom RequestBuilder could also fire a "NetworkFailureEvent" on the eventBus if multiple application components may be interested in that information. For example you could overlay the whole app with a dark screen and periodically try sending Ping requests to your server until network comes back online. There is also the onLine HTML 5 property you can check, but its not 100% reliable (https://developer.mozilla.org/en-US/docs/Web/API/window.navigator.onLine) -- J. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: best way to attempt multiple times same RPC call
Some couple of thoughts like call same rpc call in onFailure but here request become different.but I want same request have a three request and it is not good approach and I don't know if any good solution for it. On Wednesday, 17 July 2013 15:27:15 UTC+5:30, Bhumika Thaker wrote: > > Hi, > > What is best way to attempt multiple time same RPC call? > while RPC Call is getting failed. > > just example: In any case if RPC get fail due to network connection, it > will catch in `onFailure(Throwable caught)`. > Now here it should recall same rpc call again check network failure. The > maximum attempt should be 3 times only then show message to user like > "Network is not established" > How can I achieve it? > > I can call same rpc call in onFailure but request become different. I want > same request have a three request. > > Thanks & Regards, > Bhumika > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Background color not shown when cell label has no text in FlexTable
The width of the cell is not the width of the label; that one can be smaller thatn its containing cell. Inspect the DOM with your browser's Dev Tools and possibly experiment there. On Wednesday, July 17, 2013 8:50:25 AM UTC+2, Goosie wrote: > > Sounds like a logical solution but it still isn't working even though I > have tried both changing the label's CSS and changing the width with > cellformatter :( > > *emptyLabel.setStyleName(tableCss.emptyLabelWidth()); > eventTable.setWidget(row, 4, emptyLabel); > emptyLabel.addStyleName(tableCss.update()); > * > or: > > *CellFormatter cf = eventTable.getCellFormatter(); > eventTable.setWidget(row, 4, emptyLabel); > cf.setWidth(row, 4, "20"); > emptyLabel.setStyleName(tableCss.update());* > > On Tuesday, July 16, 2013 6:17:01 PM UTC+2, Jens wrote: >> >> An empty label has no width (0px), thus you can not see it. Either style >> the table cell itself instead of the table cell content ( = your Label) or >> give your empty label a width so you can see it. To style table cells >> itself you can use Column/Row/CellFormatter. >> >> -- J. >> > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: UIBinder layout problem
On Tuesday, July 16, 2013 6:39:58 PM UTC+2, Jens wrote: > > HorizontalPanel and VerticalPanel distribute their cells equally if you > don't specify anything. E.g. a VerticalPanel with two children will result > in two 50% height cells. That's how HTML tables work in general if you do > not specify sizes. > > To define the width/height of a cell use />. > > The JavaDoc of CellPanel describes it. > …and most of the time, you don't actually need VerticalPanel or HorizontalPanel, and FlowPanel is enough. In this specific case, because renders as and thus is intrinsically a block element, the ListBox will flow below it when both are put in a FlowPanel. And because renders as a , it's intrinsic rendering is 'inline' (inline-block) so the buttons would flow on the same line when put in a FlowPanel. I would however not use a (try to avoid widgets when you don't need them, e.g. for simple widgets, when you don't need to handle events) here and would rather go with an HTMLPanel and element (or if you like, or maybe even no wrapping element) possibly followed by a or styled as "display: block". -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
best way to attempt multiple times same RPC call
Hi, What is best way to attempt multiple time same RPC call? while RPC Call is getting failed. just example: In any case if RPC get fail due to network connection, it will catch in `onFailure(Throwable caught)`. Now here it should recall same rpc call again check network failure. The maximum attempt should be 3 times only then show message to user like "Network is not established" How can I achieve it? I can call same rpc call in onFailure but request become different. I want same request have a three request. Thanks & Regards, Bhumika -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: gwt, IME, compositionstart, end, update
To tell the truth, keyboard handling in GWT is rather poor (keydown,keypress,keyup and that's it, with very little effort to cope for browser discrepancies). We'd happily accept patches though ;-) http://gwtproject.org/makinggwtbetter.html On Tuesday, July 16, 2013 4:57:58 PM UTC+2, Raj wrote: > > Hi > > I have an application built with GWT. > I have been trying to see if GWT supports seeing IME events when the > locale is set to non english e.g. Japanese. > The IME (input method editor) events that I want to see or listen for > are compositionstart, compositionend. > > I have not found any documentation on this in GWT docs, can anyone > indicate if they are supported? > > thanks > > > > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: gwt, IME, compositionstart, end, update
To tell the truth, keyboard handling in GWT is rather poor (keydown,keypress,keyup and that's it, with very little effort to cope for browser discrepancies). We'd happily accept patches though ;-) http://gwtproject.org/makinggwtbetter.html On Tuesday, July 16, 2013 4:57:58 PM UTC+2, Raj wrote: > > Hi > > I have an application built with GWT. > I have been trying to see if GWT supports seeing IME events when the > locale is set to non english e.g. Japanese. > The IME (input method editor) events that I want to see or listen for > are compositionstart, compositionend. > > I have not found any documentation on this in GWT docs, can anyone > indicate if they are supported? > > thanks > > > > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Chart and Graphs with Legend
Hi I am a newbie, i have some doubts in the gwt 1 - Here are the points which i need to customize the Line / Bar Chart a) Legend position Should come under the chart panel. b) Customized legend color change c) Customized font color, Size of legends d) Customezed Tooltip for graph 2 - For Separate Graph view In a single page user can see maximum four graphs at a time. But There is a selection criteria where a) If some select one check box a graph will come out full page. b) If some one select two checkboxes, two graphs will be displya in full page (one is left and another one is right ) c) If some one select three check box three graphs will come in the entire page (Two graphs Above and one below) d) if some one select four check box four graphs will come in the entire page (Above Two and Two Below) similarly i) If some one deselect a checkbox out of four selected three graphs will be display (Two graphs Above and one below) ii) If some one deselect another check box two graphs will be display in the entire page. can anyone guide me with simple example code will be a great help. Thanks in Advance. Regards Anirudha -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
RequestFactory module - queue, retry and non atomic batching..
https://github.com/salk31/gwt-rf-queue I've been allowed to open source this and given two hours a week to work on it... I thought it was worth sharing now that it compiles and there is a working demo. I've grafted it onto the dynatablerf sample and added some controls to fake auth and network failure. So, any thoughts on if this is worth pushing on with? A real generic need? I've missed an existing solution? Cheers Sam -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.