Handle escape key event on PopupPanel GWT 2.5.1
Hi everyone...i have a problem with handling the escape key event. I have a popup panel and i want to intercept the keydown event when the escape button is pressed. I override the onPreviewNativeEvent in order to manage the event (i want to hide the panel) This is the snippet code @Override protected void onPreviewNativeEvent(NativePreviewEvent event) { int type = event.getTypeInt(); if (!event.isCanceled()) { if (type == Event.ONKEYDOWN) { int keyCode = event.getNativeEvent().getKeyCode(); // ESC clicked if (keyCode == KeyCodes.KEY_ESCAPE) { hide(); } } } super.onPreviewNativeEvent(event); } But it seems that nothing works when i hit the button on the keyboard (only for the escape button. If i press another button the event is intercepted and everything works very well) I can't understand where is the problem. My application works on Internet Explorer 10 (and it must work only for Microsoft's browsers) Thank you Ale -- 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.
History and search field
Hi everybody, On my site I have an advanced search panel with about ten texbox or combobox (the filter parameter for the search). If you search something you will have a list of result, and in each row there is a link to go to the detailed panel of the item. My problem is that if you go to a detail panel and then you click the back button of the browser, you will come back to the search panel, but the textbox and combox are empty There is a way to keep the value of the search filter? (without putting all on the History Token...) Thanks a lot Alessandro -- 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/-/bweew2GS5BEJ. 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: Deploy on App Engine, too many files problem
Yes, this is a good idea. I'm thinking to put static resource directly on an different server... (it is also more simple to change without deploy everything..) Thank you, Alessandro -- 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/-/5VK8nB0mxesJ. 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.
Deploy on App Engine, too many files problem
Hi everybody, I'm developing a web app with GWT and App engine, and I have the problem of having more than 3000 files, so the deploy on app engine fail. I have about 3800 files (I had add a lang, so the number of file grow a lot, from 2700 to 3800). I take a look to my war folder, and I see that I have more than 2000 filse on WEB-INF/classes/.../client/ My question: the server really need this classes? Can I exclude from my war folder before upload? There is a simple way to do this? Any other suggestion is welcome... Thank you Alessandro -- 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/-/K2BXTHwPIAIJ. 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: Deploy on App Engine, too many files problem
Thank you Kevin, I'm glad my suspicions were correct I use the eclipse plugin to deploy e make everything, it is very very convenient, and so I became lazy... my dream (today) is a simple option on the eclipse plugin to exclude some classes ;-) However, I will try to create an ant file, that is a work in my todo list for a long time... ...anyone have some example? I have a lot of classes, but most are anonymous classes. For example my main classes (my EntryPoint) is one java file, with 47 .class file MyEntryPoint.java - MyEntryPoint.class, MyEntryPoint$1.class... MyEntryPoint$46.class Overall I have 261 java source file and 2061 classes. :-o ( However my app does many things ;-) http://www.youtrail.com/ ) Thanks again! Alessandro -- 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/-/wXogsakPvRgJ. 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: Deploy on App Engine, too many files problem
It is exact! every anonymous class became a single .class file with $n in the name In your example SomeClass.class SomeClass$1.class SomeClass$2.class Thankyou Alessandro -- 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/-/CjMAv1KT6PYJ. 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.
R: Re: Re: Re: problem with crawler
Hi maq, my progress are very slow... I did a different thing, to solve the forbidden error when I rewrite the url, I change the servlet setting the requestURI empty instead to get it from the reqesut final String requestURI = ; // before was req.getRequestURI(); and in the home page I add some hidden link to the url with the name of the war (a style=display: none href=/youtrail#!searchTrailsearch trail/a) but I 'm not sure that it works... for the site map, I create an hidden block with all the History Item. private void createSiteMap() { SafeHtmlBuilder sb = new SafeHtmlBuilder(); for (String token : HistoryConstants.getAll()) { sb.append(SafeHtmlUtils.fromTrustedString(a href=\#! + token + \ + token + /a)); } // Add the site map to the page. HTML siteMap = new HTML(sb.toSafeHtml()); siteMap.setVisible(false); RootPanel.get().add(siteMap, 0, 0); } I copy this from some example of gwt (I don't remeber which)... I like your site, the marker and the color are very beautiful! Ale -- 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/-/zp6IXp3add8J. 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.
R: Re: Re: problem with crawler
Thank you maq! I didn't tought about the war name in the url so I try to add to my url the war name and: 1) if I use the crawler url h*tp://www.youtrail.com/youtrail/?_escaped_fragment_=trailentityId=579101 in my servlet I see the queryString not null (now there is an other problem, but this is an other story, I simply forget to include the httpclient-4.1.1.jar... this evening I deploy a new version) 2) if I use the normal url with the war name: http://www.youtrail.com/youtrail#trailentityId=579101 I'll recive a FORBIDDEN error... Is this strange? (it is strange for me ok... but it is really strange?) For now I think I put some hidden links dedicated to crawlers, but I don't know if it is a good idea... keep working too... thanks again! Ale -- 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/-/qx4zBlgFIQAJ. 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.
R: Re: problem with crawler
Hi, yes I use HtmlUnit, but at te moment I don't know if you can change the title, because I stopped before for the other problem... But would that be considered bad because user would not see it in the real application? My personal opinion: yes... when i search some word and in the site found i didn't found that world, I get angry...but often I blame the search engine... When I'll solved my problem I will post the solution... Alessandro -- 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/-/TJ7ek3q4EsEJ. 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.
problem with crawler
Hello everyone, I'm trying to make my webapp gwt visible to crawlers, following the excellent guide http://code.google.com/intl/it-IT/web/ajaxcrawling/docs/getting-started.html I have done all that is indicated (meta tag in the head, fragment with!, servlet filter) but I have this problem: servlet in the queryString is always null, also with the simplest url. The only way to have a queryString not null, is to invoke a specific servlet different from the default: I explain with to sample (from my site): URL that don't work: http://www.youtrail.com/#!home I try http://www.youtrail.com/?_escaped_fragment_=home but from log I see that queryString is null (and on the browser I land on http://www.youtrail.com/?_escaped_fragment_=home#!home) what is wrong? Why in my filter I saw always queryString null? Thanks a lot and sorry for my bad english Alessandro -- 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/-/SW1MY1JiaUpXdk1K. 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: New GWT /App engine site
Hi, the term and conditions to use google maps with gwt, are the same of every other technology: you have to get a key, then you can use for free (with some limitation, like not hide google logo or don't sell service...) when you get an api key, you can read the official term and conditions. http://code.google.com/intl/it-IT/apis/maps/signup.html To integrate with gwt I use gwp-maps from here http://code.google.com/p/gwt-google-apis/ is very useful and simple to use, there is also a sample application that explain very well everything is possible to do. This library use gmap v2 not v3. (but for me is ok) Alessandro -- 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/-/THp2Sk9XZHA2VkFK. 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.
New GWT /App engine site
Hello everyone. I am very happy to introduce you to a site made by me and my friend Giorgio. http://www.youtrail.com The website ha been completely developed with GWT, and deployed on the app engine. The main theme of the site are the outdoor sports/activities: you can find some trail with description, detailed notes (difficulty, length, elevation...) GPS tracks, images, videos and of course users reviews. Registerd users can post their own personal reviews and observations, they can suggest new trails or suggest changes to the exinting ones and so on; expressing preferences is an other options. I would also like to thank the newsgroup, because often I have searched and found solutions for our problems here. I hope you will enjoy the site, and if you have any questions about how we developed some part of the website (maps, authentication connection, import from picasa flickr youtube, facebook...), I will be happy to explain. Every suggestion is more than welcome ! See you soon, thanks Alessandro -- 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.
R: Re: New GWT /App engine site
Sorry, I will publish there! Thanks. Alessandro -- 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.
TurnOff CompileReport
Hi, how I can do to not generate the folder / target/extra/ [project_name]/soycReport/compile-report ?. Currently weighs about 393.1 MB. I'm using GWT 2.1.0 and Maven. Appreciate it you send me an example with maven. Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
app in gwt+gae
Hi everybody, in my free time (from work/family/friends) I create a webapp using GWT and GAE, and know I'm happy to expose to you. The application is http://www.meandsport.com The site is designed to manage amateur sports leagues, and you can register teams, matches and championships. For everything you can import pictures and videos from flickr picasa youtube, you can comment, you can send messages. I hope that you will like it, and you will use it (and tell to your friends) If you have suggest on the entire application (probably is full of error) you are welcome! If you want some sticker tell me your address and I'll send to you. If you want to know how is implemented something (like integration with service...), I will be happy to explain how can I did. Regards Alessandro P.S. Actually the application is translated (or will be translated soon) in English, French, Italian, Sweden, Tamil, Hindi, German, Spanish, Portuguese, Russian, Polish, Marathi (thanks to some reader of this group!), if someone would like to translate to other lang is welcome (see the thread http://groups.google.com/group/google-web-toolkit/browse_thread/thread/38e57e8838019c9/b15cdc5173b3507f?lnk=gstq=translations#b15cdc5173b3507f ) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: i18n translations
Thanks, check mail! On Aug 6, 5:06 pm, madein mbukarew...@gmail.com wrote: Hi, I can help you with Polish. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: i18n translations
Yes! Thanks. I write you a mail! On 5 Ago, 02:10, igor mejia igorme...@gmail.com wrote: if you can i can help you with spanish 2010/8/4 ale aleee...@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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: i18n translations
Great! I'll write you a mail. Excuse the ignorance, I am ashamed, but Hindi and Marathi languages are Right-to-Left? thanks On 5 Ago, 09:05, aditya sanas 007aditya.b...@gmail.com wrote: i can help u for marathi and hindi. -- Aditya On Thu, Aug 5, 2010 at 5:40 AM, igor mejia igorme...@gmail.com wrote: if you can i can help you with spanish 2010/8/4 ale aleee...@gmail.com Hi everybody, I'm finishing to develop a web application with GWT + GAE, and I want to publish in multiple languages. The application is about sport, and the message file is about 400 lines mostly consist of one word. Is there anyone who can translate it into his native language? In return he will receive my infinite gratitude, I will write his/her name in the thanks page of my site with a link to what he wants. And of course I will be happy to return the favor by translating into Italian! Any language is OK, even English, (I'n not speak wery well, so will be full of errors!) Thank you, thank you! Alessandro -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: i18n translations
Of course I want!!! Thank you! On 5 Ago, 10:47, Константин Ксенофонтов phone0...@gmail.com wrote: ale, send a file. i will help you with russian in several days if you want. 2010/8/5 ale aleee...@gmail.com: Hi everybody, I'm finishing to develop a web application with GWT + GAE, and I want to publish in multiple languages. The application is about sport, and the message file is about 400 lines mostly consist of one word. Is there anyone who can translate it into his native language? In return he will receive my infinite gratitude, I will write his/her name in the thanks page of my site with a link to what he wants. And of course I will be happy to return the favor by translating into Italian! Any language is OK, even English, (I'n not speak wery well, so will be full of errors!) Thank you, thank you! Alessandro -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- -- -- -- Ксенофонтов Константин Викторович. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: i18n translations
I miss French! I'll send you a mail! thanks On 5 Ago, 21:45, nino ekambi jazzmatad...@googlemail.com wrote: I can help with german and french i u want Am 05.08.2010 21:42 schrieb Fernando spiderkens...@gmail.com: I can help you with portuguese (from Brazil). On 5 ago, 10:55, ale aleee...@gmail.com wrote: Of course I want!!! Thank you! On 5 Ago, 1... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: i18n translations
Thanks, I wrote you. On 5 Ago, 21:42, Fernando spiderkens...@gmail.com wrote: I can help you with portuguese (from Brazil). On 5 ago, 10:55, ale aleee...@gmail.com wrote: Of course I want!!! Thank you! On 5 Ago, 10:47, Константин Ксенофонтов phone0...@gmail.com wrote: ale, send a file. i will help you with russian in several days if you want. 2010/8/5 ale aleee...@gmail.com: Hi everybody, I'm finishing to develop a web application with GWT + GAE, and I want to publish in multiple languages. The application is about sport, and the message file is about 400 lines mostly consist of one word. Is there anyone who can translate it into his native language? In return he will receive my infinite gratitude, I will write his/her name in the thanks page of my site with a link to what he wants. And of course I will be happy to return the favor by translating into Italian! Any language is OK, even English, (I'n not speak wery well, so will be full of errors!) Thank you, thank you! Alessandro -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- -- -- -- Ксенофонтов Константин Викторович. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Handler for http call
Hi everybody, I have this problem: I had a simple link like this: g:Anchor href=/myservlet/example?param=One Link/g:Anchor that call one servlet. Now I trasform the link in a more complex panel with image, label ecc and I would like to use a clickHandler: On the page: w:MyComplexPanel ui:field=newLink / On the java: newLink.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { // TODO Auto-generated method stub // I don't know what can I write here ;-( } }); How can i make the same call of the link? Thanks, sorry for my bad english Regards Alessandro -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Handler for http call
Thanks!! On 15 Giu, 00:24, Thomas Broyer t.bro...@gmail.com wrote: On 15 juin, 00:06, ale aleee...@gmail.com wrote: Hi everybody, I have this problem: I had a simple link like this: g:Anchor href=/myservlet/example?param=One Link/g:Anchor that call one servlet. Now I trasform the link in a more complex panel with image, label ecc and I would like to use a clickHandler: On the page: w:MyComplexPanel ui:field=newLink / On the java: newLink.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { // TODO Auto-generated method stub // I don't know what can I write here ;-( } }); How can i make the same call of the link? Window.Location.assign(/myservlet/example?param=One); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: i18n and uiBinder
Hi, I try to add ui:generateFormat='com.google.gwt.i18n.rebind.format.PropertiesFormat' ui:generateKeys=com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator ui:generateLocales=default when I compile I see some log message like cretate file for i18n ecc. But when it finish I didn't find the file generated Have you an example? Thansk... Ale On 15 Feb, 18:56, ale aleee...@gmail.com wrote: ok, I had read the documentation that you linked, but until now I had not understood :-) thanks again, I will try. On 15 Feb, 17:42, Christian Goudreau goudreau.christ...@gmail.com wrote: If you add : ui:generateFormat='com.google.gwt.i18n.rebind.format.PropertiesFormat' ui:generateKeys=com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator ui:generateLocales=default in your .ui.xml file, GWT compiler should create your .propertie file for your .ui.xml file. Then you only have to copy that file, add your local _fr_CA, and it should works. http://code.google.com/intl/fr/webtoolkit/doc/latest/DevGuideUiBinder... Christian On Mon, Feb 15, 2010 at 11:21 AM, ale aleee...@gmail.com wrote: ok, so every ui.xml has a specific message resource file... (or one for package...) It's ok. and the name? is right 'messages.properties'? thanks again. Alessandro On 15 Feb, 16:21, Christian Goudreau goudreau.christ...@gmail.com wrote: Normally, same directory as you .ui.xml file. Christian On Mon, Feb 15, 2010 at 10:17 AM, ale aleee...@gmail.com wrote: ehm, but where should I put the properties file? under the client folder? thanks.. On 15 Feb, 13:45, Christian Goudreau goudreau.christ...@gmail.com wrote: It's supposed to be automatic. You have to specify the locale in your HTML and then, GWT Compiler does the tricks. For me it always worked fine in Dev, but once I came to publish, my Images didn't change according to my locales... Christian On Sun, Feb 14, 2010 at 7:05 PM, ale aleee...@gmail.com wrote: Hi, I can't understand how usei18nwith gwt 2.0 I follow the manual and I made ma xml like this: g:HTMLPanel styleName='{style.panel}' g:Anchor ui:field=loginLink ui:msg description=loginLogin/ui:msg /g:Anchor /g:HTMLPanel than i implements a listbox (like in the example 'showcase') that have an event that change the locale. than I wrote 2 files messages.properties messages_fr.properties I can't understand how to tell to the xml the name of the properties file... (and so the change of the locale has no effect...) Thanks. Regards Ale -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%25252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: i18n and uiBinder
Yes, ok.. I read yuor Posts, unlucky i can't help you. I' m on a lower level... :-) Thanks again,when i Will Find the solution i will post here bye, ale On 16 Feb, 14:32, Christian Goudreau goudreau.christ...@gmail.com wrote: Unfortunately, no, I didn't try this yet lol I'm still looking for my own answer with Client Bundle and Image Resources :D Christian On Tue, Feb 16, 2010 at 8:12 AM, ale aleee...@gmail.com wrote: Hi, I try to add ui:generateFormat='com.google.gwt.i18n.rebind.format.PropertiesFormat' ui:generateKeys=com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator ui:generateLocales=default when I compile I see some log message like cretate file for i18n ecc. But when it finish I didn't find the file generated Have you an example? Thansk... Ale On 15 Feb, 18:56, ale aleee...@gmail.com wrote: ok, I had read the documentation that you linked, but until now I had not understood :-) thanks again, I will try. On 15 Feb, 17:42, Christian Goudreau goudreau.christ...@gmail.com wrote: If you add : ui:generateFormat='com.google.gwt.i18n.rebind.format.PropertiesFormat' ui:generateKeys=com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator ui:generateLocales=default in your .ui.xml file, GWT compiler should create your .propertie file for your .ui.xml file. Then you only have to copy that file, add your local _fr_CA, and it should works. http://code.google.com/intl/fr/webtoolkit/doc/latest/DevGuideUiBinder. .. Christian On Mon, Feb 15, 2010 at 11:21 AM, ale aleee...@gmail.com wrote: ok, so every ui.xml has a specific message resource file... (or one for package...) It's ok. and the name? is right 'messages.properties'? thanks again. Alessandro On 15 Feb, 16:21, Christian Goudreau goudreau.christ...@gmail.com wrote: Normally, same directory as you .ui.xml file. Christian On Mon, Feb 15, 2010 at 10:17 AM, ale aleee...@gmail.com wrote: ehm, but where should I put the properties file? under the client folder? thanks.. On 15 Feb, 13:45, Christian Goudreau goudreau.christ...@gmail.com wrote: It's supposed to be automatic. You have to specify the locale in your HTML and then, GWT Compiler does the tricks. For me it always worked fine in Dev, but once I came to publish, my Images didn't change according to my locales... Christian On Sun, Feb 14, 2010 at 7:05 PM, ale aleee...@gmail.com wrote: Hi, I can't understand how usei18nwith gwt 2.0 I follow the manual and I made ma xml like this: g:HTMLPanel styleName='{style.panel}' g:Anchor ui:field=loginLink ui:msg description=loginLogin/ui:msg /g:Anchor /g:HTMLPanel than i implements a listbox (like in the example 'showcase') that have an event that change the locale. than I wrote 2 files messages.properties messages_fr.properties I can't understand how to tell to the xml the name of the properties file... (and so the change of the locale has no effect...) Thanks. Regards Ale -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252Bu nsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252Bu nsubscr...@googlegroups.com google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%252 52bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252Bu nsubscr...@googlegroups.com google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%252 52bunsubscr...@googlegroups.com google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%252 52bunsubscr...@googlegroups.com google-web-toolkit%25252bunsubscr...@googlegroups.comgoogle-web-toolkit%2 525252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr
Re: i18n and uiBinder
ehm, but where should I put the properties file? under the client folder? thanks.. On 15 Feb, 13:45, Christian Goudreau goudreau.christ...@gmail.com wrote: It's supposed to be automatic. You have to specify the locale in your HTML and then, GWT Compiler does the tricks. For me it always worked fine in Dev, but once I came to publish, my Images didn't change according to my locales... Christian On Sun, Feb 14, 2010 at 7:05 PM, ale aleee...@gmail.com wrote: Hi, I can't understand how use i18n with gwt 2.0 I follow the manual and I made ma xml like this: g:HTMLPanel styleName='{style.panel}' g:Anchor ui:field=loginLink ui:msg description=loginLogin/ui:msg /g:Anchor /g:HTMLPanel than i implements a listbox (like in the example 'showcase') that have an event that change the locale. than I wrote 2 files messages.properties messages_fr.properties I can't understand how to tell to the xml the name of the properties file... (and so the change of the locale has no effect...) Thanks. Regards Ale -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: i18n and uiBinder
ok, so every ui.xml has a specific message resource file... (or one for package...) It's ok. and the name? is right 'messages.properties'? thanks again. Alessandro On 15 Feb, 16:21, Christian Goudreau goudreau.christ...@gmail.com wrote: Normally, same directory as you .ui.xml file. Christian On Mon, Feb 15, 2010 at 10:17 AM, ale aleee...@gmail.com wrote: ehm, but where should I put the properties file? under the client folder? thanks.. On 15 Feb, 13:45, Christian Goudreau goudreau.christ...@gmail.com wrote: It's supposed to be automatic. You have to specify the locale in your HTML and then, GWT Compiler does the tricks. For me it always worked fine in Dev, but once I came to publish, my Images didn't change according to my locales... Christian On Sun, Feb 14, 2010 at 7:05 PM, ale aleee...@gmail.com wrote: Hi, I can't understand how use i18n with gwt 2.0 I follow the manual and I made ma xml like this: g:HTMLPanel styleName='{style.panel}' g:Anchor ui:field=loginLink ui:msg description=loginLogin/ui:msg /g:Anchor /g:HTMLPanel than i implements a listbox (like in the example 'showcase') that have an event that change the locale. than I wrote 2 files messages.properties messages_fr.properties I can't understand how to tell to the xml the name of the properties file... (and so the change of the locale has no effect...) Thanks. Regards Ale -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: i18n and uiBinder
ok, I had read the documentation that you linked, but until now I had not understood :-) thanks again, I will try. On 15 Feb, 17:42, Christian Goudreau goudreau.christ...@gmail.com wrote: If you add : ui:generateFormat='com.google.gwt.i18n.rebind.format.PropertiesFormat' ui:generateKeys=com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator ui:generateLocales=default in your .ui.xml file, GWT compiler should create your .propertie file for your .ui.xml file. Then you only have to copy that file, add your local _fr_CA, and it should works. http://code.google.com/intl/fr/webtoolkit/doc/latest/DevGuideUiBinder... Christian On Mon, Feb 15, 2010 at 11:21 AM, ale aleee...@gmail.com wrote: ok, so every ui.xml has a specific message resource file... (or one for package...) It's ok. and the name? is right 'messages.properties'? thanks again. Alessandro On 15 Feb, 16:21, Christian Goudreau goudreau.christ...@gmail.com wrote: Normally, same directory as you .ui.xml file. Christian On Mon, Feb 15, 2010 at 10:17 AM, ale aleee...@gmail.com wrote: ehm, but where should I put the properties file? under the client folder? thanks.. On 15 Feb, 13:45, Christian Goudreau goudreau.christ...@gmail.com wrote: It's supposed to be automatic. You have to specify the locale in your HTML and then, GWT Compiler does the tricks. For me it always worked fine in Dev, but once I came to publish, my Images didn't change according to my locales... Christian On Sun, Feb 14, 2010 at 7:05 PM, ale aleee...@gmail.com wrote: Hi, I can't understand how use i18n with gwt 2.0 I follow the manual and I made ma xml like this: g:HTMLPanel styleName='{style.panel}' g:Anchor ui:field=loginLink ui:msg description=loginLogin/ui:msg /g:Anchor /g:HTMLPanel than i implements a listbox (like in the example 'showcase') that have an event that change the locale. than I wrote 2 files messages.properties messages_fr.properties I can't understand how to tell to the xml the name of the properties file... (and so the change of the locale has no effect...) Thanks. Regards Ale -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%25252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: i18n and uiBinder
ok, I had read the documentation that you linked, but until now I had not understood :-) thanks again, I will try. On 15 Feb, 17:42, Christian Goudreau goudreau.christ...@gmail.com wrote: If you add : ui:generateFormat='com.google.gwt.i18n.rebind.format.PropertiesFormat' ui:generateKeys=com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator ui:generateLocales=default in your .ui.xml file, GWT compiler should create your .propertie file for your .ui.xml file. Then you only have to copy that file, add your local _fr_CA, and it should works. http://code.google.com/intl/fr/webtoolkit/doc/latest/DevGuideUiBinder... Christian On Mon, Feb 15, 2010 at 11:21 AM, ale aleee...@gmail.com wrote: ok, so every ui.xml has a specific message resource file... (or one for package...) It's ok. and the name? is right 'messages.properties'? thanks again. Alessandro On 15 Feb, 16:21, Christian Goudreau goudreau.christ...@gmail.com wrote: Normally, same directory as you .ui.xml file. Christian On Mon, Feb 15, 2010 at 10:17 AM, ale aleee...@gmail.com wrote: ehm, but where should I put the properties file? under the client folder? thanks.. On 15 Feb, 13:45, Christian Goudreau goudreau.christ...@gmail.com wrote: It's supposed to be automatic. You have to specify the locale in your HTML and then, GWT Compiler does the tricks. For me it always worked fine in Dev, but once I came to publish, my Images didn't change according to my locales... Christian On Sun, Feb 14, 2010 at 7:05 PM, ale aleee...@gmail.com wrote: Hi, I can't understand how use i18n with gwt 2.0 I follow the manual and I made ma xml like this: g:HTMLPanel styleName='{style.panel}' g:Anchor ui:field=loginLink ui:msg description=loginLogin/ui:msg /g:Anchor /g:HTMLPanel than i implements a listbox (like in the example 'showcase') that have an event that change the locale. than I wrote 2 files messages.properties messages_fr.properties I can't understand how to tell to the xml the name of the properties file... (and so the change of the locale has no effect...) Thanks. Regards Ale -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%25252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
i18n and uiBinder
Hi, I can't understand how use i18n with gwt 2.0 I follow the manual and I made ma xml like this: g:HTMLPanel styleName='{style.panel}' g:Anchor ui:field=loginLink ui:msg description=loginLogin/ui:msg /g:Anchor /g:HTMLPanel than i implements a listbox (like in the example 'showcase') that have an event that change the locale. than I wrote 2 files messages.properties messages_fr.properties I can't understand how to tell to the xml the name of the properties file... (and so the change of the locale has no effect...) Thanks. Regards Ale -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Advice on UIBinder
Ok , thanks for the suggest. I'n not sure to have follow the best-practices, what is the command pattern? Do you have some good link to find the best pratices? Thanks again. Alessandro On Jan 26, 8:06 pm, Mirco mirco.li...@gmail.com wrote: Hi Alessandro, IMHO, I wouldn't dare the (wasted) time in redoing the views using UIBinder. If your views are working beautifully right now, then why would you spend more time on them? If you have followed the best-practices, your views are likely to be silly (bunch of set and get methods). Rather, I would spend time in implementing cool stuff as client cache (if it can be done in your app), using the command pattern (if you don't already), improve client experience (I'd suggest Speed Tracer) with GWT.runAsync() calls, and more. GWT 2.0 is a new whole world and you can get some real fun in discovering it :) Last, definitely testing as much as you can your application. That would make an application beautiful ;) Cheers, Mirco On Jan 26, 2010, at 10:55 AM, ale wrote: Hello, I'm lookin for an advice. I developed an application with GWT 1.7 and I have developed without looking the style; now I finished all the function and I want to make it beautiful. I recompile all with GWT 2.0 and works well, in your opinion is worth redo all the pages using the UIBinder? What are the benefits? The alternative is to edit (create) only CSS. Thanks, greetings Alessandro -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Advice on UIBinder
Hello, I'm lookin for an advice. I developed an application with GWT 1.7 and I have developed without looking the style; now I finished all the function and I want to make it beautiful. I recompile all with GWT 2.0 and works well, in your opinion is worth redo all the pages using the UIBinder? What are the benefits? The alternative is to edit (create) only CSS. Thanks, greetings Alessandro -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestBuilder problem retrieve response
Thanks! I will study your links, and try. Thanks again. On Jan 18, 11:21 pm, Thomas Broyer t.bro...@gmail.com wrote: On 18 jan, 21:16, ale aleee...@gmail.com wrote: no one has a similar problem? (and solved it?) Everyone once faced the Same-Origin Policy.http://code.google.com/webtoolkit/doc/latest/FAQ_Server.html#What_is_... In GWT 2.0 you can now use a JsonpRequest.http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g... In previous versions, have a look at the FAQ:http://code.google.com/webtoolkit/doc/1.6/FAQ_Server.html#How_can_I_d... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RequestBuilder problem retrieve response
hi everybody, I have a problem using RequestBuilder. I would like to use the yahoo GeoPlanet service http://developer.yahoo.com/geo/geoplanet/guide/concepts.html With this service you can retreive the WOEID of a town from the name... If I type the url on a browser i receive a file xml, but if I try to call using RequestBuilder I don't receive anything... this is my code: private String findWoeid(String city) { cityWoeid = null; // example 2502265; String url = http://where.yahooapis.com/v1/places.q(+city+)? appid=+Application.YAHOO_WHEREAPI_KEY; System.out.println( url); RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, URL.encode(url)); try { Request request = builder.sendRequest(null, new RequestCallback() { @Override public void onResponseReceived(Request request, Response response) { if (200 == response.getStatusCode()) { cityWoeid = response.getText(); } } @Override public void onError(Request request, Throwable exception) { exception.printStackTrace(); } }); } catch (RequestException e) { e.printStackTrace(); } return cityWoeid; } I don't receive any error, but response.getStatusCode() is always zero. Where I wrong? Sorry for my english... Thanks! Regards. Ale -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem with AjaxLoader and AJAX Feed API
I try and it works! thanks a lot, again. Regards On Jan 14, 9:47 am, ale aleee...@gmail.com wrote: Ok, I will try (now I'm on an other pc, far from my project...) It 'obvious that I can not use javascript from GWT :-), do yuo know where can I find a tutorial, or some doc? thanks, thanks, thanks! Ale On Jan 14, 3:19 am, FKereki fker...@gmail.com wrote: I think you are forgetting to substitute $doc for document. Good luck! F.Kereki -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem with AjaxLoader and AJAX Feed API
Ok, I will try (now I'm on an other pc, far from my project...) It 'obvious that I can not use javascript from GWT :-), do yuo know where can I find a tutorial, or some doc? thanks, thanks, thanks! Ale On Jan 14, 3:19 am, FKereki fker...@gmail.com wrote: I think you are forgetting to substitute $doc for document. Good luck! F.Kereki -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem with AjaxLoader and AJAX Feed API
No one? On Jan 12, 1:41 am, ale aleee...@gmail.com wrote: Hi everybody, I'm trying to include a feed rss in my application, I'm using the AjaxLoader library http://code.google.com/docreader/#p=google-documentation-reader,gwt-g... and the Google AJAX Feed API http://code.google.com/intl/it/apis/ajaxfeeds/ this is my code: ... AjaxLoader.init(KEY); // I omitted the key only here AjaxLoaderOptions options = AjaxLoaderOptions.newInstance(); AjaxLoader.loadApi(feeds, 1, new Runnable() { public void run() { rssLoaded(); } }, options); ... private void rssLoaded(){ panel = new SimplePanel(); nativeMakeRssPanel(panel()); pnlRss.setWidget(panel); } ... private native void nativeMakeWeatherPanel(Element feedDiv) /*-{ var feed = new $wnd.google.feeds.Feed(http://www.digg.com/rss/ index.xml); feed.load(function(result) { if (!result.error) { var container = feedDiv; for (var i = 0; i result.feed.entries.length; i++) { var entry = result.feed.entries[i]; var div = document.createElement(div); div.appendChild(document.createTextNode(entry.title)); container.appendChild(div); } } }); }-*/; I only put the javascript in the tutorial of the feed api instead of the javascript in the tutorial oh ajaxloader (that used visualization api, and work fine...) the error is: com.google.gwt.dev.js.JsParserException: illegal character at com.google.gwt.dev.js.JsParser$1.error(JsParser.java:88) at com.google.gwt.dev.js.rhino.Context.reportError(Context.java:459) at com.google.gwt.dev.js.rhino.TokenStream.reportSyntaxError (TokenStream.java:1553) ... can you help me? Thanks.. ah, if you know a simplest method to load rss fedd I will appreciate... my aim is to load the Yahoo! Weather RSS Feed... the example of ibm of three years ago doesen't work ... Thanks! 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Problem with AjaxLoader and AJAX Feed API
Hi everybody, I'm trying to include a feed rss in my application, I'm using the AjaxLoader library http://code.google.com/docreader/#p=google-documentation-reader,gwt-google-apiss=gwt-google-apist=AjaxLoader and the Google AJAX Feed API http://code.google.com/intl/it/apis/ajaxfeeds/ this is my code: ... AjaxLoader.init(KEY); // I omitted the key only here AjaxLoaderOptions options = AjaxLoaderOptions.newInstance(); AjaxLoader.loadApi(feeds, 1, new Runnable() { public void run() { rssLoaded(); } }, options); ... private void rssLoaded(){ panel = new SimplePanel(); nativeMakeRssPanel(panel()); pnlRss.setWidget(panel); } ... private native void nativeMakeWeatherPanel(Element feedDiv) /*-{ var feed = new $wnd.google.feeds.Feed(http://www.digg.com/rss/ index.xml); feed.load(function(result) { if (!result.error) { var container = feedDiv; for (var i = 0; i result.feed.entries.length; i++) { var entry = result.feed.entries[i]; var div = document.createElement(div); div.appendChild(document.createTextNode(entry.title)); container.appendChild(div); } } }); }-*/; I only put the javascript in the tutorial of the feed api instead of the javascript in the tutorial oh ajaxloader (that used visualization api, and work fine...) the error is: com.google.gwt.dev.js.JsParserException: illegal character at com.google.gwt.dev.js.JsParser$1.error(JsParser.java:88) at com.google.gwt.dev.js.rhino.Context.reportError(Context.java:459) at com.google.gwt.dev.js.rhino.TokenStream.reportSyntaxError (TokenStream.java:1553) ... can you help me? Thanks.. ah, if you know a simplest method to load rss fedd I will appreciate... my aim is to load the Yahoo! Weather RSS Feed... the example of ibm of three years ago doesen't work ... Thanks! 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
better place for image
Hi, I can not decide where put some image in a application, image like logo, icon for button, ecc. Is better put it in css or use the ImageBundle and AbstractImagePrototype? I prefer the solution that make the load of the page faster. Thanks! Bye Alessandro -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: better place for image
Thanks for the answer, I will try your example. I'm a little afraid to upgrade to gwt 2.0, because I have a lot of pages developed with 1.7 ... and the idea of rewrite a lot of code now... Cheers Ale On Jan 8, 3:06 pm, DaveC david.andrew.chap...@googlemail.com wrote: I use ClientBundle (and CssResource) (I'm using GWT 2 by the way...) e.g. public interface RichToolTipClientBundle extends ClientBundle { @Source(resources/css/rich-tooltip.css) public RichToolTipCssResource getCss(); @Source(resources/img/logo.png) public ImageResource getLogo(); @Source(resources/img/tooltip-top-left.png) @ImageOptions(repeatStyle = RepeatStyle.None) public ImageResource tooltipTopLeft(); public interface RichToolTipCssResource extends CssResource { @ClassName(tooltip) String getToolTipStyleName(); } } public class RichToolTipResources { private static RichToolTipClientBundle INSTANCE; public static final RichToolTipClientBundle getBundle() { if (INSTANCE == null) { INSTANCE = GWT.create(RichToolTipClientBundle.class); INSTANCE.getCss().ensureInjected(); // or StyleInjector.inject(INSTANCE.getCss().getText(), true); } return INSTANCE; } } In your css... @sprite .tooltip { gwt-image: 'tooltipTopLeft'; } then: public ToolTip extends Composite { // injects the css... private RichToolTipClientBundle resources = RichToolTipResources.getBundle(); public ToolTip() { FlowPanel panel = new FlowPanel(); initWidget(panel); addStyleName(resources.getCss().getToolTipStyleName()); Image img = new Image(resources.getLogo()); panel.add(img); } } Using these methods makes use of the GWT compiler and all it clever optimisation such as inlining the images using data-uris when supported... which help make the page load faster. Hope this helps, Cheers, Dave On Jan 8, 9:03 am, ale aleee...@gmail.com wrote: Hi, I can not decide where put some image in a application, image like logo, icon for button, ecc. Is better put it in css or use the ImageBundle and AbstractImagePrototype? I prefer the solution that make the load of the page faster. Thanks! Bye Alessandro -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
SuggestBox and DTO
Hi, I would like to add object to a suggest box, and when selected I would like to get the object. Is it possible? My problem is that I have a some DTO, that have and id and a description, but the description is not unique: so, in the suggest I have some description repeated (and this is ok), but when I get the selection I would like to know exactly what object was chose... Is it possible? Thanks, bye Ale -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
change style to Menubar
Hi, I would like to change style to a menu, I change the style for MenuBar MenuItem, but when I can't change style to the popup... I would like to remove the shadow and the border... In my css i wrote: .gwt-MenuBar .gwt-MenuItem { background-color: green;} .gwt-MenuBar .menuPopupTopLeft { background-color: red;} .gwt-MenuBar .menuPopupBottomLeft { background-color: red;} .gwt-MenuBar .menuPopupBottomLeftInner {background-color: red;} .gwt-MenuBar .menuPopupBottomCenter { background-color: red;} .gwt-MenuBar .menuPopupBottomCenterInner { background-color: red;} .gwt-MenuBar .menuPopupBottomRight {background-color: red;} .gwt-MenuBar .menuPopupBottomRightInner { background-color: red;} .gwt-MenuBar .menuPopupTopLeft { background-color: red;} .gwt-MenuBar .menuPopupTopLeftInner { background-color: red;} .gwt-MenuBar .menuPopupTopCenter { background-color: red;} .gwt-MenuBar .menuPopupTopCenterInner { background-color: red;} .gwt-MenuBar .menuPopupTopRight { background-color: red;} .gwt-MenuBar .menuPopupTopRightInner { background-color: red;} .gwt-MenuBar .menuPopupMiddleLeft { background-color: red;} .gwt-MenuBar .menuPopupMiddleLeftInner { background-color: red;} .gwt-MenuBar .menuPopupMiddleCenter { background-color: red;} .gwt-MenuBar .menuPopupMiddleCenterInner { background-color: red;} .gwt-MenuBar .menuPopupMiddleRight { background-color: red;} .gwt-MenuBar .menuPopupMiddleRightInner { background-color: red;} And I can see the item green but the popup is still white with shadow... How can I do? Thanks Ale -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Hosted Mode crashing after Snow Leopard 10.6.2 Update
thanks a lot! It's work fine. On 12 Nov, 12:35, Daniel Kurka kurka.dan...@googlemail.com wrote: I found a very UGLY solution to my problem (which enables me to continue working). I replaced in LowLevelSaf.java public static native void gcUnprotect(int, int); to public static void gcUnprotect(int, int) {} causing the invalid access This is not a real fix, just a very nasty workaround If you run into the same problem you can download a fixed gwt-dev.jar from here: http://www.daniel-kurka.de/gwt-dev-1.7.1-mac-sf-4.0.4-fix.jar -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=.