Problem with dynamic tables
Hello, we have a big problem using GWT tables in combination with Internet Explorer 11. Our software is a form management system with which a user can create forms with a WYSIWYG editor. The systems uses GWT to render these forms within the browser. In some - more or less strange - circumstances, the Internet Explorer 11 causes problems with input fields in the table. Focussed input fields do not show the cursor and editing the content has no effect, sometimes the edited text is even written somewhere into the DOM. With GWT 2.5.1 the problem was much more present than with GWT 2.7. This leads to the assumption that something within GWT was changed (or even fixed) from 2.5.1 to 2.7 according to this problem. We are very perplexed by now and do not know how to tackle the problem furthermore. These are URLs to a form containing the problem as well in GWT 2.5.1 as in GWT 2.7.0. http://webtest.d-velop.de:8081/forms/anonymous/index.jsp?formId=7mcn1rajo6jhgib518oekmh79m&formVersion=1&docId=&logLevel=INFO (GWT 2.5.1 -> Problem) http://webtest.d-velop.de:8081/forms21gwt270/anonymous/index.jsp?formId=7mcn1rajo6jhgib518oekmh79m&formVersion=1&docId=&logLevel=INFO (GWT 2.7.0 -> STILL Problem) These are URLs to a form, in which the problem was solved from GWT 2.5.1 to GWT 2.7.0. http://webtest.d-velop.de:8081/forms/anonymous/index.jsp?formId=62uc4i4g2b3h2kj5r1qiea1art&formVersion=2 (GWT 2.5.1 -> Problem) http://webtest.d-velop.de:8081/forms21gwt270/anonymous/index.jsp?formId=62uc4i4g2b3h2kj5r1qiea1art&formVersion=2 (GWT 2.7.0 -> fixxed) Does anybody know this problem or even have an idea how to solve it? It is very difficult to reduce the example since the problem seems to depend on special (unknown) circumstances. We hope that the GWT tean did some explicit fixes for IE11 support which solved the problem, though not completely. We would be appreciate any helpful idea or advice. Thanks in advance! Greetz Carsten -- 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.
Problem with dynamic table
Hello, we have a big problem using GWT tables in combination with Internet Explorer 11. Our software is a form management system with which a user can create forms with a WYSIWYG editor. The systems uses GWT to render these forms within the browser. In some - more or less strange - circumstances, the Internet Explorer 11 causes problems with input fields in the table. Focussed input fields do not show the cursor and editing the content has no effect, sometimes the edited text is even written somewhere into the DOM. With GWT 2.5.1 the problem was much more present than with GWT 2.7. This leads to the assumption that something within GWT was changed (or even fixed) from 2.5.1 to 2.7 according to this problem. We are very perplexed by now and do not know how to tackle the problem furthermore. These are URLs to one form (with two different GWT versions) containing the problem as well in GWT 2.5.1 as in GWT 2.7.0. http://webtest.d-velop.de:8081/forms/anonymous/index.jsp?formId=7mcn1rajo6jhgib518oekmh79m&formVersion=1&docId=&logLevel=INFO (GWT 2.5.1 -> Problem) http://webtest.d-velop.de:8081/forms21gwt270/anonymous/index.jsp?formId=7mcn1rajo6jhgib518oekmh79m&formVersion=1&docId=&logLevel=INFO (GWT 2.7.0 -> STILL Problem) These are URLs to one form (with two different GWT versions), in which the problem was solved from GWT 2.5.1 to GWT 2.7.0. http://webtest.d-velop.de:8081/forms/anonymous/index.jsp?formId=62uc4i4g2b3h2kj5r1qiea1art&formVersion=2 (GWT 2.5.1 -> Problem) http://webtest.d-velop.de:8081/forms21gwt270/anonymous/index.jsp?formId=62uc4i4g2b3h2kj5r1qiea1art&formVersion=2 (GWT 2.7.0 -> fixxed) Does anybody know this problem or even have an idea how to solve it? It is very difficult to reduce the example since the problem seems to depend on special (unknown) circumstances. We hope that the GWT tean did some explicit fixes for IE11 support which solved the problem, though not completely. We would appreciate any helpful idea or advice. Thanks in advance! Greetz Carsten -- 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: Will ClientBundle work when I allow people to embed my app in their site?
Thanks. Very helpful. From what I am reading I guess the ExternalTextResource cannot switch to JSONP at runtime? I can test at runtime if the HTML host page domain is different from the Module domain and activate it at runtime. Maybe I will use ExternalTextResource then. I need to check first if it bundles all ExternalTextResource resources in a single file which I wouldn't like. Maybe I remember it incorrectly and it was TextResource which does the bundling. On Wednesday, June 27, 2012 11:08:59 AM UTC+2, Jens wrote: > > CssResource: works as its inlined into your JavaScript to avoid round trip > times. > > ImageResource: should work as you typically use it with GWT's @Sprite in > CSS or in combination with GWT's Image class. In both cases the image will > be loaded via CSS background-image: url() => no SOP. > > DataResource: With DataResource you only have DataResource.getUrl() to > access it. So it depends on yourself and how you load the url. If you load > it via XHR you have a SOP problem. But if its for example a custom mouse > cursor and you set the url to CSS cursor:url() its not a problem. > > TextResource: Are inlined into your JS and should work, but there is a max > limit in text size (see: TextResourceGenerator.MAX_STRING_CHUNK and its > JavaDoc). > > ExternalTextResource: Are loaded async (XHR) and wouldn't work but it > seems like there is a configuration property that tells GWT to load the > ExternalTextResource via JSONP (see: > ExternalTextResourceGenerator.USE_JSONP and its JavaDoc). So you would use > value="true" /> in your module.gwt.xml. > > > Also you should be able to test all this very easily by creating a mini > project only containing a ClientBundle and some code which uses it, compile > it and load it from a different domain. E.g. serve it from localhost and > access it from 127.0.0.1 or edit your systems hosts file and add some more > domain names for your local host, e.g. 127.0.0.1 localhost > test-domain1.com test-domain2.com. > > > -- J. > -- 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/-/MQfsBc7M0FgJ. 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: Will ClientBundle work when I allow people to embed my app in their site?
I was talking about ClientBundle, which means resources not embedded in and loaded by the website but dynamically loaded by the GWT app at runtime. ClientBundle has to use some mechanismn inside like XHR or JSONP or something when it turns data into ExternalTextResources or DataResources. I know the app will work if people take everything (the HTML host page, the full app and all the ClientBundle resources) and place them on their server. However I am interested in the case that people will embed just the bootstrap-JS file in their webpage. I know that apps fully work this way. What I have no experience in is if this app will work if it uses ClientBundle to load additional resources from app code. One would think ClientBundle JavaDocs would have a big warning that it fails if used this way, right? On Tuesday, June 26, 2012 5:57:11 PM UTC+2, Joseph Lust wrote: > > Carsten, > > I've not done this myself, but loading image, js, and text files should > not be a problem since SOP only limits XHR requests. However, if they have > an HTTPS site, and your content is not served from such a domain, they > would get warnings. > > Of course, you'd best setup a testbed to confirm this functionality before > building it out. > > Sincerely, > Joseph > -- 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/-/9sl1CZPYXgEJ. 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.
Will ClientBundle work when I allow people to embed my app in their site?
Hi, I plan to use ClientBundle to load resources into my GWT app. Once the app is finished I plan to allow people to embed the app (reference the js-file located on my server that will load everything else). I wondered if the resource loading will automagically keep working in spite of the Same Origin Problem? If it doesn't work, what else should I use? -- 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/-/f8hAi-N-O1YJ. 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: How far does the optimizations of the GWT compiler go..?
I haven't yet -- maybe I will. Strange that this problem is not fixed yet. On Sunday, June 24, 2012 4:20:28 PM UTC+2, Joseph Lust wrote: > > Carsten, > > Did you try compiling the SoycDashboard tool as detailed in the > docs<http://code.google.com/p/google-web-toolkit/wiki/CodeSplitting>? > I have not, but it sounds like it might be an alternative viewer for all > the XML files that are created, but not shown on the index html page. > > Sincerely, > Joseph > -- 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/-/Jxz0nNNDOKoJ. 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: How far does the optimizations of the GWT compiler go..?
I did. When I compile with -compileReport, at least the first link for Safari works. All other links do not. If I compile with -XsoycDetailed not even the first link is working. It creates all other files from the report though. On Saturday, June 23, 2012 9:18:04 PM UTC+2, Joseph Lust wrote: > > Thanks Jim. > > I starred it and commented on it. Anyone else affected should do the same. > > Sincerely, > Joseph > -- 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/-/oavQa7h_xogJ. 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: How far does the optimizations of the GWT compiler go..?
Thanks. I tried it. Strangely only soycReport/compile-report/CompilerMetrics-0-index.html is generated. For all the other browsers their files are missing. When I open soycReport/compile-report/index.html and click on one of the 'Compiler Metrics' links only the first (Safari) is functional. The rest of the links is not working since the following files are missing: CompilerMetrics-1-index.html CompilerMetrics-2-index.html CompilerMetrics-3-index.html CompilerMetrics-4-index.html CompilerMetrics-5-index.html Why aren't they generated? Thanks, Carsten On Thursday, June 21, 2012 11:15:43 PM UTC+2, Paul Stockley wrote: > > Story of your compile. Do a google search. > > On Thursday, June 21, 2012 4:59:09 PM UTC-4, Carsten wrote: >> >> Interesting. What means soyc? >> >> On Thursday, June 21, 2012 10:41:54 PM UTC+2, Paul Stockley wrote: >>> >>> Yes it will remove methods and classes that are not used. If you compile >>> with the option -compileReport it will generate a soyc report that shows >>> you all the code that is included in your project. >>> >>> On Thursday, June 21, 2012 4:17:53 PM UTC-4, Carsten wrote: >>>> >>>> Hi, >>>> >>>> I was wondering how well the GWT compiler is able to remove unused >>>> parts? Can it even remove methods and fields from a class which are never >>>> used? >>>> >>>> Example: >>>> >>>> VeryComplexObject vco = null; >>>> >>>> initVCO() { >>>> ... >>>> }; >>>> >>>> If initVCO is never called from my code, will the GWT compiler remove >>>> the method initVCO(), the field vco, or even the VeryComplexObject class >>>> itself? >>>> >>>> Can I somehow check what the GWT compiler removed and what not? Is >>>> there a log which lists removed parts? >>>> >>>> Thanks, >>>> Carsten >>>> >>> -- 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/-/fTHgTdfboxUJ. 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: How to best get data into a GWT app?
I've read that tutorial. It rather deals with getting data cross-site. My question is how do I get my hands on a Javascript-Object defined on the website from inside GWT? Once I have that object I can do the rest myself. On Friday, June 22, 2012 4:25:19 PM UTC+2, Dimitrijević Ivan wrote: > > You should use JSNI interface for that. > Check this out > https://developers.google.com/web-toolkit/doc/latest/tutorial/JSON#client > > > On Friday, June 22, 2012 1:34:32 PM UTC+2, Carsten wrote: >> >> Thanks. Reading the Dictionary JavaDoc I thought this is the solution. >> >> The problem is my JSON data string has an array with objects inside: >> >> var CurrentTheme = { >> highlightColor: "#FF", >> shadowColor: "#808080", >> data: [{}, {}, {}] >> }; >> >> >> calling dictionary.get("highlightColor") works great but when I want to >> get the string that makes up my data array it returns: [object >> Object],[object Object],[object Object], ... etc ... ] >> >> I guess I could work around this by escaping the data-array and thus turn >> it into a string. Or is there a better solution? >> >> I also need to add a module I >> otherwise do not use if I want to use Dictionary. >> >> I am wondering if there is perhaps some other way then Dictionary to >> easily get a simple JSON-string into GWT without importing another module, >> writing JSNI or escaping the JSON string? >> >> >> Thanks, >> Carsten >> >> On Friday, June 22, 2012 4:31:52 AM UTC+2, Joseph Lust wrote: >>> >>> One easy way would be to use the >>> Dictionary<http://google-web-toolkit.googlecode.com/svn/javadoc/1.4/com/google/gwt/i18n/client/Dictionary.html>object >>> in GWT if you just have and associative array of key/value pairs. >>> See the example code in the JavaDoc. >>> >>> Sincerely, >>> Joseph >>> >> -- 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/-/BmqIavg1ACoJ. 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: How to best get data into a GWT app?
Thanks. Reading the Dictionary JavaDoc I thought this is the solution. The problem is my JSON data string has an array with objects inside: var CurrentTheme = { highlightColor: "#FF", shadowColor: "#808080", data: [{}, {}, {}] }; calling dictionary.get("highlightColor") works great but when I want to get the string that makes up my data array it returns: [object Object],[object Object],[object Object], ... etc ... ] I guess I could work around this by escaping the data-array and thus turn it into a string. Or is there a better solution? I also need to add a module I otherwise do not use if I want to use Dictionary. I am wondering if there is perhaps some other way then Dictionary to easily get a simple JSON-string into GWT without importing another module, writing JSNI or escaping the JSON string? Thanks, Carsten On Friday, June 22, 2012 4:31:52 AM UTC+2, Joseph Lust wrote: > > One easy way would be to use the > Dictionary<http://google-web-toolkit.googlecode.com/svn/javadoc/1.4/com/google/gwt/i18n/client/Dictionary.html>object > in GWT if you just have and associative array of key/value pairs. > See the example code in the JavaDoc. > > Sincerely, > Joseph > -- 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/-/WQqON0B1jo4J. 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.
How to best get data into a GWT app?
Hi, I dynamically create a website that holds my GWT app. The GWT app needs some JSON data to be initialized. Depending on the link users clicked the website that holds the GWT app should start it with a different JSON data string. Since that data is in JSON format I would like to put the JSON data somehow unescaped in the website...this should be possible in a
Re: How far does the optimizations of the GWT compiler go..?
Interesting. What means soyc? On Thursday, June 21, 2012 10:41:54 PM UTC+2, Paul Stockley wrote: > > Yes it will remove methods and classes that are not used. If you compile > with the option -compileReport it will generate a soyc report that shows > you all the code that is included in your project. > > On Thursday, June 21, 2012 4:17:53 PM UTC-4, Carsten wrote: >> >> Hi, >> >> I was wondering how well the GWT compiler is able to remove unused parts? >> Can it even remove methods and fields from a class which are never used? >> >> Example: >> >> VeryComplexObject vco = null; >> >> initVCO() { >> ... >> }; >> >> If initVCO is never called from my code, will the GWT compiler remove the >> method initVCO(), the field vco, or even the VeryComplexObject class itself? >> >> Can I somehow check what the GWT compiler removed and what not? Is there >> a log which lists removed parts? >> >> Thanks, >> Carsten >> > -- 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/-/uLj8coL4aaQJ. 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.
How far does the optimizations of the GWT compiler go..?
Hi, I was wondering how well the GWT compiler is able to remove unused parts? Can it even remove methods and fields from a class which are never used? Example: VeryComplexObject vco = null; initVCO() { ... }; If initVCO is never called from my code, will the GWT compiler remove the method initVCO(), the field vco, or even the VeryComplexObject class itself? Can I somehow check what the GWT compiler removed and what not? Is there a log which lists removed parts? Thanks, Carsten -- 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/-/y--NLNmLF8wJ. 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 cross-site request without JSNI..?
Hi, is it possible to do a cross-site request with very little JSNI or none at all? I am a beginner and followed this tutorial: https://developers.google.com/web-toolkit/doc/latest/tutorial/Xsite Is it possible to do the same without ever writing native JS code? Cheers, Carsten -- 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/-/uvNMGWyQryMJ. 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: Same Origin Problem despite using xsiframe linker?
So, Server1 only has the Host-HTML file and Server2 can have everything else? Even resources that are loaded by the GWT app like images, fonts, data-input-files? Or can Server2 only hold the .js files that are loaded by the Host-HTML and nothing else without violating SOP? On Sunday, June 17, 2012 3:28:58 AM UTC+2, Thomas Broyer wrote: > > > > On Saturday, June 16, 2012 10:24:01 PM UTC+2, Carsten wrote: >> >> So let me reiterate if I got it. Before xsiframe one had to place the >> Host Html and the GWT app and all resources used by the GWT app on the same >> server/domain (a.k.a. origin). >> >> With xsiframe you can place the GWT app and all its resources (including >> the file I tried to GET above) on a server but place the Host HTML on a >> different server, correct? >> > > Yes. > > So what is possible with this setup? >> >> Server1: just the Host HTML >> Server2: the GWT app + all resources >> >> a) can I somehow allow Server1 to somehow hand some initializing data to >> the GWT app? Let's say the GWT app is some sort of viewer/canvas/renderer >> and I can allow people to include it in their website and give some JSON to >> the GWT app when it is started? >> > > Initialize some global JS variable and read it from the script (GWT app) > at startup. > Alternately, put attributes on some element (with a specific id="" or > class=""), that the script will read. This is how Google +1 button, Twitter > button and Facebook Like button work, for instance. > > >> b) let's say Server1 with the Host HTML is on Appengine. Can the GWT app >> from Server2 when run from the Host HTML from Server1 POST a JSON string to >> a URL of the Server1 (which will ultimately be handled by appengine)? > > > Yes. The script files come from Server2, but they run in the HTML host > page from Server1, so they technically "are from Server1" as far as SOP is > concerned. > To talk to Server2, you can take advantage of CORS in browsers that > support it (all but IE –IE10 will support CORS, IE8 and IE9 support it > through a special XDomainRequest, that GWT doesn't use– and Opera up to the > latest –Opera 12 finally support CORS–), use JSON-P (JsonpRequestBuilder in > GWT), post data through forms (FormPanel in GWT, but the response needs to > redirect to some page at Server1 to communicate results), or go through a > "proxy" at Server1 (i.e. call Server1, which will call Server2 and send the > response back). > -- 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/-/L-cDpBdmlLcJ. 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: Same Origin Problem despite using xsiframe linker?
So let me reiterate if I got it. Before xsiframe one had to place the Host Html and the GWT app and all resources used by the GWT app on the same server/domain (a.k.a. origin). With xsiframe you can place the GWT app and all its resources (including the file I tried to GET above) on a server but place the Host HTML on a different server, correct? So what is possible with this setup? Server1: just the Host HTML Server2: the GWT app + all resources a) can I somehow allow Server1 to somehow hand some initializing data to the GWT app? Let's say the GWT app is some sort of viewer/canvas/renderer and I can allow people to include it in their website and give some JSON to the GWT app when it is started? b) let's say Server1 with the Host HTML is on Appengine. Can the GWT app from Server2 when run from the Host HTML from Server1 POST a JSON string to a URL of the Server1 (which will ultimately be handled by appengine)? Cheers, Carsten On Saturday, June 16, 2012 5:56:40 PM UTC+2, Thomas Broyer wrote: > > > > On Saturday, June 16, 2012 4:39:21 PM UTC+2, Carsten wrote: >> >> Hi, >> >> I run my GWT app in dev and production mode and try to GET a file from a >> remote Server. In dev-mode it doesn't throw an error but returns a String >> (response.getText()) of size 0. >> >> In production mode the JS console shows an error: >> >> XMLHttpRequest cannot load >> http://mydomain.com/files/example.txt<http://genflux.de/fonts/unmod/luna.ttf>. >> >> Origin http://127.0.0.1: <http://127.0.0.1/> is not allowed by >> Access-Control-Allow-Origin. >> >> I thought the xsiframe-linker resolves any such problems?! >> > > The xsiframe linker only allows you to load your app (*.nocache.js) file > from another origin (imagine you'd do a "+1 Button" yourself, people will > load it from your server, cross-origin), it won't magically allow you to > violate the browsers security policies. > -- 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/-/mnu6vLQqhicJ. 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.
Binary files again - how do I get them in GWT?
Hi, so far I worked around the problem whenever I had a binary file I needed in GWT. Usually I converted the binary files to something like XML. Now I cannot. I have a closed-source lib that accepts only byte[] (and InputStreams) and returns a POJO. It does some very complex conversion and also the binary format is not available. It is a very specialized area I am working in/on. Everything works perfect in GWT as long as I hard-code the data in form of a byte[] in my .java file which has a 64k restriction -- so I couldn't really do this for every of my input-files since they are 20k-200k in size. Also it would be insane to hardcode them in .java files and then compile them to JS. So yes, I need a way to load those binary files into my GWT app. The GWT app resides on server1/domain1 the binary date resides on server2/domain2 (I think that's no problem since cross-site linking?). Any idea how to solve this? I should add that I cannot touch server2/domain2. I can perhaps ask them to change some settings, but I cannot deploy some servlet there which serves the binary files with base64 encoding. If it is possible to tell the server to serve certain files in base64 encoding it may be possible to do that though. I would love to make this app in GWT since I already had a lot of progress. I thought I care about the data-problem at the end but it seems I hit a wall :( Thanks, Carsten -- 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/-/E3_mhnuXemUJ. 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: Read in binary file into byte[] ?
Well, it is a binary file with point/spline-data. I need to construct eventually Path objects out of this data and draw it on a canvas. A byte[] would be the perfect data structure to hold this data. On May 23, 3:26 pm, Sebastian Gurin wrote: > in general you don't use byte[] or the bynary content of a file directly in > the client side, unless you are making something *really special* like > implementing image filters using html canvas or somthing like that. What are > you trying to do or better, why do you have to read a file into a byte[] in > the client side? > > On Wed, 23 May 2012 08:30:25 -0700 (PDT) > > > > > > > > > > Carsten wrote: > > I think I should have been more clear. I don't want to load a file > > from the users computer. I want to read a file from the directory on > > the server where my GWT app lives. I just want to know the options I > > have to read this binary file into a byte[]. I am very new with GWT :) > > > On May 23, 4:53 am, Jim Douglas wrote: > > > Not in GWT proper, and not reliably in all browsers. Start your > > > reading here: > > > >http://www.google.com/search?q=javascript+file+api > > > > On May 22, 12:42 pm, Carsten wrote: > > > > > Hi, > > > > > is it possible to read in a binary file in my GWT Java-code and > > > > convert it into a byte[] ? > > > > > Thanks! > > > > Carsten > > > -- > > 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 > > athttp://groups.google.com/group/google-web-toolkit?hl=en. > > -- > Sebastian Gurin -- 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: Read in binary file into byte[] ?
I think I should have been more clear. I don't want to load a file from the users computer. I want to read a file from the directory on the server where my GWT app lives. I just want to know the options I have to read this binary file into a byte[]. I am very new with GWT :) On May 23, 4:53 am, Jim Douglas wrote: > Not in GWT proper, and not reliably in all browsers. Start your > reading here: > > http://www.google.com/search?q=javascript+file+api > > On May 22, 12:42 pm, Carsten wrote: > > > > > > > > > Hi, > > > is it possible to read in a binary file in my GWT Java-code and > > convert it into a byte[] ? > > > Thanks! > > Carsten -- 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.
Read in binary file into byte[] ?
Hi, is it possible to read in a binary file in my GWT Java-code and convert it into a byte[] ? Thanks! Carsten -- 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: Take snapshot from Canvas and save it to disk or upload to server..?
Sorry...I was too unspecific. I am drawing on a small canvas. Mainly shapes. When I say I want to take a snapshot, I want to be able to get a 'snapshot' at any resolution. In theory I would need to resize everything...canvas, shapes, etc. and redraw everything. Is there a simpler solution? On Apr 16, 8:25 am, Thomas Broyer wrote: > This is what toDataUrl and getImageData are for. -- 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.
How does the GWT developer plugin work..?
Hi, when I run GWT apps in dev mode I see them in the browser (using the dev mode plugin). Can somebody give some details how this works and what exactly is running in the browser? Obviously the Java code is not converted to JS at that stage, right? Or are the JVM-class files somehow interpreted in real-time into Javascript and the result somehow sent to the browser? Maybe that is the reason it is so much slower then the same app converted to JS? Any idea what is going on? Thanks, Carsten -- 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.
Take snapshot from Canvas and save it to disk or upload to server..?
Hi, can I somehow take a snapshot from what I drew on a Canvas and save it to disk (make browser to pop up save image dialog) or upload it to some server? Thanks, Carsten -- 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.
Can I do this with GWT..?
I am a beginner and try to find out if what I want to do is possible with GWT and how one should do it: 1. load a font and render words (possibly rotated) on the screen 2. animate drawn objects like words, e.g. make them 'fly' from one side of the screen to the other. 3. do transformation operations on 'shapes', like translation, rotation, scale. Maybe somebody knows GWT apps which are capable of some of the features I mentioned above? What would you use to load fonts, render words on the screen, rotate words and render them and do animations? HTML5 Canvas? CSS animations? This are only keywords I found using Google but I don't know how it will look in action and what is possible or not. A few links to web apps that are capable of the features I mentioned above (build on GWT or possible to build with GWT) would be really helpful Thanks, Carsten -- 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.
Stuck or cancelled ?
Hello, it seems you're a little bit stuck, or maybe cancelled your project ?! Eventually you really should split your work into two projects, i think nearly everyone is waiting for the php server solution, please share it with the world. Good luck, CRO --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---