Re: momentgwt - a GWT wrapper library for momentjs.com
Thanks a lot Sebastian. Can I use this on the server? On Thursday, March 21, 2013 10:22:15 PM UTC+3, Sebastián Gurin wrote: I just released a GWT wrapper for the nice JavaScript library momentjs ( momentjs.com). It resulted on a small and easy to use alternative for working with dates, calendars, intervals, date formats, date internationalization, etc. https://github.com/cancerberoSgx/momentgwt Hope it can be of help to somebody working with dates, calendars, etc. -- 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.
How come when I enable one of the provided themes, RTL is not working anymore!
As stated in the title, I also posted this in the issues list: https://code.google.com/p/google-web-toolkit/issues/detail?id=8067 -- 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: GWT still viable for new projects?
There has been quite some talk about that especially after the release of GWT 2.5 and the transition to a steering committee. Check the following posts: The Future of GWT Report 2012https://vaadin.com/blog/-/blogs/the-future-of-gwt-report-2012 The History and Future of Google Web Toolkithttp://turbomanage.wordpress.com/2012/07/11/the-history-and-future-of-google-web-toolkit/ On Saturday, February 23, 2013 2:50:34 AM UTC+3, Joe Attardi wrote: With recent things like the development of Dart and the moving of GWT to a steering committee, I'm a little uncertain about GWT's future. To those of you more experienced with it - does it still make sense to use for new projects? -- 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.
Is using GWT interfaces like HasText and HasValue considered good for portability?
As it says in the title, especially if I'm considering using mgwt or supporting Android platform. -- 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.
Confusion with MVP.
Hi, I'm starting to get more confused as I'm going deeper with MVP. In my project I have a view which has many video 'tiles' (thumbnails with headlines). Should I make each tile a view by its own, and each one of these views would have its own presenter? Is that a normal solution or am I doing a horrible thing? -- 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: In MVP should/could the view depends on the presenter to be initialised?
Thanks Thomas for your help and your work on GWT, I really think that GWT wouldn't be as great as it is now without you. It's probably better to make the that into the view instead of the presenter. I was overcomplicating things. Cheers On Sunday, February 17, 2013 12:53:34 PM UTC+3, Thomas Broyer wrote: On Saturday, February 16, 2013 3:39:15 AM UTC+1, MAQ wrote: Hi, In my view there's a ListBox that its content should depend on the user's locale. I'm confused on whether the deferred binding (to create the list's internationalised content) should be in the presenter or in the view. I feel it should be in the presenter, however in my code the view is created before the presenter (as it should be I guess), so I can't initialise the view this way. I know I can make things work, but I would like to learn the best practice way. I'm sorry if I'm not making much sense, as I'm new to MVP, I18N and GWT in general. If the values are fixed, and only their label change (i18n), then in my book it's only about the view, not the presenter. The presenter should deal with logic (presentation logic, business logic), and i18n is not part of it. -- 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.
In MVP should/could the view depends on the presenter to be initialised?
Hi, In my view there's a ListBox that its content should depend on the user's locale. I'm confused on whether the deferred binding (to create the list's internationalised content) should be in the presenter or in the view. I feel it should be in the presenter, however in my code the view is created before the presenter (as it should be I guess), so I can't initialise the view this way. I know I can make things work, but I would like to learn the best practice way. I'm sorry if I'm not making much sense, as I'm new to MVP, I18N and GWT in general. Cheers, Mo -- 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.
In MVP is there a difference between declaring the 'binding' interface in the presenter versus the view?
I saw a lot of sample code, most of them use the following way of creating MVP: public interface ContactsViewT { public interface PresenterT { void onAddButtonClicked(); void onDeleteButtonClicked(); void onItemClicked(T clickedItem); void onItemSelected(T selectedItem); } void setPresenter(PresenterT presenter); void setColumnDefinitions(ListColumnDefinitionT columnDefinitions); void setRowData(ListT rowData); Widget asWidget(); } Then let the presenter implement ContactsView.PresenterContact. However some do the following: public class ContactsPresenter implements Presenter { public interface Display { HasClickHandlers getAddButton(); HasClickHandlers getDeleteButton(); HasClickHandlers getList(); void setData(ListString data); int getClickedRow(ClickEvent event); ListInteger getSelectedRows(); Widget asWidget(); } //. } Then let the view implement the ContactsPresenter.Display. Are there any good points for doing either methods, maybe one is better suited for UiBinder? 2- Another question, is the view not suppose to directly communicate with the model at all. For instance, if I've got a ListBox that should be populated from an Enum class that sits in the model, should that be done through the presenter? -- 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/-/MCtXV5RXLckJ. 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.
SEO problem on GAE
Hi, all, I am writing a GAE/GWT application and trying to set up the SEO/crawler handling, so that : http://xxx.appspot.com/?_escaped_fragment_=PageName can be caught in the filter , in order to serve the cached GWT pages. However, the filter doesn't seem to be catching the request,even though it sets to url-pattern as /* I didn't have this problem when deploying to a non-cloud environment , i.e. tomcat server on a standalone system. Does anyone have a suggest for this? GWT/GAE/SEO should work :-) Thanks! maq -- 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/-/GY-osRol1HEJ. 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.
Some newbie questions regarding resources and ClientBundle.
Say I've got an app which includes a lot (more than 100) images to be used. For instance these images could be part of a game of some sort. Within a page the user will only need to fetch about 5 to 10 images. What's a good way to implement that? Should I build a single ClientBundle class which has all of the 100 resources? (I reckon that would be a bad design) Basically I want to do something like this: Resources imageResources = GWT.create(Resources.class); Image img = new Image(imageResources.image(635)); Which would return a reference to the image of id 635. I thought of this design, I create an interface eg. HasAppResource which has some methods eg. getXImage(). Then the relevant entities would implement this interface and make the method return the ImageResource. I'm not even sure how to do this though. Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/3n1xsudtZ-IJ. 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.
Coming from an OOP mentality, how much of OOP ideas/practices should I use?
Hi, I'm still learning GWT and building my GWT project as I'm learning. I started to think about my domain model, and was wondering if I should keep the same practices that are encouraged by OOP. Specifically, should I keep my classes as simple and concrete as possible, or utilize the inheritance and nevermind the number of classes and interfaces? I'll probably use the following in my project: * GAE with Objectify * RequestFactory * MVP (GWTP) I hope this is a good and clear question. Thanks, Mo -- 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/-/HBwXzqatGpYJ. 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: When one has the option to use XML or JSON to communicate with JS libraries, which one would be better?
I did look at that project, however it does not include youtube API. So, if I had to integrate the youtube API with my GWT app, then my best option would be the JSON path? On Thursday, July 19, 2012 2:39:44 AM UTC+10, Thomas Broyer wrote: On Wednesday, July 18, 2012 4:52:32 AM UTC+2, MAQ wrote: Hi, I hope the question is clear, I'm a total GWT newbie. My project requires the use of some of Google's APIs. Two main solutions are provided one for XML and another for JSON (gdata-java-client and google-api-java-client). Which one would be more suitable (easier, more compatible etc.)? Or is it a mere personal choice? With GWT, you'll likely use gwt-google-apis rather than the above 2 projects (which i'd bet are not GWT-compatible). I believe gwt-google-apis uses JSON, but that's a detail, as there aren't actually any existing alternative. -- 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/-/L009je85DRoJ. 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.
When one has the option to use XML or JSON to communicate with JS libraries, which one would be better?
Hi, I hope the question is clear, I'm a total GWT newbie. My project requires the use of some of Google's APIs. Two main solutions are provided one for XML and another for JSON (gdata-java-client and google-api-java-client). Which one would be more suitable (easier, more compatible etc.)? Or is it a mere personal choice? Regards, Mo -- 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/-/8RtTIWO0YYkJ. 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: When one has the option to use XML or JSON to communicate with JS libraries, which one would be better?
Sorry, I meant 2 options provided by Google APIs. On Wednesday, July 18, 2012 2:50:51 PM UTC+10, Robert W wrote: I don't understant in what context you use solution word but generally json is standard for api use, with gwt overlays mechanism it easy to use in java typing model. On Wednesday, July 18, 2012 4:52:32 AM UTC+2, MAQ wrote: Hi, I hope the question is clear, I'm a total GWT newbie. My project requires the use of some of Google's APIs. Two main solutions are provided one for XML and another for JSON (gdata-java-client and google-api-java-client). Which one would be more suitable (easier, more compatible etc.)? Or is it a mere personal choice? Regards, Mo -- 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/-/a-UmrmuD--IJ. 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.
DFP in GWT/GAE application
Hi, Has any one integrated DFP(Google DoubleClick for Publishers) into a GWT application? I am planning a GWT application on Google App Engine. While enjoying the all google solution to store data (GAE datastore) and display them (GWT client widgets), now I am wondering : would Google DFP work with GWT/GAE? (at all??) Any suggestion is highly appreciated. Thanks! maq -- 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/-/fSIFJz7ijY4J. 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.
What's a good way to use Youtube with GWT.
Hi, I would like to be able to integrate Youtube clips within my gwt project. I wasn't able to use gwt-youtube-apihttp://code.google.com/p/gwt-youtube-api/ successfully. Should I use the offical Youtube JavaScript API, or try again with gwt-youtube-api? Thanks, MAQ -- 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/-/XRiEKxz6ekoJ. 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.
User maintained HTML in GWT app - any security concerns?
Hi, all, If I were to allow user to create their own HTML code which being displayed in a HTML widget, so that they can maintain their content. Is there any security concern, such as they can inject javascripts into the HTML? Any best practices or comments is appreciated! -maq -- 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.
redirect GWT application URL
Hi, I want to have people bookmark some internal state of my GWT app. The URL has format of http://mything.com/#blah or http://mything.com/#!blah (! added for google crawler). This URL doesn't look good. It will be nicer to just have http://mything.com/blah I am playing with a filter in the web.xml so it can redirect, but having issues. Has anyone dealt with this problem? Thanks in advance! -maq -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT SEO
Hi, Does any one have a good tutorial on how to turn GWT application into crawler friendly? I found some information talking about AJAX/crawler solution and such. But nothing like : for GWT application, here is what you do, 1,2,3... Thanks in advance! maq -- 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.
HTML widget sometimes doesn't render 3rd party Javascript widget
Hi, I tried to use GWT HTML widget to include a third party widget such as javascript code for Expedia banner. It doesn't seem always working when I test it. If the same javascript is directly put in the static HTML host page, it always works. Has anyone seen similar problem? - maq -- 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: HTML widget sometimes doesn't render 3rd party Javascript widget
Gabriel, Thanks for reply. Apologize for not being clear about my problem. I was not trying to calling any javascripts through JSNI. I simply want to include the banner scripts got from Expedia affiliate search form in a GWT HTML widget. div id='searchform_634420069924922689'/divscript type='text/ javascript' src='http://widgets.partners.expedia.com/daily/shared/ affiliates/WidgetService.aspx? partner=cjpid=99size=120x600window=newbranded=truewidgetname=searchformdivid=searchform_634420069924922689'/ script So I created HTML object with the above content and lay it out along with other GWT widgets. But it shows up only in a Firefox on SUSE. On windows, neither firefox and IE displays it. (I guess it may be dependent on the browser.) Similar problem happens to include the widget script using GWT HTML from addthis.com - maq -- 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.