Using a proxy in dev mode
In my prod setup I would like to have a proxy (nginx, apache), in front of my jetty server, to handle the https, static file transfer, etc... In dev mode I would like to have the same setup, but only install the proxy and use the existing embedded jetty. I would also like to be able to not use the proxy sometimes. Before I start diving into doc + attempts, is there an obvious reason why this would not be possible? has anyone set up such a configuration before? any recommendations? 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Removing war directory from GWT project
Hi. I have such a project structure that there is one root project and several subprojects. Subprojects are treated only as modules and are not compilable in sense of regular servlets. Thus, I wanted to remove all war directories, because they are useless (except from the root project's war). The problem is that GWT throws en error when there is no web.xml file in project. Do you have any idea how to get rid of these wars? Thanks! Cheers -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Confusion with MVP.
As in many cases, I'd say that “it depends”. Would there be a value in using MVP for the tile? assuming a yes, would there be a value exposing the use of MVP to the *user* of the tile? (for instance CellTable and friends use MVP, but it's an implementation detail; from the outside they're just widgets like any other). If you go the MVP route, have a look at http://www.google.com/events/io/2010/sessions/gwt-continuous-build-testing.html; it explains how Apache (ex-Google) Wave uses MVP all the way down (down to the level of buttons!) On Thursday, February 21, 2013 3:18:55 AM UTC+1, MAQ wrote: Hi, I'm starting to get more confused as I'm going deeper with MVP. In my project I have a view which has many video 'tiles' (thumbnails with headlines). Should I make each tile a view by its own, and each one of these views would have its own presenter? Is that a normal solution or am I doing a horrible thing? -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Removing war directory from GWT project
I Think in Eclipse project settings - Google - Web Application you can uncheck a box that says This project has a war directory. When you do so, Eclipse/GPE should stop complaining and you can delete the war folder. -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Using a proxy in dev mode
I am developing on Mac and I am using the bundled apache server as proxy. The document root is my project's war folder and server requests are proxied to the backend. The backend could be an external server or the embedded jetty that comes with GWT. You could also configure multiple vhosts along with corresponding host entries in /etc/hosts and different server proxy rules, e.g. https://app.embedded.local proxies to jetty and https://app.remote.local proxies to an external server or something like that. In production we use nginx instead of apache in front of our app servers to serve static content and to proxy server request to the backend using nginx load balancing. Works pretty well for us. -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Difficulties with addWindowClosingHandler in IE
Thanks - doing it the first way, changing the href to '#' and adding the current code to call my function and then returning false to a click handler, worked. The second way, simply returning false from within the javascript code embedded in the href itself, did not seem to change the behavior at all. Ryan On Wednesday, February 20, 2013 6:50:42 AM UTC-5, Jens wrote: a href=# onclick=yourFunction(); return false; link /a Adding return false; has the same result as calling event.preventDefault() *and* event.stopPropagation(). You can also do that on the href attribute directly I guess. -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Child widgets of a panel
Is there any way to get a list of child objects of a panel ? Thanks Marcos -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Child widgets of a panel
Panels may have implemented HasWidgets and/or IndexedPanel. HasWidgets provides an iterator while IndexedPanel provides access to its childs using an index. http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/HasWidgets.html http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/IndexedPanel.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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to change css style during runtime?
Rather than setting the primary name, you could create a new style that modifies the property, and add or remove that name. I'm assuming below that cellTableKeyboardSelectedCell is for that purpose, so you could do widget.addStyleName(cellTableKeyboardSelectedCell). If so, I'd make the rule .cellTable.cellTableKeyboardSelectedCell. Even better would be to use a dependent style: .cellTable.cellTable-keyboardSelectedCell { border: } and then in your Java code: widget.addStyleDependentName(keyboardSelectedCell); or, to remove it: widget.removeStyleDependentName(keyboardSelectedCell); On Thursday, February 7, 2013 9:50:55 AM UTC-5, membersound wrote: Hi, how can I change a specific css style property during runtime? I have a CellTable.Resource to define cellTable style MyCellTable.css. Now I want to change a specific css property during runtime. .cellTableKeyboardSelectedCell { border: } How can I access my css file during runtime and change that specific property? Probably it has to do with cellTable.setStylePrimaryName(), but I could not figure out how I could achieve this. 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Java 7
Hi, Sorry for resurrecting a slightly old thread. JDK 1.6 is EOL end of this month, so I am thinking of migrating my GWT project to JDK7 I am using GWT 2.5, and wondering if many people are using JDK7 in their GWT projects. Is it okay to do so and if so, what are the gotchas? Thanks, S On Monday, 1 October 2012 14:59:51 UTC+1, Konstantin Solomatov wrote: And what about JDK8? I think, implementing closures support in GWT makes a lot of sense since you can translate them to native javascript closures. On Wednesday, September 26, 2012 1:21:26 AM UTC+4, Brian Slesinsky wrote: GWT 2.5 rc2 should run on a JDK 7 virtual machine (there was a recent fix to make dev mode work). We've occasionally talked about supporting Java 7 features, but there's no concrete plan or schedule to implement them. - Brian On Tuesday, September 25, 2012 4:38:28 AM UTC-7, Benjamin Wolff wrote: Hi, sorry for gravedigging, but the title of this thread seems suitable. Since Java 6 reaches its End-Of-Life cycle at the beginning of next year, does the GWT team has concrete plans to support Java 7? See: http://www.oracle.com/technetwork/java/eol-135779.html Cheers, Ben -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Java 7
Em quinta-feira, 21 de fevereiro de 2013 09h32min44s UTC-3, Seamus McMorrow escreveu: Sorry for resurrecting a slightly old thread. JDK 1.6 is EOL end of this month, so I am thinking of migrating my GWT project to JDK7 I am using GWT 2.5, and wondering if many people are using JDK7 in their GWT projects. Is it okay to do so and if so, what are the gotchas? We are using JDK7 with GWT -- UiBinder, ClientBundle, GWT-RPC -- and Eclipse 4.2. No gotchas so far. -- P. -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Java 7
On Thursday, February 21, 2013 1:32:44 PM UTC+1, Seamus McMorrow wrote: Hi, Sorry for resurrecting a slightly old thread. JDK 1.6 is EOL end of this month, so I am thinking of migrating my GWT project to JDK7 I am using GWT 2.5, and wondering if many people are using JDK7 in their GWT projects. Is it okay to do so and if so, what are the gotchas? GWT 2.5 is fully compatible with JDK 7 (see https://developers.google.com/web-toolkit/release-notes#Release_Notes_2_5_0_RC2 ). Just make sure you only use Java 6 constructs in your client code (in Eclipse, Project properties → Java Compiler, set “JDK Compliance” to 1.6; in Maven, set “maven.compiler.source” and “maven.compiler.target” to 1.6 or 6). -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
help a newbie - cant run sample app
Hi, I am using eclipse juno with latest GWT plugin. I create a new project and try to run it, and get the following - please help me. What am I doing wrong? 00:00:00.003 [WARN] failed Server@4328f227 java.io.IOException: Unable to establish loopback connection at sun.nio.ch.PipeImpl$Initializer.run(Unknown Source) at sun.nio.ch.PipeImpl$Initializer.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.nio.ch.PipeImpl.init(Unknown Source) at sun.nio.ch.SelectorProviderImpl.openPipe(Unknown Source) at java.nio.channels.Pipe.open(Unknown Source) at sun.nio.ch.WindowsSelectorImpl.init(Unknown Source) at sun.nio.ch.WindowsSelectorProvider.openSelector(Unknown Source) at java.nio.channels.Selector.open(Unknown Source) at org.mortbay.io.nio.SelectorManager$SelectSet.init(SelectorManager.java:277) at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:199) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:303) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.Server.doStart(Server.java:233) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:672) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1093) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836) at com.google.gwt.dev.DevMode.main(DevMode.java:311) Caused by: java.net.SocketException: Permission denied: connect at sun.nio.ch.Net.connect0(Native Method) at sun.nio.ch.Net.connect(Unknown Source) at sun.nio.ch.Net.connect(Unknown Source) at sun.nio.ch.SocketChannelImpl.connect(Unknown Source) at java.nio.channels.SocketChannel.open(Unknown Source) at sun.nio.ch.PipeImpl$Initializer.run(Unknown Source) at sun.nio.ch.PipeImpl$Initializer.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.nio.ch.PipeImpl.init(Unknown Source) at sun.nio.ch.SelectorProviderImpl.openPipe(Unknown Source) at java.nio.channels.Pipe.open(Unknown Source) at sun.nio.ch.WindowsSelectorImpl.init(Unknown Source) at sun.nio.ch.WindowsSelectorProvider.openSelector(Unknown Source) at java.nio.channels.Selector.open(Unknown Source) at org.mortbay.io.nio.SelectorManager$SelectSet.init(SelectorManager.java:277) at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:199) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:303) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.Server.doStart(Server.java:233) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:672) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1093) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836) at com.google.gwt.dev.DevMode.main(DevMode.java:311) -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Confusion with MVP.
As Thomas says, it depends. But, I think that for many cases where you have a UI element that isn't too complex and doesn't really allow much user interaction (or have mutable state), it makes sense just pass an event bus to the widget and have it fire events for actions a presenter higher up might care about. MVP is great, but it's also coupling and additional boilerplate, though events and hanlders also require boilerplate. But, you also get some help, eg the event bus passed to Abstract#start() removes handlers automatically. Jesse On Thu, Feb 21, 2013 at 3:54 AM, Thomas Broyer t.bro...@gmail.com wrote: As in many cases, I'd say that “it depends”. Would there be a value in using MVP for the tile? assuming a yes, would there be a value exposing the use of MVP to the *user* of the tile? (for instance CellTable and friends use MVP, but it's an implementation detail; from the outside they're just widgets like any other). If you go the MVP route, have a look at http://www.google.com/events/io/2010/sessions/gwt-continuous-build-testing.html; it explains how Apache (ex-Google) Wave uses MVP all the way down (down to the level of buttons!) On Thursday, February 21, 2013 3:18:55 AM UTC+1, MAQ wrote: Hi, I'm starting to get more confused as I'm going deeper with MVP. In my project I have a view which has many video 'tiles' (thumbnails with headlines). Should I make each tile a view by its own, and each one of these views would have its own presenter? Is that a normal solution or am I doing a horrible thing? -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Confusion with MVP.
I've seen many developers turned off MVP by this very issue. While not prone to absolutes, I'd assert that no framework/pattern should be used as a rule. Use it when it has benefits and makes sense. In the case of MVP to the level of buttons, that might have a benefit at some obscure point in the future, but will result in a lot of code and boilerplate. I was considering the same issue when building a full page calendar widget with GWTP last week and could have made everything down to the day cells MVP, but it just did not provide extra benefit for all the code. So when thinking of MVP, then about the *other* MVP: *Minimum Viable Produc*t. Do you need a few dozen extra interfaces to make those tiles? Do your requirements call for swapping out the views for say different platform views (i.e. mobile) right now? If not, use the Widget pattern until it no longer meets you needs. Sincerely, Joseph -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
IncompatibleRemoteServiceException : The response can not be Deserialized
Folks, I try to answer as many questions on the GWT forums as I can, but alas this one has stumped me the last few evenings. I'm converting RunPartner.com, my hobbist distance running site, from ExtJs to GWT having built GWT apps for the last 2 years since GWT rocks. I searched the old postings and found that the following two had the same issue, but both traced it to the wrong version of gwt-servlet. I'm using GWT 2.5.0 compiled via the gwt-maven-plugin and with all 2.5.0 dependencies. Also using GWTP. A check in the output war shows only the gwt-servlet-2.5.0.jar there. So I'm stumped. - - Serialization Exception with Listhttps://groups.google.com/forum/?fromgroups=#!topic/google-web-toolkit/Y34yg9H4sjc - Cannot deserialized ArrayList object in GWT 2.3https://groups.google.com/forum/?fromgroups=#!topic/google-web-toolkit/4ixQaJ4ixUM *The issue* I know there are a bunch of reasonshttps://developers.google.com/web-toolkit/doc/latest/tutorial/RPC#serialize things could fail to serialize, and I've checked all of those and I kept getting this issue. At first I though it was because of my custom serializers, or Hibernate usage, or constructors. But, when you hit one of those, the error message tells you so. This one tells nothing extra: https://lh6.googleusercontent.com/-UGLHDDbNiYs/USWyg1U1cLI/CJ0/cA2AmUxcX9w/s1600/Selection_002.png So, I got rid of all of that. I just made a method that passes a Double. Nothing magic there. And the issue persists despite Maven clean/rebuild or Eclipse clean or building the whole thing and just running it as JS/Tomcat. So, I'm curious if there is any stone I've left unturned. Note that I know the wireup is correct however as when I pass a boolean through as the return type it jives, but not any non-primitive. On sending the Double below, I can see it serialized coming over the wire in the XHR fine, but the client always throws the error whether in DevMode or as a compiled war. Hopefully I've missed something simple. Thanks for any pointers you can provide. :) Service usage: DoubleService.Util.getInstance().getDouble(new AsyncCallbackDouble() { @Override public void onFailure(Throwable caught) { Window.alert(Error fetching double: +caught.getMessage()); } @Override public void onSuccess(Double result) { Window.alert(Double is: +result); } }); Service interface @RemoteServiceRelativePath(services/doubleService)public interface DoubleService extends RemoteService { Double getDouble(); } Backend impl: @Service(doubleService)public class DoubleServiceImpl implements DoubleService { @Override public Double getDouble() { return 1.46D; } } Async Interface (generated by GWT Mvn Plugin): public interface DoubleServiceAsync { /** * GWT-RPC service asynchronous (client-side) interface * @see DoubleService */ void getDouble( AsyncCallbackjava.lang.Double callback ); /** * Utility class to get the RPC Async interface from client-side code */ public static final class Util { private static DoubleServiceAsync instance; public static final DoubleServiceAsync getInstance() { if ( instance == null ) { instance = (DoubleServiceAsync) GWT.create( DoubleService.class ); } return instance; } private Util() { // Utility class should not be instanciated - spelling error Thomas! } } } Sincerely, Joseph -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to change css style during runtime?
You could try defining the CSS in a style element you've added to the DOM and then remove it and add another. However I've seen this done before and it can throw a lot of warnings and some DOM's don't like it. Better to consider another approach as Steve limns. Sincerely, Joseph -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Space between widgets in FlowPanel ?
This works... .textBoxMargin { margin-top:2px; margin-bottom:2px; margin-right:0px; margin-left:0px; } and apply that style to each textbox On Wednesday, February 20, 2013 6:51:42 PM UTC-8, Abraham Lin wrote: What you want is the margin property, not the padding property. -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Show search result from database.
Hi, I am new to GWT and doing a little POC app. Made a gui with one search field to search for object in the database. ( Hibernate ) So the search returns a list of object, how is the best way present the result to the user. ?? Some kind of list / table. Maybe also where the user can delete and update the objects. -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: IncompatibleRemoteServiceException : The response can not be Deserialized
But this code still runs in the context of your app or does it also fail as a standalone mini example? Things I would do (in this order): - make sure you use source/target version 1.6 for Java7 (client and server code) - recheck that gwt-servlet.jar belongs to 2.5.0 and you are compiling with 2.5.0 (client 2.5.1-rc1 and server 2.5.0 doesn't work for me for example although its only a minor update). - As it also happens in DevMode: Breakpoint in RequestCallbackAdapter.onResponseReceived() and stepping through the deserialization process (or stop on any exception and take a look at the call stack). - upgrade GWTP to trunk/0.8 (not sure if any server stuff is included in GWTP, never used it) - Try Java6 if you have installed it -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: RPC call in Activity onStop()
Sorry for my late reaction. Indeed I don't need the callback, I just need to send a terminates message to the server to release some temporary work data. As it didn't worked, I removed this part of the code, so I can't give right now an example. But the fact is that the server didn't received the call (checked with a lot of debug logs and breakpoints). I'll try again, also with the addClosingHandler() which I didn't knew. Thanks for the suggestion. I'll come back soon. Yves Le mardi 19 février 2013 23:45:32 UTC+1, Jens a écrit : I don't see why it should not work. You can do an RPC request in Activity.onStop() but you have to be aware of the fact that the activity will continue to stop while the request is pending. So your request's callback should not do anything that depends on the activity state or its view (which will be detached after the activity is stopped). You can also do a RPC request in Window.addClosingHandler() which will be called before the window/tab gets closed. But again in this case the callback is probably never called as the window/tab gets closed while the request is pending. All you could do here is telling the server that the app terminates now and let the server invalidate the users session for example. Have you checked FireBug/Chrome Devtools and verified that no last request is made? -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: RPC call in Activity onStop()
Actually it is a subclass of AbstractActivity and onStop() is overridden. The fact the widget is being destroyed (? I am not sure of what really happens at this moment) could be the source of the problem because I have a lot of things to do during the onStop() call and something might go wrong in the client. Thanks for input. Yves -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: RPC call in Activity onStop()
Try to send request in mayStop method. It may work as widget is still not destroyed nor deatached. On Thursday, February 21, 2013 10:14:37 PM UTC+1, yves wrote: Actually it is a subclass of AbstractActivity and onStop() is overridden. The fact the widget is being destroyed (? I am not sure of what really happens at this moment) could be the source of the problem because I have a lot of things to do during the onStop() call and something might go wrong in the client. Thanks for input. Yves -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: IncompatibleRemoteServiceException : The response can not be Deserialized
Thanks as always Jens. I'll run through your suggestions tonight. Joe -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Problems with GWT-RPC: encodedRequest cannot be empty
We are also experiencing this problem. We use GWT 2.4 and Glassfish application server. NTLM is specific to Windows, But our app server runs on Linux, Any suggestions on any other probable cause? Appreciate help! On Wednesday, January 23, 2013 9:49:11 AM UTC-8, Miloslav Skacel wrote: I'm experiencing the same problem It looks like NTLM related problem as described here http://code.dblock.org/ntlm-please-show-id-with-every-post Dne pondělí, 16. dubna 2012 19:08:41 UTC+2 kishorpatel415 napsal(a): Hi, We are using GWT 2.3. Our application is encountering the error encodedRequest cannot be empty. Full stack trace below. This is an intermittent error that occurs when making GWT-RPC calls. Please let me know if there are any work around or solutions available. Thank you. Stack Trace: Exception while dispatching incoming RPC call java.lang.IllegalArgumentException: encodedRequest cannot be empty at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:229) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 206) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) Client Environment - Browser: Microsoft Internet Explorer 8 - Operating System: MS Windows 7 Server Environment - App Server: Tomcat 7 - Operating System: MS Windows Server 2008 -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
EAR application with war (GWT) and JPA
I have a maven project consisting of a parent project with 3 modules. 1. Modul is a GWT webapp. 2. Modul is a jar module using session beans and Hibernate. called server module 3. Modules is module that builds the ear file ( maven-ear-plugin ) In the webapp I created a GWT gui than can create records in the database. It does that with an injected session bean from the server module. Second I can search for records in the database. This is also done vie the session bean. And here is the problem. I have a hibernate entity bean in the server module. Product When searching the session bean returns a list of product beans to the GWT server implementation. The webapp knows about the product bean cause maven dependencies. I would like this list of products to be listed in the gui. But when compiling : No source code is available for type com.xx.yy.server.model.Product Sure enough, the product bean in a maven dependency. I can of cause create a new product DTO in the webapp an convert the product bean to this product DTO... but that sounds stupid. Anyone got a good solution for 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Dart with GWT
Nice job, really cool stuff. Thanks for sharing it. Sent from my iPhone On Feb 19, 2013, at 4:01 PM, Shannon -jj Behrens jji...@google.com wrote: Hey guys, I put together a video on how to use Dart with GWT: http://news.dartlang.org/2013/02/dart-with-google-web-toolkit.html In it, I show a bunch of ways to interoperate such as: Using GWT and Dart to manage different parts of the same page Using Dart to retrieve JSON from a Java servlet Using window.postMessage and JSNI to pass messages between GWT and Dart Using JavaScript, JSNI, and Dart's js package for synchronous interoperability between GWT and Dart Using CustomEvent objects and Elemental to pass messages between GWT and Dart I had a really good time using GWT and Dart to build the sample application, so I hope you enjoy the video! Best Regards, -jj -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: IncompatibleRemoteServiceException : The response can not be Deserialized
Well, seems things are quite odd. First, Tried all the suggestions: - Now on newer GWTP v0.8.4 - Confirmed only gwt-servlet-2.5.0.jar present - Confirmed that mvn (single prop is used) loads all GWT dependencies as 2.5.0 - Tested on Java6, Java7 Note: on Ubuntu 12.10, OpenJDK 6/7 But here is the interesting part. The exception is being thrown on line 153 of SerializerBase private TypeHandler getTypeHandler(String typeSignature) throws SerializationException { String typeHandlerClass = methodMapJava.get(typeSignature); // returns NULL if (typeHandlerClass == null) { /* * Probably trying to serialize a type that isn't supposed to be * serializable. */ throw new SerializationException(typeSignature); } The request payload: 7|1|4|http://127.0.0.1:/main/|136A4F582E1FABB50338F54C89DA7F0C|_|getDouble|1|2|3|4|0| The response: //OK[0.44995762496622327,1,[java.lang.Double/858496421],0,7] The value of typeSignature: java.lang.Double/858496421 But methodMapJava has the following entries - 3=com.google.gwt.user.client.rpc.XsrfToken_FieldSerializer, - 2=com.google.gwt.user.client.rpc.RpcTokenException_FieldSerializer, - 1=com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer, - 4=com.google.gwt.user.client.rpc.core.java.lang.Double_FieldSerializer, - 8=com.google.gwt.user.client.rpc.core.java.lang.String_FieldSerializer This looks totally incorrect. The keys are numeric (strings) in the map, but the passed signature is just that, a signature. So it seems the map is being populated incorrectly, or the signature sent is bonk. So I'm left wondering why everything compiles without an issue (string mode on) while it seems like the serializers are not correct. Sincerely, Joseph P.S. The fact that primitives work is explained because all primitives have hardcoded deserializers in RequestCallbackAdapter. Thus they don't do any such map lookup. -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Query regarding integrating external scripts like Chitika
Can someone please help me with this. Do I need to use any specific library to get this working like the GWT-JQuery library or something? Regards, S On Friday, 15 February 2013 08:57:21 UTC+5:30, sachin sreenivasan wrote: But if I put in my host html, will I be able to pass values to this script to make it dynamic? I don't know javascript. So not sure how to try that approach. Thanks, Sachin On Feb 15, 2013 12:18 AM, Jens jens.nehlme...@gmail.com wrote: I don't know Chitika but can't you just put it into your host html page which also loads your GWT app? -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[gwt-contrib] Re: Make PopupPanel#setAnimationType public (issue1893803)
http://gwt-code-reviews.appspot.com/1893803/ -- -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups Google Web Toolkit Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[gwt-contrib] Change in gwt[master]: Adds the GWT 2.5_3.0 API Checker configuration file and crea...
Goktug Gokdogan has uploaded a new change for review. https://gwt-review.googlesource.com/1990 Change subject: Adds the GWT 2.5_3.0 API Checker configuration file and creates new reference jars for api-checker. .. Adds the GWT 2.5_3.0 API Checker configuration file and creates new reference jars for api-checker. Change-Id: Id0e5d73db6f45c19049ee4090c8ac1d2b1ca939e --- M build.xml A tools/api-checker/config/gwt25_30userApi.conf M tools/api-checker/reference/README M tools/api-checker/reference/gwt-dev-modified.jar M tools/api-checker/reference/gwt-user-modified.jar 5 files changed, 143 insertions(+), 2 deletions(-) diff --git a/build.xml b/build.xml index 57903e6..d25b359 100755 --- a/build.xml +++ b/build.xml @@ -31,7 +31,7 @@ /macrodef property name=gwt.apicheck.config -location=tools/api-checker/config/gwt24_25userApi.conf/ +location=tools/api-checker/config/gwt25_30userApi.conf/ target name=buildonly description=[action] Minimal one-platform devel build, without distro packaging diff --git a/tools/api-checker/config/gwt25_30userApi.conf b/tools/api-checker/config/gwt25_30userApi.conf new file mode 100644 index 000..8f9a723 --- /dev/null +++ b/tools/api-checker/config/gwt25_30userApi.conf @@ -0,0 +1,141 @@ +#existing API + +# dirRoot_old is missing because refJars are being supplied +name_old gwt25userApi +#sourceFiles is specified as colon-separated list of files +sourceFiles_old com/google/gwt\ +:com/google/web\ +:javax/validation\ + +#excludedFiles is specified as colon-separated ant patterns +# The last 2 entries exclude the validation stuff. +# Bug: http://code.google.com/p/google-web-toolkit/issues/detail?id=5566 +excludedFiles_old com/google/gwt/benchmarks/BenchmarkReport.java\ +:com/google/gwt/benchmarks/BenchmarkShell.java\ +:com/google/gwt/benchmarks/client/Benchmark.java\ +:com/google/gwt/typedarrays/super/com/google/gwt/typedarrays/shared/TypedArraysFactory.java\ +:**/linker/**\ +:**/rebind/**\ +:**/server/**\ +:**/tools/**\ +:**/vm/**\ +:com/google/gwt/regexp/shared/**\ +:com/google/gwt/core/client/impl/WeakMapping.java\ +:com/google/gwt/core/ext/**\ +:com/google/gwt/dev/*.java\ +:com/google/gwt/dev/asm/**\ +:com/google/gwt/dev/cfg/**\ +:com/google/gwt/dev/generator/**\ +:com/google/gwt/dev/javac/**\ +:com/google/gwt/dev/jdt/**\ +:com/google/gwt/dev/jjs/*.java\ +:com/google/gwt/dev/jjs/ast/**\ +:com/google/gwt/dev/jjs/impl/**\ +:com/google/gwt/dev/js/**\ +:com/google/gwt/dev/json/**\ +:com/google/gwt/dev/resource/**\ +:com/google/gwt/dev/shell/**\ +:com/google/gwt/dev/ui/**\ +:com/google/gwt/dev/util/**\ +:com/google/gwt/i18n/**/impl/cldr/**\ +:com/google/gwt/junit/*.java\ +:com/google/gwt/junit/client/GWTTestCase.java\ +:com/google/gwt/junit/client/impl/GWTRunner.java\ +:com/google/gwt/junit/remote/**\ +:com/google/gwt/resources/css/**\ +:com/google/gwt/resources/ext/**\ +:com/google/gwt/resources/rg/**\ +:com/google/gwt/rpc/client/impl/ClientWriterFactory.java\ +:com/google/gwt/rpc/client/impl/EscapeUtil.java\ +:com/google/gwt/rpc/client/impl/RpcCallbackAdapter.java\ +:com/google/gwt/safecss/shared/SafeStylesHostedModeUtils.java\ +:com/google/gwt/safehtml/shared/SafeHtmlHostedModeUtils.java\ +:com/google/gwt/safehtml/shared/SafeUriHostedModeUtils.java\ +:com/google/gwt/soyc/**\ +:com/google/gwt/user/client/rpc/core/**\ +:com/google/gwt/user/client/rpc/impl/**\ +:com/google/gwt/uibinder/attributeparsers/**\ +:com/google/gwt/uibinder/client/impl/**\ +:com/google/gwt/uibinder/elementparsers/**\ +:com/google/gwt/uibinder/testing/**\ +:com/google/gwt/util/**\ +:com/google/gwt/validation/**\ +:com/google/web/bindery/autobean/**/impl/**\ +:com/google/web/bindery/autobean/shared/ValueCodexHelper.java\ +:com/google/web/bindery/requestfactory/apt/**\ +:com/google/web/bindery/requestfactory/gwt/client/impl/**\ +:com/google/web/bindery/requestfactory/server/impl/**\ +:com/google/web/bindery/requestfactory/shared/impl/**\ +:com/google/web/bindery/requestfactory/vm/**\ +:javax/**\ +:org/**\ + +## +#new Api + +dirRoot_new ./ +name_new gwt30userApi +#sourceFiles is specified as colon-separated list of files +sourceFiles_new dev/core/super\ +:user/src\ +:user/super\ + +#excludedFiles is specified as colon-separated ant patterns +# The last 2 entries exclude the validation stuff. +# Bug: http://code.google.com/p/google-web-toolkit/issues/detail?id=5566 +excludedFiles_new user/src/com/google/gwt/benchmarks/BenchmarkReport.java\ +:user/src/com/google/gwt/benchmarks/BenchmarkShell.java\ +:user/src/com/google/gwt/benchmarks/client/Benchmark.java\ +:user/super/com/google/gwt/typedarrays/super/com/google/gwt/typedarrays/shared/TypedArraysFactory.java\ +:**/linker/**\ +:**/rebind/**\ +:**/server/**\ +:**/tools/**\ +:**/vm/**\ +:user/src/com/google/gwt/regexp/shared/**\ +:user/src/com/google/web/bindery/autobean/shared/ValueCodexHelper.java\