Re: Using Lightbox with GWT (some events not catched)
Hi, Xandre, Could you pls share me your sample code ? I am figuring out how to use it in my project. TIA On Friday, April 25, 2014 at 4:15:23 AM UTC+8, JoyaleXandre wrote: If it may help, I noticed that the problem occur only when Lightbox is launch from a DialogBox with Glass enabled. Le mardi 22 avril 2014 18:20:47 UTC-4, JoyaleXandre a écrit : Hello! I'm trying to use Lightbox with the HTML widget in GWT. I manage to make the example from a standard HTML page in my GWT code. Here is the example: http://lokeshdhakar.com/projects/lightbox2/. Everything is good when I try to navigate with the keyboard, but when I want to quit by clicking the X button or got next with the arrow image, nothing happen. The mouse events seem to be missing. I can't even right click and see the Firefox context menu. Do you have any idea where the problem may be? Alexandre -- 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/d/optout.
Re: Regarding GWT with the upcoming Windows 8 and Internet Explorer 10
I am using the latest GWT version and it seems no IE10 support yet. Any plan update on it ? thanks a lot OrNot On Thursday, December 13, 2012 10:06:30 AM UTC+8, Goktug Gokdogan wrote: I'm not sure about timing but we will definitely add support for IE10. I expect most of the work to be about testing and working around behavior differences. Will let you know more, when we have a clear plan. On Wed, Dec 12, 2012 at 12:18 PM, Pedro Lamarão pedro@gmail.comjavascript: wrote: Em terça-feira, 11 de dezembro de 2012 19h11min56s UTC-2, Thomas Broyer escreveu: On Tuesday, December 11, 2012 8:45:22 PM UTC+1, Dmitry wrote: Hi, Do you know if there are any plans to release GWT 2.5.1 with IE10 support any time soon? 2.5.1 yes, but not with IE10 support. What would be required to add IE10 support? Maybe the community can step up to this. -- P. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/23pAAY_Dvo0J. To post to this group, send email to google-we...@googlegroups.comjavascript: . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com javascript:. 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 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: Regarding GWT with the upcoming Windows 8 and Internet Explorer 10
I am using the latest GWT version and it seems no IE10 support yet. Any plan update on it ? thanks a lot OrNot On Thursday, December 13, 2012 10:06:30 AM UTC+8, Goktug Gokdogan wrote: I'm not sure about timing but we will definitely add support for IE10. I expect most of the work to be about testing and working around behavior differences. Will let you know more, when we have a clear plan. On Wed, Dec 12, 2012 at 12:18 PM, Pedro Lamarão pedro@gmail.comjavascript: wrote: Em terça-feira, 11 de dezembro de 2012 19h11min56s UTC-2, Thomas Broyer escreveu: On Tuesday, December 11, 2012 8:45:22 PM UTC+1, Dmitry wrote: Hi, Do you know if there are any plans to release GWT 2.5.1 with IE10 support any time soon? 2.5.1 yes, but not with IE10 support. What would be required to add IE10 support? Maybe the community can step up to this. -- P. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/23pAAY_Dvo0J. To post to this group, send email to google-we...@googlegroups.comjavascript: . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com javascript:. 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 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 GWT's obfuscate compilation safe enough to protect the js code?
@Palo,G: Uemit is correct. There are many cases that need client computing and specific algorithms, for instance, image processing, especially for those which need prompt interactivity. You can not always push the data to the sever to process and then get the result back to show. In low bandwidth internet, that will bring the user to kill himself. At least till now, the GWT is commonly used for text-based applications, say ,information system. As the HTML5 comes into play, more and more canvas or webgl based web applications will be made by J.S.and most of them need intensive client computing.I believe the IP issue will become more and more important. Actually it is hard for me to understand why J.S., such a poor language, is becoming so popular. Sun,the stupid giant, made too many mistakes that let java , so great language, lose his position in internet era. In some sense, the GWT project is damn ironic,isn't? On Nov 8, 12:29 am, Uemit uemit.se...@gmail.com wrote: @Harpal Grover: Actually there might be a solution right now. You can use Native Client SDKhttp://code.google.com/chrome/nativeclient/to develop a C++/C application which runs in the browser. The application will be compiled to a binary and then transmitted to the client/browser where it is executed in a sandbox. It is still possible to use a Dis-assembler in order to figure out the algorithm however it is much harder than obfuscated javascript code. However until now NaCl is only supported in Chrome. -- 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-toolkit@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: Is GWT's obfuscate compilation safe enough to protect the js code?
OMG,it's a really sad news. Anyway, obfuscation can at least make the codes hard to readable and its reader must pay more efforts to recover the original codes somehow, doesn't it? Second question: Even the code can not be recovered, it still can be used arbitrarily by anybody as long as it is deployed on one server, right? On Nov 7, 5:23 pm, Jens jens.nehlme...@gmail.com wrote: You can't. To protect your code you have to use some RPC and implement the algorithms on server side. -- 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-toolkit@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: Is GWT's obfuscate compilation safe enough to protect the js code?
So,how can I protect my js code suppose for some reason I must put that algorithm to client side? -- 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-toolkit@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.
Is GWT's obfuscate compilation safe enough to protect the js code?
Hi, there, If I have some algorithms which are implemented with GWT and obfuscated to JS, is it safe enough to protect it from being hacked? Suppose no RPC is involved here? Regards OrNot -- 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-toolkit@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 HTTP does not support chunked Transfer-Encoding ?
Hello, The question seems asked before but never have a clear answer. Anybody has ideas? If support, how to decode it ? Thanks in advance. OrNot -- 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-toolkit@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: Web Workers in GWT
I get a workaround but no idea if it makes right sense. Create a JSNI factory method to by pass the GWT like this private final native short[] createShortArray(int length) /*-{ var dataArray= new Array(length); return dataArray; }-*/; Now in your GWT code, you can use it as below: short[] myShortArray=createShortArray(100); Now if you passMessage(myShortArray), it works. In your worker side , you need a method like this: public final native short[] getDataAsShortArray() /*-{ return this.data; }-*/; Anybody can kindly confirm it ? Thanks a lot. OrNot On Aug 7, 7:52 am, OrNOt ornot2...@gmail.com wrote: Hi, Christian, Yes,I have tried to modify the code to pass array. But it seems impossible. The reason is not from speed tracer part but from GWT internal implementation If I understand well. When you create a array in GWT like this : short[] dataArray = new short[100]; The GWT will translate it to a none native javascript array like this: this.m_shortArray = initDim(_3S_classLit, {22:1}, -1, 4, 1); Once you want to pass your dataArray, an exception will be thrown because of clone error. It seemsWebworkeronly supports native array clone. I have tried chrome and firefox and getting the same error. I don't know how to go further now. ;-( . Convert the array to string might be a solution but the performance will be bad for big array. OrNot On Aug 6, 2:01 am, cidylle0 cidyl...@gmail.com wrote: Hi OrNot, Yes please if you could help out and let me take a look at your project that would be great (cidyl...@gmail.com). Thanks a lot. As for passing a canvas image array it should be possible since it can be done in JavaScript. The postMessage method in the SpeedTracer code indeed does only have String and Double. Maybe you could modify the speedtracer MessageHandler class and add a method for array passing. Or would stringifying the canvas array be possible ? On Aug 4, 6:08 pm, OrNOt ornot2...@gmail.com wrote: Hi, Cidylle, I wrote one example based on speed tracer 'swebworkerand after some sort of struggling make it run. If you like , I can send the source code to you. It seems no place to attach file here? Regards. OrNot BTW: I also need your help if possible. I want to pass a canvas' image array from front thread toworker, in javascript, it seems easy by the event.data. But I don't know how to pass it in Speed Tracer 's implementation. If I understand right, it only passes string and double. On Aug 3, 8:56 am, cidylle0 cidyl...@gmail.com wrote: Chris, Thanks again for your pointers, they have been very helpful. Following your advice I believe I managed to set up the proper configuration and I feel I am very close to succeeding. So far I am simply trying to test the set up by sending a message from the main module to the worker, and have theworkersend back the message then display it in an alert window. As I attempt to do so with postMessage() methods I run into an error I cannot seem to correct: (workerbootstrap error : alert not defined ) Do you have any idea what that error could be ? I have the error whether i use simple strings or JSON objects in postMessage. I have ran a couple searches and looked into the wc3 specs but to no avail. Thank you. On Aug 2, 10:18 am, Chris Conroy con...@google.com wrote: Within SpeedTracer take a look at the BreakyWorkerinfrastructure (used to validate the schema of records SpeedTracer receives from Chrome): client/ui/src/com/google/speedtracer/... breaky/BreakyWorker.gwt.xml breaky/worker/BreakyWorker.java client/model/BreakyWorkerHost.java To get an idea of how all this stuff is wired up. TheWorkerHost lives in the normal GWT module side of things, and the BreakyWorker is a DedicatedWorkerEntryPoint responsible for initializing theworker. Since it's small, it also handles the handling of messages. The BreakyWorker.gwt.xml module pulls in our WebWorker definition and uses the DedicatedWorkerLinker. On Mon, Aug 1, 2011 at 7:58 PM, cidylle0 cidyl...@gmail.com wrote: Thank you for your input Chris. Yes I have been looking at the code included in Speedtracer but without documentation (and the fact that I am a novice GWT developer) I am having a difficult time figuring out how to the webworker is being set up and used in Speedtracer. There seems to be a module for the webworker with various classes representingworkerentry points but I am not sure which would to implement and in what context. In the xml files of the modules i did notice an add-linker ... tag which I am assuming points to the module that represents theworker. Again
Re: Web Workers in GWT
Hi, Christian, Yes,I have tried to modify the code to pass array. But it seems impossible. The reason is not from speed tracer part but from GWT internal implementation If I understand well. When you create a array in GWT like this : short[] dataArray = new short[100]; The GWT will translate it to a none native javascript array like this: this.m_shortArray = initDim(_3S_classLit, {22:1}, -1, 4, 1); Once you want to pass your dataArray, an exception will be thrown because of clone error. It seems Web worker only supports native array clone. I have tried chrome and firefox and getting the same error. I don't know how to go further now. ;-( . Convert the array to string might be a solution but the performance will be bad for big array. OrNot On Aug 6, 2:01 am, cidylle0 cidyl...@gmail.com wrote: Hi OrNot, Yes please if you could help out and let me take a look at your project that would be great (cidyl...@gmail.com). Thanks a lot. As for passing a canvas image array it should be possible since it can be done in JavaScript. The postMessage method in the SpeedTracer code indeed does only have String and Double. Maybe you could modify the speedtracer MessageHandler class and add a method for array passing. Or would stringifying the canvas array be possible ? On Aug 4, 6:08 pm, OrNOt ornot2...@gmail.com wrote: Hi, Cidylle, I wrote one example based on speed tracer 'swebworkerand after some sort of struggling make it run. If you like , I can send the source code to you. It seems no place to attach file here? Regards. OrNot BTW: I also need your help if possible. I want to pass a canvas' image array from front thread toworker, in javascript, it seems easy by the event.data. But I don't know how to pass it in Speed Tracer 's implementation. If I understand right, it only passes string and double. On Aug 3, 8:56 am, cidylle0 cidyl...@gmail.com wrote: Chris, Thanks again for your pointers, they have been very helpful. Following your advice I believe I managed to set up the proper configuration and I feel I am very close to succeeding. So far I am simply trying to test the set up by sending a message from the main module to the worker, and have theworkersend back the message then display it in an alert window. As I attempt to do so with postMessage() methods I run into an error I cannot seem to correct: (workerbootstrap error : alert not defined ) Do you have any idea what that error could be ? I have the error whether i use simple strings or JSON objects in postMessage. I have ran a couple searches and looked into the wc3 specs but to no avail. Thank you. On Aug 2, 10:18 am, Chris Conroy con...@google.com wrote: Within SpeedTracer take a look at the BreakyWorkerinfrastructure (used to validate the schema of records SpeedTracer receives from Chrome): client/ui/src/com/google/speedtracer/... breaky/BreakyWorker.gwt.xml breaky/worker/BreakyWorker.java client/model/BreakyWorkerHost.java To get an idea of how all this stuff is wired up. TheWorkerHost lives in the normal GWT module side of things, and the BreakyWorker is a DedicatedWorkerEntryPoint responsible for initializing theworker. Since it's small, it also handles the handling of messages. The BreakyWorker.gwt.xml module pulls in our WebWorker definition and uses the DedicatedWorkerLinker. On Mon, Aug 1, 2011 at 7:58 PM, cidylle0 cidyl...@gmail.com wrote: Thank you for your input Chris. Yes I have been looking at the code included in Speedtracer but without documentation (and the fact that I am a novice GWT developer) I am having a difficult time figuring out how to the webworker is being set up and used in Speedtracer. There seems to be a module for the webworker with various classes representingworkerentry points but I am not sure which would to implement and in what context. In the xml files of the modules i did notice an add-linker ... tag which I am assuming points to the module that represents theworker. Again, if anyone could provide a few basic steps to make a simplewebworker work in GWT I would greatly appreciate. On a general note, I am a bit surprised by the lack of support available forwebworkers in gwt, when there is support for other HTML5 features like local storage, canvas etc. Does anyone know why it is the case ? Are people not interested in using multi-threading in GWT or is GWT not a suitable tool for such an application ? On Aug 1, 3:54 pm, Chris Conroy con...@google.com wrote: You definitely don't want to use gears. You can take a look at how SpeedTracer uses WebWorkers via a custom DedicatedWebWorker linker: http://code.google.com/p/speedtracer/source/browse/#svn%2Ftrunk%2Fsrc... Note that you cannot reference $doc
Re: Web Workers in GWT
Hi, Cidylle, I wrote one example based on speed tracer 's web worker and after some sort of struggling make it run. If you like , I can send the source code to you. It seems no place to attach file here? Regards. OrNot BTW: I also need your help if possible. I want to pass a canvas' image array from front thread to worker, in javascript, it seems easy by the event.data. But I don't know how to pass it in Speed Tracer 's implementation. If I understand right, it only passes string and double. On Aug 3, 8:56 am, cidylle0 cidyl...@gmail.com wrote: Chris, Thanks again for your pointers, they have been very helpful. Following your advice I believe I managed to set up the proper configuration and I feel I am very close to succeeding. So far I am simply trying to test the set up by sending a message from the main module to the worker, and have the worker send back the message then display it in an alert window. As I attempt to do so with postMessage() methods I run into an error I cannot seem to correct: (worker bootstrap error : alert not defined ) Do you have any idea what that error could be ? I have the error whether i use simple strings or JSON objects in postMessage. I have ran a couple searches and looked into the wc3 specs but to no avail. Thank you. On Aug 2, 10:18 am, Chris Conroy con...@google.com wrote: Within SpeedTracer take a look at the Breaky Worker infrastructure (used to validate the schema of records SpeedTracer receives from Chrome): client/ui/src/com/google/speedtracer/... breaky/BreakyWorker.gwt.xml breaky/worker/BreakyWorker.java client/model/BreakyWorkerHost.java To get an idea of how all this stuff is wired up. The Worker Host lives in the normal GWT module side of things, and the BreakyWorker is a DedicatedWorkerEntryPoint responsible for initializing the worker. Since it's small, it also handles the handling of messages. The BreakyWorker.gwt.xml module pulls in our WebWorker definition and uses the DedicatedWorkerLinker. On Mon, Aug 1, 2011 at 7:58 PM, cidylle0 cidyl...@gmail.com wrote: Thank you for your input Chris. Yes I have been looking at the code included in Speedtracer but without documentation (and the fact that I am a novice GWT developer) I am having a difficult time figuring out how to the webworker is being set up and used in Speedtracer. There seems to be a module for the webworker with various classes representing worker entry points but I am not sure which would to implement and in what context. In the xml files of the modules i did notice an add-linker ... tag which I am assuming points to the module that represents the worker. Again, if anyone could provide a few basic steps to make a simple web worker work in GWT I would greatly appreciate. On a general note, I am a bit surprised by the lack of support available for web workers in gwt, when there is support for other HTML5 features like local storage, canvas etc. Does anyone know why it is the case ? Are people not interested in using multi-threading in GWT or is GWT not a suitable tool for such an application ? On Aug 1, 3:54 pm, Chris Conroy con...@google.com wrote: You definitely don't want to use gears. You can take a look at how SpeedTracer uses WebWorkers via a custom DedicatedWebWorker linker: http://code.google.com/p/speedtracer/source/browse/#svn%2Ftrunk%2Fsrc... Note that you cannot reference $doc or $wnd in the webworker. On Mon, Aug 1, 2011 at 6:37 PM, cidylle0 cidyl...@gmail.com wrote: Hi Allahbaksh. I did run accross the gwt-ns you mentioned but I am having trouble running the sample described. Can't seem to set it up right. The documentation is very minimal and the project seems to have been halted. Can anyone who has used web workers with GWT before help me out or point me out to some JAR or tutorial out there ? I found something called google Gears that seemed to have been doing something very similar (worker pool) but it has recently been deprecated. Any help would be appreciated. Thanks. On Aug 1, 5:02 am, Allahbaksh a.allahba...@gmail.com wrote: HI, Check gwt-ns project. I have personally not used it. Regards, Allahbaksh On Jul 30, 6:08 am, cidylle0 cidyl...@gmail.com wrote: Hello, I am currently playing around with GWT and I would like to implement some HTML5 features with it like web workers. In the GWT documentation I see that it supports a couple HTML5 features but no Web Workers. Are there any libraries out there that would implement web workers in GWT ? Or can anybody point me to a simple tutorial ? I would appreciate. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email
Anybody can kindly provide a example to use Speed tracer's Web Worker?
Hello, there, I want to use speed tracer's web worker in my project, but I can't find an example about it. Anybody can help me to write a very simple Hello world ? Thanks in advance. OrNot -- 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-toolkit@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.
JSNI badly slow in debug mode
Hi, There, I have a application which uses GWT's canvas to set the Image data color. For a picture, say, 500*500 pixels, the consumed overall invocation time in debug mode is totally unaccepted due to the doInvoke method in com.google.gwt.dev.shell.ModuleSpaceOOPHM class. The code snippet . TreeLogger branch = host.getLogger().branch(TreeLogger.SPAM, Invoke native method + name, null); Event javaToJsCallEvent = SpeedTracerLogger.start(DevModeEventType.JAVA_TO_JS_CALL); if (SpeedTracerLogger.jsniCallLoggingEnabled()) { javaToJsCallEvent.addData(name, name); } CompilingClassLoader isolatedClassLoader = getIsolatedClassLoader(); JsValueOOPHM jsthis = new JsValueOOPHM(); Class? jthisType = (jthis == null) ? Object.class : jthis.getClass(); JsValueGlue.set(jsthis, isolatedClassLoader, jthisType, jthis); branch.log(TreeLogger.SPAM, this= + jsthis); Can I bypass the log in debug mode ? Or any idea I can speed my debugging? Thanks in advance. OrNot -- 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-toolkit@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.
A newbie's question on the bufferedImage
Hi, there, I have a question on the bufferedImage. I know this class is from AWT. My question is if I can use it in the client code? If not, what the com.google.gwt.user.rebind.uiserves?This not a client code? I am confused somehow. Thanks for your helps. OrNot -- 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-toolkit@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.