Re: Who uploads GWT to Maven
I'm going to hate and say 'yet another reason maven is good in theory and bad in practice'. On Sat, Feb 13, 2010 at 5:59 PM, bkbonner wrote: > When will 2.0.2 get out to repo1.maven.org? > > On Feb 8, 8:30 am, Ben Harris wrote: > > It is in there...? Since 5th Feb. > http://repo1.maven.org/maven2/com/google/gwt/gwt-user/ > > > > On Feb 8, 8:20 pm, Jan Ehrhardt wrote: > > > > > > > > > Hi, > > > > > currently GWT 2.0 is available inMaven'srepo1, but GWT 2.0.1 is > released > > > since last week. > > > So, who does the uploads to the publicMavenrepo? Is there a POM > available, > > > that is used for uploading? Can I help in any way to speed up the > uploading > > > toMaven? > > > > > The best case would be, if new GWT releases were available throughMaven > > > from day one. Anything bringing me closer to this is welcome. > > > > > Regards > > > Jan Ehrhardt > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Seem like no way to get keycode from KeyDownHandler, KeyUpHandler
You should start by taking a quick look at the source code to see exactly what value GWT returns for KeyPressEvent.getCharCode(); it might be different from what you expect. http://www.google.com/codesearch/p?hl=en#A1edwVHBClQ/user/src/com/google/gwt/event/dom/client/KeyPressEvent.java&q=keypressevent%20package:http://google-web-toolkit%5C.googlecode%5C.com&sa=N&cd=1&ct=rc You can add a tiny bit of JSNI code to get anything you need from the key events. For example, I do this as one part of a check for special keys: public void onKeyPress(KeyPressEvent event) { char c = event.getCharCode(); char which = getWhich(event.getNativeEvent()); if (isOpera() && c == m_keyDown && (c == KEY_HOME || c == KEY_END || c == KEY_INSERT || c == KEY_DELETE)) which = 0; // I hate Opera. See: http://unixpapa.com/js/key.html protected native char getWhich(NativeEvent e)/*-{ return e.which; }-*/; protected native char getCharCode(NativeEvent e)/*-{ return e.charCode; }-*/; protected native char getKeyCode(NativeEvent e)/*-{ return e.keyCode; }-*/; On Feb 13, 4:29 pm, AB wrote: > The newish event handler system seems designed to prevent getting a > keycode from the KeyDown and KeyUp events? Does anyone know the > reasoning behind this? > This creates a problem. For example, in IE, if one wants to detect > autorepeats of a non char key like an uparrow, you only get it on a > KeyDown event (seehttp://unixpapa.com/js/key.html). Since the > KeyPress does not get repeats (in IE for arrow keys), I need an > KeyDown event handler that knows they key that was hit (maybe i could > write enough logic to first sense the keypress, then remember that > keycode,...) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Seem like no way to get keycode from KeyDownHandler, KeyUpHandler
The newish event handler system seems designed to prevent getting a keycode from the KeyDown and KeyUp events? Does anyone know the reasoning behind this? This creates a problem. For example, in IE, if one wants to detect autorepeats of a non char key like an uparrow, you only get it on a KeyDown event (see http://unixpapa.com/js/key.html ). Since the KeyPress does not get repeats (in IE for arrow keys), I need an KeyDown event handler that knows they key that was hit (maybe i could write enough logic to first sense the keypress, then remember that keycode,...) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Who uploads GWT to Maven
When will 2.0.2 get out to repo1.maven.org? On Feb 8, 8:30 am, Ben Harris wrote: > It is in there...? Since 5th > Feb.http://repo1.maven.org/maven2/com/google/gwt/gwt-user/ > > On Feb 8, 8:20 pm, Jan Ehrhardt wrote: > > > > > Hi, > > > currently GWT 2.0 is available inMaven'srepo1, but GWT 2.0.1 is released > > since last week. > > So, who does the uploads to the publicMavenrepo? Is there a POM available, > > that is used for uploading? Can I help in any way to speed up the uploading > > toMaven? > > > The best case would be, if new GWT releases were available throughMaven > > from day one. Anything bringing me closer to this is welcome. > > > Regards > > Jan Ehrhardt -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.0.2
I just did an update and and Eclipse finds it today. How about maven repo? Just checked: http://repo1.maven.org/maven2/com/google/gwt/gwt-user/ and 2.0.1 is the most recent. On Feb 13, 9:41 am, Peter Ondruska wrote: > http://googlewebtoolkit.blogspot.com/2010/02/gwt-202-is-now-available... > > Checked twice (yesterday evening, today afternoon) and Eclipse does > not see this yet. Would you please check. Thanks. > > Peter -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Installing GWT Eclipse Galileo Plugin
Hi Scott I can't remember supplying a password for the plugin install. Instructions dont mention it either... http://code.google.com/eclipse/docs/install-eclipse-3.5.html Michael On Feb 13, 9:15 am, "sf_g...@bellsouth.net" wrote: > When I enter the sitehttp://dl.google.com/eclipse/plugin/3.5to > install the GWT plugin, it is prompting for a username and password > for dl.google.com. I have tried my the userid and password I am now > logged in with and have tried leaving it blank. I have no mixed case > characters, etc. Not sure what else to try, any suggestions? > > Scott -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UiBinder exceptions
the code is not that interesting or special. I define a composite widget class and specify the .ui.xml and everything UiBinder would need, and then instantiate that class 20 times. 18 or 19 of them will attach to the DOM without a problem (and their element can therefore be found) but once or twice it will fail. I am looking at designing around the problem so that I can wrap it in try/catch and defer to another attempt when it fails. I already have a partial solution in place which seems to work. On Feb 13, 5:44 am, Tsukasa wrote: > I think its worth a try to resolve your problem, but I think it would > vastly increase efficiency if you could give a code example which > produces the error. > > In fact i really had some similar exceptions in the beginning, which > in most cases could be dereferenced to some bug, made by myself like > wrong primary element referenced in uiBuilders generics ASO ... -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: username/password when using GAE
John, I put a lot of time putting together this blog posting to consolidate the process of authenticating a client to app engine - the sample i posted definitely works - it's tailored for Android clients but i hope it helps you - all about getting the auth token. http://javagwt.blogspot.com/2009/12/authenticating-android-app-to-google.html On Feb 13, 1:55 pm, gengstrand wrote: > First, take a look at this article and see if it covers your needs. > This is the official position on GAE and authentication. > > http://code.google.com/appengine/articles/auth.html > > If that's not going to cut it for you, then take a look > athttp://www.mindrot.org/projects/jBCrypt/ > > If you were using GWT and weren't going to deploy for a while, then > you might want to take a look > athttp://code.google.com/p/google-web-toolkit/wiki/RpcAuth > > I hope this helps. > > On Feb 12, 9:14 pm, John V Denley wrote: > > > > > really no responses on this one? > > > On Feb 11, 11:19 pm, John V Denley wrote: > > > > There are plenty of (fairly indepth & technical) conversations on here > > > about the use of passwords and how to send the data/password to the > > > server. > > > > It very much seems a consensus that unless you are using HTTPS/SSL > > > then its totally pointless doing anything on the client. > > > > Given that Google App Engine does not support HTTPS/SSL, what is > > > everyones opinion on this matter, what IS the best practice? > > > > As a side bar on this, up to now I have been using the google account > > > login to deal with all this, but have been getting a LOT of resistance > > > from my potential user community who get very lost and confused about > > > the process when having to create a google account, prior to being > > > able to create an account in my system, hence the "need" to look at > > > having my own security, which scares me as I dont know anything about > > > this subject, but I want my users logons/data to be safe and secure. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
My app - shameless plug :-)
Hey Guys, Well i'm pretty much ready to release my app engine / GWT app to the world so i thought i would put out a quick post about the Beta to you guys. I've worked for 12 years in the process control / manufacturing industry and I've done a lot of work with Data Historians - these are huge systems that cost tens of thousands of $ - I always wanted a small / cheaper data historian i could hook my Aquarium up to so I made one. http://www.nimbits.com is online and provides a service for efficiently storing time series data (such as a changing temperature) on App Engine. You can code against it as a service or use one of our UIs. I posted a Windows Desktop App, An Android Interface, and a lot of sample code on the web site. As you feed time series data into data points, you can perform calculations on the data, get email alerts, and see your changing values in spreadsheets, diagrams and your phone. There is also a social networking aspect to it; you can share your datapoints with friends. Check out the website, it's all free - i hope you guys can get some use out of it and as always, i appreciate any feedback. I'd also be happy to answer any questions if you'd like to know how any of the GWT functionality was developed. Here is a blog posting of mine that has some screen shots and more info: http://nimbits.blogspot.com/2009/11/quick-view-of-nimbits.html Ben -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: username/password when using GAE
First, take a look at this article and see if it covers your needs. This is the official position on GAE and authentication. http://code.google.com/appengine/articles/auth.html If that's not going to cut it for you, then take a look at http://www.mindrot.org/projects/jBCrypt/ If you were using GWT and weren't going to deploy for a while, then you might want to take a look at http://code.google.com/p/google-web-toolkit/wiki/RpcAuth I hope this helps. On Feb 12, 9:14 pm, John V Denley wrote: > really no responses on this one? > > On Feb 11, 11:19 pm, John V Denley wrote: > > > There are plenty of (fairly indepth & technical) conversations on here > > about the use of passwords and how to send the data/password to the > > server. > > > It very much seems a consensus that unless you are using HTTPS/SSL > > then its totally pointless doing anything on the client. > > > Given that Google App Engine does not support HTTPS/SSL, what is > > everyones opinion on this matter, what IS the best practice? > > > As a side bar on this, up to now I have been using the google account > > login to deal with all this, but have been getting a LOT of resistance > > from my potential user community who get very lost and confused about > > the process when having to create a google account, prior to being > > able to create an account in my system, hence the "need" to look at > > having my own security, which scares me as I dont know anything about > > this subject, but I want my users logons/data to be safe and secure. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to attach Object meta-data?
Element has methods to attach meta-data of type int, String, Boolean and Double, but there is no way to attach Objects. I need to attach a class from the emulation library (Vector, in this case) to a Widget. Using getElement() works for attaching other meta-data types, so why not Object? The odd thing is someone did this for a TreeItem with the get/set UserData(), but those methods are not in UIObject so Widget does not get them! A get/set PropertyObject() in Element would be very nice, or move get/set UserData up to UIObject. Anyone know of a work-around for this? Thanks, Scott -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: username/password when using GAE
Hi, I have a game with account. My method: On the server side, I have a table with userId/username/password(md5) and a table userId/loginString When the user initiate a login, he get his loginString (which is a random string). Then when the client communicate with the server, the loginString is checked and the server get the associated userId to make some actions. Hope it's clear. Florian Glardon Developer of http://www.spirit-fever.com -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Installing GWT Eclipse Galileo Plugin
When I enter the site http://dl.google.com/eclipse/plugin/3.5 to install the GWT plugin, it is prompting for a username and password for dl.google.com. I have tried my the userid and password I am now logged in with and have tried leaving it blank. I have no mixed case characters, etc. Not sure what else to try, any suggestions? Scott -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Splitting code with GWT 2.0.1 problem
Hi guys. When I compile code with GWT plugin for Eclipse function, directory "deferred" (with all splitted code) craeted successful. But if I complile code with ant task, directory "deferred" is not created. I use the following ant task: ${env.GWT_HOME} property is gwt 2.0.1 location. Eclipse plugin use this gwt location too. Does anybody can help me? What I do wrong? May be I've forgot set some gwt compile parameters? Thanks, Elena -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
What is the best way to add functionality to RichTextArea?
Hi all, I have been looking at the RichTextArea widget and reading up online on the various way people extend it. It seems like when people aren't satisfied with the GWT implementation, they roll their own using libraries like TinyMCE (http://consult.goannatravel.com/blog/ 2007/11/22/gwt-tinymce-widget/) or SmartGWT (http://code.google.com/p/ smartgwt/). I need to add functionality that is not available in the GWT RichTextArea, such as: * Add header (h1, h2, ...) * Table support (insert table, add/remove row, merge cells, etc.), and * More Is the correct approach in GWT to find an existing library that supports most of these features? Should I try to extend the built-in component? All of these functions seem to be implementable using Midas functions, but digging through the GWT implementation, it seems like I would have to extend RichTextAreaImpl, and it seems like I have no control over how that class gets created at runtime. Any help, or a pointer to the preferred approach would be appreciated! Thanks! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Proxying a GWT 2.0 app is difficult: is this a feature or a bug?
Hey folks, I recently tried to proxy a GWT (2.0) app with Apache's mod_proxy, such that http://proxy.example.com/instance/ is proxied to http://instance.example.com/app/ , where my GWT app is deployed. I can load my app via http://proxy.example.com/instance/, but many RPC calls start failing due to SerializationExceptions. I've verified the proxy configuration is set up correctly (to the point of inspecting HTTP headers). After some investigation, it seems that GWT chokes on the fact that the path used to request the app is not the same as the deployment path (that is, /instance/ is not the same as /app/). There is a check in RemoteServiceServlet.loadSerializationPolicy that the moduleBaseURL must be a subdirectory of wherever the app is deployed (according to HttpServletRequest.getContextPath). The moduleBaseURL used for comparison is actually passed from the client in the payload of *every* RPC call. If this check fails, the behavior is strange: the SerializationPolicy fails to load (which results in a load of the "legacy, 1.3.3 compatible" SerializationPolicy), but the request otherwise proceeds as normal. This of course means that the RPC servlet will fail to serialize any type that doesn't implement IsSerializable. For those of us who have been developing in the GWT 1.5+ world, many types can have this "problem". My workaround has been to override RemoteServiceServlet.doGetSerializationPolicy, passing a moduleBaseURL constructed so that this check never fails. My questions are: 1) Is this behavior intended? I haven't been able to imagine a scenario where the behavior pattern of "unexpected request path yields legacy SerializationPolicy" is necessary or even beneficial, but maybe I'm not creative enough. It definitely makes my case more painful than I've come to expect from GWT. 2) Why is the moduleBaseURL being transmitted in the RPC payload in the first place? It seems like this is not only redundant information, but defeats the HTTP request path as the canonical client-visible location of a resource. ~Steve -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Use GWT RPC in env with separated server: static content server and dynamic content
Try to use GWT RPC in our application. Our application serve static content and dynamic content with different base url. for example, url to foo.jsp may have http://localhost/context/foo.jsp served by websphere, for img/js inside that jsp, we will have url like http://localhost/uistatic/foo.js, served by iis, and GWT generated code will be included as http://localhost/uistatic/.. Now, when using GWT RPC, the modulebaseurl GWT default will actually point to http://localhost/uistatic/ which is not correct one, for calling rpc service, we can override ServiceEntryPoint by doing following (using HostPageBaseURL): serviceDef.setServiceEntryPoint(GWT.getHostPageBaseURL() + GWT.getModuleName() + ..); However, to use serializable DTO for rpc call, GWT load serialization policy file by using modulebaseurl which again is wrong (http:// localhost/uistatic/), anyone know how to override it, or any other suggestion are welcome. Thx Bing -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
JUnit Task and GWTTestCase against HTMLUnit + Selenium
Will someone please advice on a Ant JUnit task which will allow me to run GWTTestCases against HTMLUnit and Selenium (RunStyle)? This is vital for our continuous integration architecture. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT 2.0.2
http://googlewebtoolkit.blogspot.com/2010/02/gwt-202-is-now-available.html Checked twice (yesterday evening, today afternoon) and Eclipse does not see this yet. Would you please check. Thanks. Peter -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to run tests with GWTTestCases and -noserver mode?
Thanks but I am looking for the noserver integration... I got it work no through a proxy, but it still needs some improvement to use it in a friendly way, which is also recognized by the GWT dev team. I opened the following ticket: http://code.google.com/p/google-web-toolkit/issues/detail?id=4615&q=GwtTestCase%20noserver Ed On Sat, Feb 13, 2010 at 2:18 PM, dougx wrote: > I don't know if this helps (I'm not really sure I follow your > question), but I blogged about how to run unit tests in eclipse a > while ago: > http://shadowmint.blogspot.com/2010/01/unit-tests-in-gwt.html > > That probably doesn't help much if you're trying run from the command > line, but you might be able to use it as a starting point... > > ~ > Doug. > > On Feb 9, 8:41 pm, Ed wrote: > > How can I run tests that extends from GWTTestCase in gwt 2.0 with > > noserver mode? > > > > I tried it, accoding to the documentation GWT JUnit, but don't really > > understand why GWT uses his own GWTShellServlet, instead of mine :(... > > I also tried to use my own war/WEB-INF/web.xml but without any luck. > > I think I am missing something here > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UiBinder exceptions
I think its worth a try to resolve your problem, but I think it would vastly increase efficiency if you could give a code example which produces the error. In fact i really had some similar exceptions in the beginning, which in most cases could be dereferenced to some bug, made by myself like wrong primary element referenced in uiBuilders generics ASO ... -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Use Javascript library into a ClientBundle
There's really no good reason to use ClientBundle for this, but you _can_ do it if you want to package com.hax.Sample.client.js.inc; import com.google.gwt.core.client.GWT; import com.google.gwt.resources.client.TextResource; import com.google.gwt.resources.client.ClientBundleWithLookup; public interface SampleAssetsBundle extends ClientBundleWithLookup { public static final SampleAssetsBundle instance = GWT.create(SampleAssetsBundle .class); @Source("myScript.js") public TextResource myScript(); } ... package com.hax.Sample.client.js; public class SampleLoader { public void injectScript() { String raw = SampleAssetsBundle.instance.myScript().getText(); ScriptElement e = Document.get().createScriptElement(); e.setText(raw); Document.get().getBody().appendChild(e); } } ... SampleLoader l = new SampleLoader(); l.injectScript(); ~ Doug. On Feb 11, 7:26 pm, obesga wrote: > I want to use a javascript library - just to encode into sha256, this > is the urlhttp://anmar.eu.org/projects/jssha2/- into GWT code. > > I have one way, using JSNI > > public final class SHA256 { > > public static native String doSHA256(String text) /*-{ > $wnd.doSha256(text); > }-*/; > > } > > (I think that's ok ) > as far as the js libraries are included into the host page. > > ¿ Is there a way to use a ClientBundle with Javascript libraries / > files to inject them into GWT code ? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to run tests with GWTTestCases and -noserver mode?
I don't know if this helps (I'm not really sure I follow your question), but I blogged about how to run unit tests in eclipse a while ago: http://shadowmint.blogspot.com/2010/01/unit-tests-in-gwt.html That probably doesn't help much if you're trying run from the command line, but you might be able to use it as a starting point... ~ Doug. On Feb 9, 8:41 pm, Ed wrote: > How can I run tests that extends from GWTTestCase in gwt 2.0 with > noserver mode? > > I tried it, accoding to the documentation GWT JUnit, but don't really > understand why GWT uses his own GWTShellServlet, instead of mine :(... > I also tried to use my own war/WEB-INF/web.xml but without any luck. > I think I am missing something here -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT XSLT
Hi, This is a follow up to my previous message, I've become somewhat wiser, here it goes. I've managed to work around my first problem by having the parsing code incorporated into my code, instead of using gwt's XMLParser. I actually copied the code from there. My second problem was solved by using Strings. This might be seem like a step back, but I think it was necessary, and it works. I've made the code available in a newly created project at http://code.google.com/p/gwtxslt/ Check it out, try it, if you need it. I admit that it's not complete, it doesn't know everything every browser's implementation offers, but I can reach now, what my use case required, that is to put the results of the transformation to the browser. I would love to hear some opinion. Yours, Arpad -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RPC with ArrayList, another hapless Ray Ryan groupie reaches out for help
Ok, solved my immediate problem, the ContactDetailId needs to have a no argument constructor also. public class ContactDetailId implements IsSerializable{ private String id; public ContactDetailId(){ } public ContactDetailId(String id){ this.id = id; } public String getId(){ return id; } } On Feb 13, 6:02 pm, Michael Dausmann wrote: > Hi > > Trying to build out the Ray Ryan best practices sample in GWT 2.0 , > having trouble with the action(command)/response objects, containing > array list instances. This is Ray's sample > > package com.play.client; > > import java.util.ArrayList; > > public class GetDetails implements Action { > private final ArrayList ids; > > public GetDetails(ArrayList ids){ > this.ids = ids; > } > > public ArrayList getIds(){ > return ids; > } > > } > > This is my latest try.. > > public class GetDetailsAction implements Action, > IsSerializable { > private ArrayList ids; > > public GetDetailsAction(){ > } > > public GetDetailsAction(ArrayList ids){ > this.ids = ids; > } > > public ArrayList getIds(){ > return ids; > } > > } > > public class ContactDetailId implements IsSerializable{ > private String id; > public ContactDetailId(String id){ > this.id = id; > } > public String getId(){ > return id; > } > > } > > To Explain my changes, I have:- > > * Changed the name because I felt like it > > * Added a no-parameter constructor because "[ERROR] [testgwt] > com.play.client.Action has no available instantiable subtypes. > (reached via com.play.client.Action)" > > * Removed the final modifier from the id's intance member because > '[WARN] [testgwt] Field 'private final > java.util.ArrayList ids' will not be > serialized because it is final' > > My sample runs but I now get a > com.google.gwt.user.client.rpc.SerializationException when I try to > pass an action instance via RPC as per the talk... > > Any Clues? Have I missed some embarrassing and obvious point? All of > the 'reference' implementations pass simple types and skirt the > ArrayList thing. > > Michael -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.