Re: loading an image
thats a good point (i am using a relative url). i will look into it - thx! -- 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/-/1JlxwlqDgPIJ. 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 is Math.Random emulated? and how good is it?
I have been playing about drawing fractals in GWT using canvas and the ¨ chaos game¨ method. However when picking large amounts of random numbers I seem to be getting a bias. That is, the randomness doesn't seem evenly distributed. I have read many sources online that say that Javas normal Math.Random() is flawed for this stuff, and some alternatives are offered. However as GWTś Math.Random is merely an emulation, I wondered if it suffered the same flaws or not. Does anyone use alternative methods? This is all rather new too me, so if anyone has any pointers it would be helpfull. -- 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: GWT cross-domain requests works in Chrome/FF, fail in IE/Opera
I dont know about IE, but try Opera12 as cross-domain support via CORS was only added on that version. On Jan 10, 8:23 pm, ussuri michael.glas...@gmail.com wrote: Hello! I serve my gwt-based app from Google AppEngine from myapp.appspot.com - both the script (GWT) and data (XMLHTTPRequest POSTs). If I open https://myapp.appspot.com/app.html, everything works perfectly in all modern browsers. However, I want to serve the .html page from my custom domain in order to use SSL:https://mydomain.com/app.html I modified app.html to include script from appspot; I use a div and do RootPanel.get(my_div). I hard-coded appspot URLs for POSTs. This solution works perfectly in Chrome and Firefox with add-linker name=xsiframe/ (or xs) - I open an HTTPS URL from my custom domain, it loads GWT via https from appspot.com, and do AJAX communication (not GWT-RPC, but pure ajax) with my appspot.com app via ssl/https. BUT, in IE and Opera the page opens, GWT renders the content in the page, but AJAX requests fails with XS-origin errors: com.google.gwt.http.client.RequestPermissionException: The URL https://***.appspot.com/*** is invalid or violates the same-origin security restriction I do set Access-Control-XXX headers in my servlet (java), and I tried to set X-XSS-Protection to 0 in my custom domain, but still IE and Opera do not let me query to appspot. What can I do to let IE at least to allow posting to appspot.com? Thanks, MG -- 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: Efficient code splitting in a large application?
Jens, Do we have any indication when GWT 2.5 might be released (or at least RC) ? Kris -- 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/-/6Y78VZom-_gJ. 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: loading an image
As assumed you were right: the called image url is somthing like this /imageRetriever?[some Parameters] (its a simple HttpServlet). So in hosted and webmode if i add /imageRetirever... to Url in Browser the Image is displayed fine. But as you said in WebMod the Url contains a myProject-Part. But how to fix this? -- 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/-/nH5YtSckyaUJ. 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: GWT cross-domain requests works in Chrome/FF, fail in IE/Opera
Hi darkflame, As you see, all browsers don't support cross-domain scripting. The good practice is to avoid cross-domain scripting. Why ? Because for the moment, it's a W3C draft and not yet implemented by browsers all implementors. http://www.w3.org/TR/access-control/ So, your application might not work on any browser, because you don't know if your application user use a compatible browser. But, there is an issue : If you need data from another domain, let request the data from server side, then transmit the data back to the client. CLIENT -- server your app - other domain There is a lot of library ( apache client HTTP, Google, REST, etc) you can use to do that. In my opinion, cross domain scripting is a real security problem. I hope it helps. Regards. Karim Duran 2012/1/11 darkflame darkfl...@gmail.com: I dont know about IE, but try Opera12 as cross-domain support via CORS was only added on that version. On Jan 10, 8:23 pm, ussuri michael.glas...@gmail.com wrote: Hello! I serve my gwt-based app from Google AppEngine from myapp.appspot.com - both the script (GWT) and data (XMLHTTPRequest POSTs). If I open https://myapp.appspot.com/app.html, everything works perfectly in all modern browsers. However, I want to serve the .html page from my custom domain in order to use SSL:https://mydomain.com/app.html I modified app.html to include script from appspot; I use a div and do RootPanel.get(my_div). I hard-coded appspot URLs for POSTs. This solution works perfectly in Chrome and Firefox with add-linker name=xsiframe/ (or xs) - I open an HTTPS URL from my custom domain, it loads GWT via https from appspot.com, and do AJAX communication (not GWT-RPC, but pure ajax) with my appspot.com app via ssl/https. BUT, in IE and Opera the page opens, GWT renders the content in the page, but AJAX requests fails with XS-origin errors: com.google.gwt.http.client.RequestPermissionException: The URL https://***.appspot.com/*** is invalid or violates the same-origin security restriction I do set Access-Control-XXX headers in my servlet (java), and I tried to set X-XSS-Protection to 0 in my custom domain, but still IE and Opera do not let me query to appspot. What can I do to let IE at least to allow posting to appspot.com? Thanks, MG -- 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. -- 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: Efficient code splitting in a large application?
There is no official release schedule or something similar. You can only try to guess it yourself by: - following the open issues for a given milestone on the issue tracker: http://code.google.com/p/google-web-toolkit/issues/list?can=2q=milestone%3A2_5sort=statuscolspec=ID+Type+Status+Owner+Milestone+Summary+Starscells=tiles - following GWT code reviews: http://gwt-code-reviews.appspot.com/ - following the Google Web Toolkit Contributors group -- 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/-/rNsMJOX8QTUJ. 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: what version does the firefox development extendion suppot?
See https://groups.google.com/d/topic/google-web-toolkit/jZ02n9v9-H4/discussion (and yet again wahaha, it would have been faster for everyone if you simply searched for firefox in the group) -- 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/-/YJ3_qFYddyIJ. 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: Efficient code splitting in a large application?
See http://code.google.com/p/google-web-toolkit/issues/detail?id=7106#c2 -- 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/-/5G8E1boUhX0J. 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.
Cache.html Error
Hello All, When I run my gwt application on android, I get Application Error : sometime.cache.html. How to debug cache.html files ? How do I know from the cache files were this error ? Thanks in advance, Shrekjo -- 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: How is Math.Random emulated? and how good is it?
All GWT's emulation does is natively call the javascript Math.random(). On Jan 11, 3:02 am, darkflame darkfl...@gmail.com wrote: I have been playing about drawing fractals in GWT using canvas and the ¨ chaos game¨ method. However when picking large amounts of random numbers I seem to be getting a bias. That is, the randomness doesn't seem evenly distributed. I have read many sources online that say that Javas normal Math.Random() is flawed for this stuff, and some alternatives are offered. However as GWTś Math.Random is merely an emulation, I wondered if it suffered the same flaws or not. Does anyone use alternative methods? This is all rather new too me, so if anyone has any pointers it would be helpfull. -- 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: GWT application freezes when new version is deployed while using it
We've gone Thomas's original suggest route of informing the user. But in our original pass at this, we threw up a dialog with an OK button on it. It said something to the effect of There's a new version. Please log in again. Clicking OK is intended to log the user out and forcibly refresh the page. What we're finding is that for the code-splitting case, the dialog does indeed come up but the whole page becomes unresponsive afterward. That is, you can't click the OK button. I've verified that this happens regardless of whether we put a dialog up or not. Nothing on the page is clickable at all. Wondering if this is what others see as well and if so, if there's a way around it. -- 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/-/8IbXXMj1RnoJ. 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: Abridged summary of google-web-toolkit@googlegroups.com - 37 Messages in 22 Topics
On Wed, Jan 11, 2012 at 2:57 PM, google-web-toolkit@googlegroups.comwrote: Today's Topic Summary Group: http://groups.google.com/group/google-web-toolkit/topics - How is Math.Random emulated? and how good is it?#134cd0f3dd018052_group_thread_0[2 Updates] - Cache.html Error #134cd0f3dd018052_group_thread_1 [1 Update] - Efficient code splitting in a large application?#134cd0f3dd018052_group_thread_2[5 Updates] - what version does the firefox development extendion suppot?#134cd0f3dd018052_group_thread_3[3 Updates] - GWT cross-domain requests works in Chrome/FF, fail in IE/Opera#134cd0f3dd018052_group_thread_4[3 Updates] - loading an image #134cd0f3dd018052_group_thread_5 [3 Updates] - Handling styles application wide? #134cd0f3dd018052_group_thread_6[2 Updates] - making application crawlable, front-end is gwt and back-end is php#134cd0f3dd018052_group_thread_7[1 Update] - How to place a pushButton and a clickable Image into a row of a DataGrid? #134cd0f3dd018052_group_thread_8 [1 Update] - How to catch browser Refresh event #134cd0f3dd018052_group_thread_9[1 Update] - Cancel my account #134cd0f3dd018052_group_thread_10 [1 Update] - Gwt Console in JBPM #134cd0f3dd018052_group_thread_11 [1 Update] - Best VPN for Linux based GWT development#134cd0f3dd018052_group_thread_12[1 Update] - ui:style example doesn't work #134cd0f3dd018052_group_thread_13 [2 Updates] - setting a single object in data Grid?#134cd0f3dd018052_group_thread_14[1 Update] - DatePicker : clear all styles #134cd0f3dd018052_group_thread_15 [1 Update] - Using RequestFactory interfaces on the server#134cd0f3dd018052_group_thread_16[2 Updates] - Abridged summary of google-web-toolkit@googlegroups.com - 41 Messages in 22 Topics #134cd0f3dd018052_group_thread_17 [2 Updates] - Swipe gesture handler #134cd0f3dd018052_group_thread_18 [1 Update] - GWT communication with REST #134cd0f3dd018052_group_thread_19 [1 Update] - GWT client static variable versus Server side Session object#134cd0f3dd018052_group_thread_20[1 Update] - Activities and Place design wizard#134cd0f3dd018052_group_thread_21[1 Update] How is Math.Random emulated? and how good is it?http://groups.google.com/group/google-web-toolkit/t/73465acdfefc048e darkflame darkfl...@gmail.com Jan 11 01:02AM -0800 I have been playing about drawing fractals in GWT using canvas and the ¨ chaos game¨ method. However when picking large amounts of random numbers I seem to be getting a bias. That is, the ...more Kevin Jordan ke...@kjordan.net Jan 11 05:19AM -0800 All GWT's emulation does is natively call the javascript Math.random(). ...more Cache.html Errorhttp://groups.google.com/group/google-web-toolkit/t/611a9d4361d141dd shrekjo snehajonn...@gmail.com Jan 11 04:40AM -0800 Hello All, When I run my gwt application on android, I get Application Error : sometime.cache.html. How to debug cache.html files ? How do I know from the cache files were this error ? ...more Efficient code splitting in a large application?http://groups.google.com/group/google-web-toolkit/t/652edb43f0c2b905 RickL lochne...@gmail.com Jan 10 07:53AM -0800 I spent over a week trying to come up with a solution to the large left-overs fragment problem (I am using plain-vanilla gwt, not gxt). In my opinion, this problem makes code-splitting as ...more Jens jens.nehlme...@gmail.com Jan 10 08:42AM -0800 There is already a new code splitting algorithm in development that tries to conter this problem by merging split points that share a good amount of code and thus making this shared code ...more kretel krzysztof.re...@gmail.com Jan 11 01:39AM -0800 Jens, Do we have any indication when GWT 2.5 might be released (or at least RC) ? Kris ...more Jens jens.nehlme...@gmail.com Jan 11 02:03AM -0800 There is no official release schedule or something similar. You can only try to guess it yourself by: - following the open issues for a given milestone on the issue tracker: ...more Thomas Broyer t.bro...@gmail.com Jan 11 02:52AM -0800 See http://code.google.com/p/google-web-toolkit/issues/detail?id=7106#c2 ...more what version does the firefox development extendion suppot?http://groups.google.com/group/google-web-toolkit/t/bb703e66e3cfdcb2 wahaha il...@yahoo.com.cn Jan 10 07:54PM -0800 does the extension support firefox 9? ...more Thomas Klöber kloe...@ics.de Jan 11 08:18AM +0100 Am 11.01.2012 04:54, schrieb wahaha: does the extension support firefox 9? yes, it does -- Intelligent Communication Software Vertriebs GmbH Firmensitz: Kistlerhof Str. 111, 81379 München ...more Thomas Broyer t.bro...@gmail.com Jan 11 02:48AM -0800 See
Re: Efficient code splitting in a large application?
Thank you very much for the good news, Jens and Thomas. I had already limited my code splitting to trying to minimize the initial login page load. The work you describe sounds like it will go a long way toward making this much more practicable. Now, if there was only an out-of-the-box manifest generating linker and user-agent aware servlet that served the correct manifest for a particular user-agent... ;-) On Jan 11, 4:52 am, Thomas Broyer t.bro...@gmail.com wrote: Seehttp://code.google.com/p/google-web-toolkit/issues/detail?id=7106#c2 -- 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: How is Math.Random emulated? and how good is it?
java.lang.Math.random() calls the native javascript Math.random(). However, java.util.Random implements the random number algorithm specified in the spec for that class - you can try using that if java.lang.Math.random() is not random enough On Jan 11, 6:19 am, Kevin Jordan ke...@kjordan.net wrote: All GWT's emulation does is natively call the javascript Math.random(). On Jan 11, 3:02 am, darkflame darkfl...@gmail.com wrote: I have been playing about drawing fractals in GWT using canvas and the ¨ chaos game¨ method. However when picking large amounts of random numbers I seem to be getting a bias. That is, the randomness doesn't seem evenly distributed. I have read many sources online that say that Javas normal Math.Random() is flawed for this stuff, and some alternatives are offered. However as GWTś Math.Random is merely an emulation, I wondered if it suffered the same flaws or not. Does anyone use alternative methods? This is all rather new too me, so if anyone has any pointers it would be helpfull. -- 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: loading an image
GWT.getHostPageURL()+imageRetriever Javadocs suggest using getModuleBaseURL() instead of getHostPageURL(), so that would be GWT.getModuleBaseURL()+../imageRetriever, but in the absence of cross-site loading, I don't think it makes much difference. Derek On Jan 11, 4:51 am, tanteanni tantea...@hotmail.com wrote: As assumed you were right: the called image url is somthing like this /imageRetriever?[some Parameters] (its a simple HttpServlet). So in hosted and webmode if i add /imageRetirever... to Url in Browser the Image is displayed fine. But as you said in WebMod the Url contains a myProject-Part. But how to fix this? -- 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: GWT cross-domain requests works in Chrome/FF, fail in IE/Opera
OK, I figured it out with IE - their XDomainRequest object (http:// msdn.microsoft.com/en-us/library/cc288060(v=vs.85).aspx) supports CORS. And if Opera is going to support it in Opera 12, all major browsers are covered. On Jan 11, 4:05 am, darkflame darkfl...@gmail.com wrote: I dont know about IE, but try Opera12 as cross-domain support via CORS was only added on that version. On Jan 10, 8:23 pm, ussuri michael.glas...@gmail.com wrote: Hello! I serve my gwt-based app from Google AppEngine from myapp.appspot.com - both the script (GWT) and data (XMLHTTPRequest POSTs). If I open https://myapp.appspot.com/app.html, everything works perfectly in all modern browsers. However, I want to serve the .html page from my custom domain in order to use SSL:https://mydomain.com/app.html I modified app.html to include script from appspot; I use a div and do RootPanel.get(my_div). I hard-coded appspot URLs for POSTs. This solution works perfectly in Chrome and Firefox with add-linker name=xsiframe/ (or xs) - I open an HTTPS URL from my custom domain, it loads GWT via https from appspot.com, and do AJAX communication (not GWT-RPC, but pure ajax) with my appspot.com app via ssl/https. BUT, in IE and Opera the page opens, GWT renders the content in the page, but AJAX requests fails with XS-origin errors: com.google.gwt.http.client.RequestPermissionException: The URL https://***.appspot.com/*** is invalid or violates the same-origin security restriction I do set Access-Control-XXX headers in my servlet (java), and I tried to set X-XSS-Protection to 0 in my custom domain, but still IE and Opera do not let me query to appspot. What can I do to let IE at least to allow posting to appspot.com? Thanks, MG -- 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 tell JsonpRequestBuilder to accept gzip/deflate encoding?
Dear all, I am doing JSONP requests using JsonpRequestBuilder and observe that it does not send any header like Accept-Encoding:gzip, deflate to the server to allow compression of the JSON payload. Is there a way to enable compression? Best, Kaspar -- 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 can i access gmail username into my application
hi, i am developing one project. Here i gave registration module. that username it should be same as gmail account name. (ex.pandy.k0...@gmail.com). If that username don't match gmail account name means it's redirected to gmail registration page will be open. after completion of registration it will come to again my application. i havn't idea about that, how can i check gmail account username with my application user name... pl give sample code. how i implement that tool into my application.? by, pandy.k DEAS Technology pandy.k0...@gmail.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-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: Can I tell JsonpRequestBuilder to accept gzip/deflate encoding?
JSON-P works by dynamically injecting a script element in your page to load some JavaScript (yes, no JSON here, despite the name). The browser is responsible for making the request, there's nothing you can do to make it behave in one way or another. -- 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/-/SkcSpeh23ZcJ. 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 set width of TabLayoutPanel's tab bar?
Hi, I'm using GWT 2.4. How do I set properties of the TabLayoutPanel's tab bar? Specifically, I want to set the property BIG_ENOUGH_TO_WRAP, which instructs the tab bar to wrap tabs if the combined width of the tabs exceeds the tab bar's viewable area. Thanks, - Dave -- 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: How is Math.Random emulated? and how good is it?
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/super/com/google/gwt/emul/java/lang/Math.java public static native double random() /*-{ return Math.random(); }-*/; http://stackoverflow.com/questions/1062902/how-random-is-javascripts-math-random On Jan 11, 1:02 am, darkflame darkfl...@gmail.com wrote: I have been playing about drawing fractals in GWT using canvas and the ¨ chaos game¨ method. However when picking large amounts of random numbers I seem to be getting a bias. That is, the randomness doesn't seem evenly distributed. I have read many sources online that say that Javas normal Math.Random() is flawed for this stuff, and some alternatives are offered. However as GWTś Math.Random is merely an emulation, I wondered if it suffered the same flaws or not. Does anyone use alternative methods? This is all rather new too me, so if anyone has any pointers it would be helpfull. -- 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: Handling styles application wide?
Ashwin, Thanks for the reply. We were doing this, to an extent. I just didn't think about putting the celltable style class in the ClientBundle. It works, BUT, is it possible to put the CSS for the entire app in one CSS (not sure if this is entirely desirable right now). For example, here is what the ClientBundle now looks like. public interface MyAppResources extends ClientBundle { public static final MyAppResources INSTANCE = GWT.create( MyAppResources.class ); @Source( com/myapp/home.png ) public ImageResource home(); @Source( com/myapp/myapp.css ) @CssResource.NotStrict public MyAppStyles css(); public interface MyViewTableCss extends CellTable.Resources { @Source({CellTable.Style.DEFAULT_CSS, com/myapp/resources/ MyViewTable.css}) TableStyle cellTableStyle(); interface TableStyle extends CellTable.Style {} } } As we create more CellTable with different styles, we will end up with a CSS file for each. It would be nice if they could be combined into one. Also, can WindowBuilder be integrated with ClientBundle so that styles from the ClientBundle would appear as selectable in WindowBuilder? On Jan 10, 11:21 pm, Ashwin Desikan ashwin.desi...@gmail.com wrote: The best approach would be to use ClientBundle http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html This would allow you to combine all your resources including TableResources, Application Images, Custom Styles etc. Make it a practise to use the styles defined in your external stylesheets across the application and your maintenance would become relatively easier. ~Ashwin On Wednesday 11 January 2012 09:53:38 AM IST, Mike Dee wrote: What is a good ways to consistently handle styles application side? I'm working on an app that has CellTables and widgets and HTML. For CellTables we use CellTable.Resources to store CSS. For widgets, we use uibinder withui:style for HTML we use external stylesheets. Is there a good strategy for putting all style info in one place? -- 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 to find the path to image resources
hi, i have a maven gwt project, no exception all the images are stored under 'src/main/webapp/img', then in the package : 'com.mycom.myapp.client' i have Resources.java which defines all images/text/css resources for the whole project as below: public interface Resources extends ClientBundle { final static String IMG_ROOT_PATH = src/main/webapp/img/; Resources INSTANCE = GWT.create(Resources.class); @Source(IMG_ROOT_PATH + logo.png) ImageResource logo(); } however when i complied it complaint cannot find that image. how should i specify the path here? 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-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\GAE With Java Video Course Need Urgently
Hi : am Really in a bad need of GWT\GAE with Java Video Course Links So please if any one could even help i would be so grateful for him/her and thanks previously for every thing :) -- 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/-/6CGXbyh8OdoJ. 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: GWT Developer Plugin for Firefox 9
Can someone help me out? When I try to download the plugin the page refreshes, but I never see a download and I can't find the file. If someone can send me the file that would also be great. Thanks -- 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/-/PQE-zHs6IasJ. 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.
Having trouble calling a function in a separate Javascript file in GWT
I'm trying to create an example app to demonstrate that GWT can use existing Javascript functions, but so far I've been unable to get it to work correctly. I've named my project JS_Integration_Example and I created it from the default Web Application Starter Project that is provided when you create a new GWT project in eclipse. I'd really appreciate anyone who could point out what my problem is. I've done some Googling on this subject but so far haven't found any specific examples showing exactly where to put the js file and what to add to the gwt.xml file. I've create a file named general.js that contains the following js function function helloWorld(){ return Hello World; } I call the function from JS_Integration_Example.java by using the following JSNI method /** Java Script Via JSNI */ public native String helloWorld2()/*-{ return $wnd.helloWorld(); }-*/; I placed general.js in a folder named scripts that is in the src package and I added the following line to the JS_Integration_Example.gwt.xml module rename-to='js_integration_example' script src=scripts/general.js/script ... When I try to run it I get the following warning errors : [WARN] 404 - GET /js_integration_example/scripts/general.js (127.0.0.1) 1427 bytes Request headers Accept: */* Accept-Language: en-us User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; MS-RTC LM 8; .NET4.0C; .NET4.0E) Accept-Encoding: gzip, deflate Host: 127.0.0.1: Connection: Keep-Alive Referer: http://127.0.0.1:/JS_Integration_Example.html?gwt.codesvr=127.0.0.1:9997 Response headers Content-Type: text/html; charset=iso-8859-1 Content-Length: 1427 09:45:26.536 [ERROR] [js_integration_example] Uncaught exception escaped com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java: 129) ... -- 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.
Making mass changes to a store
I am expecting a bunch of models to be added to a store that is displayed by a grid. Each model identifies a column in a fixed width parser. So the user can specify a width for each model and a start and end position will be calculated for each. This could also happen in any other order, for instance a user could specify a start and based off the new start and the existing width if will recalculate the end. These models are ordered by start-end position. No two can overlap position. So when the first model in the tree changes from 1-20 start to 1-22 start, every model is run through a recalculatePosition method. I need to apply these changes in an efficient fashion. Right now I'm making these changes in a simple for loop, and after the changes are made to the given model I call store.update(model) and continue on to the next model. The current example I am working with has around 400 items in the store, its taking around 1 minute per edit to execute the changes and display it on the grid. If the user wanted to change the width of every item it would take over 7 hours..that is insane. This is the entire method: private void resetPositionValues() { Long prevEnd = new Long(0); for (final ColumnDTOModel colModel : contentStore.getModels()) { if(colModel.getColDTO().getColWidth()0){ final Long start = prevEnd + 1; colModel.getColDTO().setColStart(start); final Long end = (start + colModel.getColDTO().getColWidth()) - 1; colModel.getColDTO().setColEnd(end); prevEnd = end; colModel.getColDTO().setDirty(true); }else{ final Long start = prevEnd; colModel.getColDTO().setColStart(start); colModel.getColDTO().setColEnd(start); prevEnd = start; } contentStore.update(colModel); } contentStore.commitChanges(); } Is there a way I can applying these changes all at once? Thank you! -- 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: GWT Developer Plugin for Firefox 9
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/8d9d369fdbfdf87e El 11 de enero de 2012 11:52, Ryan Johnson ryan.david.john...@gmail.comescribió: Can someone help me out? When I try to download the plugin the page refreshes, but I never see a download and I can't find the file. If someone can send me the file that would also be great. Thanks -- 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/-/PQE-zHs6IasJ. 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. -- 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: GWT as reporting application
You may use gwt-rcharts with Visualization API for other complex charts like Geo Charts which is not supported by gwt-rcharts currently. Regards -- 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 : Help with injecting HTML text in new browser window using
Hi All, I have written a JSNI code that takes HTML string as an input parameter and displays it in a new browser window. The code is working fine with firefox but for IE, I don't see the HTMLText getting displayed. can someone please share any insight with this issue or share any possible solution. Here is the JSNI code public static native void printHTMLString(String htmlString)/*-{ var win = $wnd.open(, win, width=940,height=400,status=1,resizeable=1,scrollbars=1); win.document.open(text/html, replace); win.document.write(htmlString); win.document.close(); win.focus(); }-*/; -- 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: Activities and Place design wizard
Any idea for this problems? A.U.S Cristian Rinaldi Teléfono Móvil: (0342) 155 238 083 www.logikas.com Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe Teléfono Fijo: (0342) 483 5138 2012/1/10 Cristian Rinaldi csrina...@gmail.com Hello: I have a question about the design using Activities and Places. I have a set of activities that render their views in a section. The behavior I want is that each activity, after an event (by example: click in next button, click in activity represented in breadcrumbs) go to the next activity, hiding the previous view. Top of the section, I have a breadcrumbs with the activities that happened. Now, if I click on one of the parts of the breadcrumbs, must be return to the activity related and show the view with all his state. The question is: I make a map of activities that are cached? or do not use cache, and management behavior in the start method of activity, starting all over again. The view is singleton, and managed by GIN. The general behavior is like the behavior of a wizard. Any ideas? -- 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/-/W6fMEmnty14J. 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. -- 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: RichTextArea on IE7 insert p after enter typed
Is there a solution for this issue On Thu, Aug 27, 2009 at 10:05 AM, Troll rodtr...@gmail.com wrote: I'm having the same problem, no one managed to solve? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~--- -- 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.
Custom UIBinder container - HOWTO??
What is the preferred method for creating a custom UIBinder container? I would like to implement a container class SuperSnazzyContainer, and then be able use it in a UIBinder template like so: mylib:SuperSnazzyContainer g:Label text=woo-hoo/ g:Button text=click-me/ /mylib:SuperSnazzyContainer What is the most straightforward way to implement such a beast?? Thanks in advance, -- 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 to control active/inactive state of a button in a ButtonColumn of a DataGrid, upon load of row of data into the table?
Hi All, Does anyone know how to control the active/inactive state of a Button in a ButtonColumn in a DataGrid, upon load of a row of data into the DataGrid, via a DataProvider? I've studied the Google Web Toolkit ShowCase, and I don't see any example on how to do this. Does anyone know how this can be done? Thanks, Bill M -- 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: Custom UIBinder container - HOWTO??
Its simple. Make your SuperSnazzyContainer implements HasWidgets. -- 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/-/Z7Yde581TdwJ. 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: RichTextArea on IE7 insert p after enter typed
i will help you.. what's your problem? -- 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.
MVP understanding with Editor Framework
Wikipedia definition for MVP reads *Model–view–presenter (MVP) is a derivative of the model–view–controllerhttp://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller (MVC) software pattern http://en.wikipedia.org/wiki/Software_pattern, also used mostly for building user interfaceshttp://en.wikipedia.org/wiki/User_interface .* *In MVP the presenter assumes the functionality of the middle-man (played by the controller in MVC). Additionally, the view is responsible for handling the UI events (like mouseDown, keyDown, etc), which used to be the controller's job. Eventually, the model becomes strictly a domain modelhttp://en.wikipedia.org/wiki/Domain_model .* * * Take a case of using Simple Bean Editor framework with MVP. I ll have a PersonDAO(domain model) as well as PersonDTO (passed between client and server). what does the *M *in MVP Means? Is it denoting only the Domain Model (Person DAO)? I am really confused with Editor Framework, because its binding the model with the view. Are we not contracting the MVP? Please correct me if my assumptions are wrong. -- 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/-/cnKONNzm6fYJ. 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.
Text Overflowing at the bottom of InfoWindows
I have a similar problem to that described in http://groups.google.com/group/google-web-toolkit/browse_thread/thread/e4c8f07e62495641/4610eb6945d5a815?lnk=gstq=infowindow+overflow#4610eb6945d5a815. I am displaying content in Google Maps InfoWindows using GWT, but often the content overflows below the bottom of the InfoWindow. A screen shot showing my problem is at http://dl.dropbox.com/u/30007572/InfowWindowOverflow.gif. My code is as follows: VerticalPanel infoWindowContentPanel = etc InfoWindowContent infoWindowContent = new InfoWindowContent(infoWindowContentPanel); InfoWindow infoWindow = mapWidget.getInfoWindow(); infoWindow.open(latlng, infoWindowContent); The text that is overflowing at bottom of the info window is simply a series of HTML paragraphs wrapped in a GWT HTML element which is added to the infoWindowContentPanel VerticalPanel (see above code snippet). I would appreciate any help to try and resolve this problem. -- 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: How is Math.Random emulated? and how good is it?
I stumbled across this today ... http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/Random.html It appears that there is also a Random class as part of the standard GWT client environment. Is this the same as Math.Random()? Neil -- 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/-/7XS6Q9-_MiAJ. 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: DataGrid Object not displaying more than 50 items...
Hey Tom, Want to thank you for this answer! I have another question. Was wondering if maybe you might know. I have a DataGrid with a ButtonColumn in it. I need to do the following: 1. When I load data into the table via a DataProvider, I need at that time to control whether the button that appears on that row will be active. Is there a way to do this? 2. I need an ability to provide a ClickHandler for these buttons. Would you might know the answers to these questions? Would really appreciate it. Thanks. -Original Message- From: Thomas Broyer t.bro...@gmail.com To: google-web-toolkit google-web-toolkit@googlegroups.com Sent: Tue, Jan 10, 2012 3:05 am Subject: Re: DataGrid Object not displaying more than 50 items... I believe you'd have to call setPageSize *before* changing your ListDataProvider; but yes, there's no reason it wouldn't work: ListDataProviders simply calls setRowCount/setRowData on its attached HasData whenever you change its getList(). -- 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/-/mwQxdInqNkkJ. 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. -- 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: Activities and Place design wizard
whether you cache or not cache should be based on the user experience you want to provide. Are there objects which needs to be re-initialized when you move from one activity to other? if yes, don't cache or atleast have some sort of intialization method in the startActivity. In typical Wizards, the state is maintained between screens. If you want it behave similar to that including state maintenance, cache the activities. CheckOut the CachingActivityMapper. You may probably have to expand it in your case to cache all the activities which form the various screens of your wiazard. Regards Ashwin On Thursday 12 January 2012 07:05:03 AM IST, Cristian Rinaldi wrote: Any idea for this problems? A.U.S Cristian Rinaldi Teléfono Móvil: (0342) 155 238 083 www.logikas.com http://www.logikas.com/ Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe Teléfono Fijo: (0342) 483 5138 2012/1/10 Cristian Rinaldi csrina...@gmail.com mailto:csrina...@gmail.com Hello: I have a question about the design using Activities and Places. I have a set of activities that render their views in a section. The behavior I want is that each activity, after an event (by example: click in next button, click in activity represented in breadcrumbs) go to the next activity, hiding the previous view. Top of the section, I have a breadcrumbs with the activities that happened. Now, if I click on one of the parts of the breadcrumbs, must be return to the activity related and show the view with all his state. The question is: I make a map of activities that are cached? or do not use cache, and management behavior in the start method of activity, starting all over again. The view is singleton, and managed by GIN. The general behavior is like the behavior of a wizard. Any ideas? -- 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/-/W6fMEmnty14J. To post to this group, send email to google-web-toolkit@googlegroups.com mailto:google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com mailto:google-web-toolkit%2bunsubscr...@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-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. -- 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: Handling styles application wide?
Mike, you can combine all the CSS into a single CSS file. For example in your CellTable case, try changing the source to myapp.css and move the contents of MyViewTable.css into it. if you want to have different styles for your tables, then append the table styles in your CSS with specific names and use the DependentStyleName method of a Widget, to notify gwt which style has to be applied at runtime. I am not very sure about WindowBuilder, as I have not used it. Maybe, will give it a try and revert. ~Ashwin On Thursday 12 January 2012 12:25:46 AM IST, Mike Dee wrote: Ashwin, Thanks for the reply. We were doing this, to an extent. I just didn't think about putting the celltable style class in the ClientBundle. It works, BUT, is it possible to put the CSS for the entire app in one CSS (not sure if this is entirely desirable right now). For example, here is what the ClientBundle now looks like. public interface MyAppResources extends ClientBundle { public static final MyAppResources INSTANCE = GWT.create( MyAppResources.class ); @Source( com/myapp/home.png ) public ImageResource home(); @Source( com/myapp/myapp.css ) @CssResource.NotStrict public MyAppStyles css(); public interface MyViewTableCss extends CellTable.Resources { @Source({CellTable.Style.DEFAULT_CSS, com/myapp/resources/ MyViewTable.css}) TableStyle cellTableStyle(); interface TableStyle extends CellTable.Style {} } } As we create more CellTable with different styles, we will end up with a CSS file for each. It would be nice if they could be combined into one. Also, can WindowBuilder be integrated with ClientBundle so that styles from the ClientBundle would appear as selectable in WindowBuilder? On Jan 10, 11:21 pm, Ashwin Desikanashwin.desi...@gmail.com wrote: The best approach would be to use ClientBundle http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html This would allow you to combine all your resources including TableResources, Application Images, Custom Styles etc. Make it a practise to use the styles defined in your external stylesheets across the application and your maintenance would become relatively easier. ~Ashwin On Wednesday 11 January 2012 09:53:38 AM IST, Mike Dee wrote: What is a good ways to consistently handle styles application side? I'm working on an app that has CellTables and widgets and HTML. For CellTables we use CellTable.Resources to store CSS. For widgets, we use uibinder withui:stylefor HTML we use external stylesheets. Is there a good strategy for putting all style info in one place? -- 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: Having trouble calling a function in a separate Javascript file in GWT
Dear Dave, If you get a 404 response on the javascript file, it is probably not in the folder you expect it. Try to acces the js yourself in the browser, you should see the same 404. Erwin On Jan 11, 4:40 pm, Dave daverobertsema...@gmail.com wrote: I'm trying to create an example app to demonstrate that GWT can use existing Javascript functions, but so far I've been unable to get it to work correctly. I've named my project JS_Integration_Example and I created it from the default Web Application Starter Project that is provided when you create a new GWT project in eclipse. I'd really appreciate anyone who could point out what my problem is. I've done some Googling on this subject but so far haven't found any specific examples showing exactly where to put the js file and what to add to the gwt.xml file. I've create a file named general.js that contains the following js function function helloWorld(){ return Hello World; } I call the function from JS_Integration_Example.java by using the following JSNI method /** Java Script Via JSNI */ public native String helloWorld2()/*-{ return $wnd.helloWorld(); }-*/; I placed general.js in a folder named scripts that is in the src package and I added the following line to the JS_Integration_Example.gwt.xml module rename-to='js_integration_example' script src=scripts/general.js/script ... When I try to run it I get the following warning errors : [WARN] 404 - GET /js_integration_example/scripts/general.js (127.0.0.1) 1427 bytes Request headers Accept: */* Accept-Language: en-us User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; MS-RTC LM 8; .NET4.0C; .NET4.0E) Accept-Encoding: gzip, deflate Host: 127.0.0.1: Connection: Keep-Alive Referer:http://127.0.0.1:/JS_Integration_Example.html?gwt.codesvr=127.0.0... Response headers Content-Type: text/html; charset=iso-8859-1 Content-Length: 1427 09:45:26.536 [ERROR] [js_integration_example] Uncaught exception escaped com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java: 129) ... -- 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: Having trouble calling a function in a separate Javascript file in GWT
You should place your script scripts/general.js in a folder named public in the client package. -- 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.