get Brouser's right
i have tab panel in middle on my GWT root panel, and set one last tab to the right (others are by default left) now i want to make that right tab change position on scroll and re-size. i want that tab always right of the browser. i try fix but it's make problem in vertical scroll. any solution? thanks in advance -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: how can i implement Focusable (and HasAllKeyHandlers) on a TabLayoutPanel?
i am using Flowpanel in my Composite *Widget , and also have two text boxes inside panel, now i want blur event of the main widget or panel so what should i do ? i try HasAllFocusHandlers & Focusable but none focus or blur event fires? can u help? * -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Setting Locale language dynamically initially
Hi Jen, Thanks a lot for the information. I am in fact using/used the ways you have described, but not number 5. They are working fine, but I wanted to get initially a locale of what the user is using on his computer (from browser, etc), without having to reload the page. The issue is that the "locale.useragent" parameter doesn't support all the languages our application does. I will use the number 5 suggestion, it sounds very promising. Many thanks Rana On Tuesday, July 31, 2012 1:05:49 PM UTC+2, Jens wrote: > > But, I don't have a server-side technology, and I don't want to have one. >> The whole idea is to have only client-side HTML, JavaScript, CSS >> technology and that is it. That is why I need something using JavaScript or >> GWT to solve the problem. >> > > Ok take a look at com.google.gwt.i18n.I18N.gwt.xml > > Seems like there are 5 ways to provide the locale: > > 1.) using a query param named "locale". To use this method you can let > your web server send a redirect from app.example.com to > app.example.com/?locale= after determining the locale on your web > server if possible or you do the redirect from within your app, e.g. in > your onModuleLoad() you use Window.Location.assign( + query param>). You can change the name of the query param by setting a > different value to "locale.queryparam". > > 2.) using a cookie. To use this you have to define the cookie name by > setting "locale.cookie" to any value as in I18N.gwt.xml no default cookie > name is defined. > > 3.) using meta tags. As already described you can include a gwt:property > meta tag in a dynamic host page. > > 4.) using the user agent information. To use this you have to activate it > by setting "locale.useragent" to "Y" as its disabled by default in > I18N.gwt.xml. > > 5.) create your own property provider and use JavaScript to fill the > "locale" property value yourself. Here you are completely free how to > obtain the value. > > GWT's default search order is "query param, cookie, meta, useragent" but > cookie and useragent will be skipped if you don't configure/activate them. > You could also modify the search order by setting "locale.searchorder" in > your gwt.xml. > > Now choose one solution ... > > -- 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/-/nQ8Nu6f6KEwJ. 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: Setting Locale language dynamically initially
Hi, But, I don't have a server-side technology, and I don't want to have one. The whole idea is to have only client-side HTML, JavaScript, CSS technology and that is it. That is why I need something using JavaScript or GWT to solve the problem. Many thanks Rana On Tuesday, July 31, 2012 10:32:21 AM UTC+2, Paul Robinson wrote: > > > On 31/07/12 09:24, Rana wrote: > > Hello Jens, > > But, what if I don't want to use neither JSP nor PHP. Is there a way of > doing it using GWT, or JavaScript? > > That'll be the "whatever" in Jens' email. You can generate a host html > page with whatever server-side technology you're using. If you have a java > server, then you can create a servlet that handles your host page and > generates it. > > > On Wednesday, July 4, 2012 11:40:21 AM UTC+2, Jens wrote: >> >> You could build your app's host html page dynamically (jsp, php, >> whatever) and add a property to the as described in >> https://developers.google.com/web-toolkit/doc/latest/DevGuideI18nLocale#LocaleSpecifying >> >> >> That way your app loads directly the specified language if its >> available, otherwise it loads the default language. >> >> -- 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/-/4IEuX1ivFT0J. 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: Setting Locale language dynamically initially
Hello Jens, But, what if I don't want to use neither JSP nor PHP. Is there a way of doing it using GWT, or JavaScript? Many thanks Rana On Wednesday, July 4, 2012 11:40:21 AM UTC+2, Jens wrote: > > You could build your app's host html page dynamically (jsp, php, whatever) > and add a property to the as described in > https://developers.google.com/web-toolkit/doc/latest/DevGuideI18nLocale#LocaleSpecifying > > That way your app loads directly the specified language if its available, > otherwise it loads the default language. > > -- 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/-/AhR0rEtFOkIJ. 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: Application size due to Internationalization
:) :) Sorry, I got confused with the posting area: No, we don't seem to be putting things we don't need from WEB-INF/deploy, but we are supporting I think 66 languages. And they are making the application very big in size. That is why. Also, originally the application is big, we are doing mathematical drawing and calculations... that adds to the size as well, I think. Best wishes Rana On Wednesday, July 25, 2012 11:43:37 AM UTC+2, Thomas Broyer wrote: > > > > On Wednesday, July 25, 2012 11:34:13 AM UTC+2, Rana wrote: >> >> Dear Tony, >> >> Thanks for your suggestions. Yes, I did this. But the main issue I am >> unable to solve is the size of the code. It is too big to deploy on >> app.spot. >> > > Are you also trying to deploy some WEB-INF/deploy folder? > If you don't know what it's for, then you can safely keep it out (you can > pass the -deploy argument to the GWT Compiler to output those files in a > different folder, outside your WAR) > -- 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/-/p9rqhkV-06YJ. 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: Application size due to Internationalization
Hello Tony, No, we don't seem to be putting things we don't need from WEB-INF/deploy, but we are supporting I think 66 languages. And they are making the application very big in size. That is why. Also, originally the application is big, we are doing mathematical drawing and calculations... that adds to the size as well, I think. Best wishes Rana On Wednesday, July 25, 2012 11:43:37 AM UTC+2, Thomas Broyer wrote: > > > > On Wednesday, July 25, 2012 11:34:13 AM UTC+2, Rana wrote: >> >> Dear Tony, >> >> Thanks for your suggestions. Yes, I did this. But the main issue I am >> unable to solve is the size of the code. It is too big to deploy on >> app.spot. >> > > Are you also trying to deploy some WEB-INF/deploy folder? > If you don't know what it's for, then you can safely keep it out (you can > pass the -deploy argument to the GWT Compiler to output those files in a > different folder, outside your WAR) > -- 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/-/UmfU3_VLPjsJ. 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: Application size due to Internationalization
Hi, Many thanks, I will see if we are deploying the class files in the jar. Thanks a lot for the idea Rana On Wednesday, July 18, 2012 10:48:11 AM UTC+2, Richard wrote: > > Rana - are you combining class files into a jar? That'll help reduce the > file count for GAE, if that's an issue for you. > > Wishlist: > upload the code/basic .classes, have GWT compilation happen on Google > infrastructure. > > On Wednesday, July 18, 2012 9:49:19 AM UTC+2, Rana wrote: >> >> Hi Joseph, >> >> Thanks a lot for the information. I will go through both links, and see >> if it helps in solving the problem. >> >> Many thanks again >> Rana >> >> On Wednesday, July 18, 2012 3:07:48 AM UTC+2, Joseph Lust wrote: >>> >>> Rana, >>> >>> I've read that internal Google apps must build to 240 permutations for >>> the supported browsers and languages. To support this they: >>> >>>- Conduct draft compilations only using their desired dev permutation >>>- Do complete compiles for releases/CI/test on a server farm >>> >>> There are instructions out there that do this sort of thing: >>> >>>- gwt-distcc <http://code.google.com/p/gwt-distcc/> >>>- GWT Distributed Build >>> documentation<http://code.google.com/p/google-web-toolkit/wiki/DistributedBuilds> >>> >>> Of course you probably don't need to do a complete build that often (CI >>> machine, pre-release), so collapsing the permutations or just doing a >>> single permutation draft compile might suffice. >>> >>> >>> 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/-/gCoF8PYaF-EJ. 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: Application size due to Internationalization
Dear Tony, Thanks for your suggestions. Yes, I did this. But the main issue I am unable to solve is the size of the code. It is too big to deploy on app.spot. Many thanks Rana On Wednesday, July 18, 2012 5:05:24 PM UTC+2, Tony Rah wrote: > > I use a special "DevModule.gwt.xml" module during development that only > compiles the permutations I am interested in. This way I can control the > user agent, locale, and other GWT based switches without compromising the > production builds. Below is a rough overview of this approach: > > Create a new module file XXXDev.gwt.xml where XXX is the name of your > applications top level module used for production builds. You will inherit > your apps module from here. Set your various property overrides (e.g. > "" and " name='locale' value='en'/>"). > > I personally use Ant to build my project and created a separate dev target > that builds the dev module instead of the production module. > > Obviously, there are countless ways to orchestrate this but the basic idea > is that you only compile the permutations you care about while doing > development. You let an automated build/test system build the really big > production builds and perform all of the automated tests. > > Hope that helps... > > On Tuesday, July 17, 2012 6:19:10 AM UTC-6, Rana wrote: >> >> Hi, >> >> Does anyone have a solution to the huge size of application, when we >> apply to it internationalization using the static method? We are supposed >> to support 66 languages. The application takes a long time during >> compilation and the size of the application is huge, we cannot upload it to >> google app engine. >> >> Many thanks >> Rana >> > -- 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/-/hNsbKzl8W7MJ. 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: Application size due to Internationalization
Hi Joseph, Thanks a lot for the information. I will go through both links, and see if it helps in solving the problem. Many thanks again Rana On Wednesday, July 18, 2012 3:07:48 AM UTC+2, Joseph Lust wrote: > > Rana, > > I've read that internal Google apps must build to 240 permutations for the > supported browsers and languages. To support this they: > >- Conduct draft compilations only using their desired dev permutation >- Do complete compiles for releases/CI/test on a server farm > > There are instructions out there that do this sort of thing: > >- gwt-distcc <http://code.google.com/p/gwt-distcc/> >- GWT Distributed Build > documentation<http://code.google.com/p/google-web-toolkit/wiki/DistributedBuilds> > > Of course you probably don't need to do a complete build that often (CI > machine, pre-release), so collapsing the permutations or just doing a > single permutation draft compile might suffice. > > > 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/-/83feAvZqlsoJ. 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.
Application size due to Internationalization
Hi, Does anyone have a solution to the huge size of application, when we apply to it internationalization using the static method? We are supposed to support 66 languages. The application takes a long time during compilation and the size of the application is huge, we cannot upload it to google app engine. Many thanks Rana -- 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/-/O2UdTIQN79AJ. 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 i change the locale language of the application
Hi, I found the problem! In the module file I need to set the order of search: I had a space so, it caused GWT not to function well //that caused the issue. Issue solved Rana On Friday, July 6, 2012 12:56:08 AM UTC+2, Rana wrote: > > Hi, > > I am also, not finding a way to set the locale in GWT. The only way I > found is to use a query parameter that will re-load the page. However, > although the url locale is changed,the actual page doesn't change the > language. > Does anyone know why does this happen? > > The code for changing the url: > > public static void changeLocale(String localeParamName, String newLocale) { > UrlBuilder newUrl = Window.Location.createUrlBuilder(); > newUrl.setParameter(localeParamName, newLocale); > Window.Location.assign(newUrl.buildString()); > } > > On Wednesday, October 22, 2008 9:36:55 AM UTC+2, Lothar Kimmeringer wrote: >> >> Eduardo Cardoso schrieb: >> > WITHOUT refreshing a page and no use of ?locale=en_US after url? >> >> At the moment, when using Messages or Constants you can't do that >> because the different languages are realized with different HTML- >> pages that must be loaded when changing the locale. >> >> > something like : setLocale(new Locale.BR) and the page refresh all text >> > data. >> >> I'm thinking about this as well for a while because there are >> projects where the change of the Locale during runtime is a >> explicit requirement ruling out GWT at the moment. >> >> You can solve that using GWT by not using the Constants/Messages- >> framework but with the Dictionary-classes but that eliminates >> the advantages you have with the interfaces allowing you to do >> the compiler the job of checking the correct spelling of the keys. >> >> >> Regards, Lothar >> >> -- 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/-/POuc4BmbvawJ. 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: Setting Locale language dynamically initially
Thanks a lot, I will try this Rana On Wednesday, July 4, 2012 11:40:21 AM UTC+2, Jens wrote: > > You could build your app's host html page dynamically (jsp, php, whatever) > and add a property to the as described in > https://developers.google.com/web-toolkit/doc/latest/DevGuideI18nLocale#LocaleSpecifying > > That way your app loads directly the specified language if its available, > otherwise it loads the default language. > > -- 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/-/4w-DBdwJKMMJ. 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 i change the locale language of the application
Hi, I am also, not finding a way to set the locale in GWT. The only way I found is to use a query parameter that will re-load the page. However, although the url locale is changed,the actual page doesn't change the language. Does anyone know why does this happen? The code for changing the url: public static void changeLocale(String localeParamName, String newLocale) { UrlBuilder newUrl = Window.Location.createUrlBuilder(); newUrl.setParameter(localeParamName, newLocale); Window.Location.assign(newUrl.buildString()); } On Wednesday, October 22, 2008 9:36:55 AM UTC+2, Lothar Kimmeringer wrote: > > Eduardo Cardoso schrieb: > > WITHOUT refreshing a page and no use of ?locale=en_US after url? > > At the moment, when using Messages or Constants you can't do that > because the different languages are realized with different HTML- > pages that must be loaded when changing the locale. > > > something like : setLocale(new Locale.BR) and the page refresh all text > > data. > > I'm thinking about this as well for a while because there are > projects where the change of the Locale during runtime is a > explicit requirement ruling out GWT at the moment. > > You can solve that using GWT by not using the Constants/Messages- > framework but with the Dictionary-classes but that eliminates > the advantages you have with the interfaces allowing you to do > the compiler the job of checking the correct spelling of the keys. > > > Regards, Lothar > > -- 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/-/5GLUOiaGyPoJ. 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.
Setting Locale language dynamically initially
Hi, I know that you could initially set a language as a default one using the module file in GWT like this: However, I need to display my application initially, in the language the user-agent's is using, i.e. depending on the Geographical IP of the user. Currently I am able to get the language and the country from which the user is connecting. I thought of changing the locale through a query parameter (in the URL), but I don't like this idea because it reloads the page. Is there any other way to change the locale while launching the application dynamically? Many thanks in advance Rana -- 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/-/-EcCc_iNqLIJ. 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 + MySql
if anyone have a demo program to connect the database from gwt please mail me thank u.. -- 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.
please help y ds code is not working
package conn.client; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.dev.generator.ast.Statement; public class login implements EntryPoint { public void onModuleLoad() { try { Class.forName("com.mysql.jdbc.Driver").newInstance(); Connection conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/demo","root","myPassword"); Statement st=(Statement) conn.createStatement(); ResultSet rs=((java.sql.Statement) st).executeQuery("select * from login"); ResultSet result=((PreparedStatement) st).executeQuery(); Window.alert(result.getString(1)); } catch(Exception ex) { } } } -- 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: i18nCreator
Many thanks I will try it. Rana On Sat, Jan 28, 2012 at 3:51 AM, divStar wrote: > There is a way to create "launch"-commands, that you can start the > same way you start Java applications or even the Google Web > Application from inside Java. > > I'm not entirely sure, but running the i18nCreator from the command > line as shown in the example here: > > http://code.google.com/intl/de/webtoolkit/doc/latest/DevGuideI18n.html#DevGuidePropertiesFiles > leads to you having a .launch file. > > You then may execute the file from eclipse by right-clicking it and > picking "Run as ..." > "-i18n.launch". It should execute the > file. > On 27 Jan., 19:48, Eric Metcalf wrote: > > I don't know of a way to do it in Eclipse. You can use the command > > prompt. There is a bug so it won't work in Windows. > > > > On Jan 26, 6:49 am, Rana Issa wrote: > > > > > > > > > > > > > > > > > How can I use the command i18nCreator in Eclipse? or should I use it > > > from my command prompt only? > > -- > 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.
i18nCreator
How can I use the command i18nCreator in Eclipse? or should I use it from my command prompt only? -- 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.