mp3 resources - can they be played from within GWT?
Is there any way (a widget, maybe) I can play an MP3 that I have as gwt resource, without leaving gwt or sending the user to a new browser tab? An MP3 player widget, maybe? 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/-/0wm-MgunAdAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Can you build a flickr like app in gwt?
I started working with GWT images very recently using resource bundles (where the images are linked in at compile time), and was wondering if it's possible to build a site with many (millions) of photos or mp3s using GWT. How does one link in photos at runtime so they don't get cached? 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/-/ObYtK1ZxB0IJ. 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: Are you happy with GWT?
Yes. I think it's the best available tool for building enterprise web apps. On Friday, October 5, 2012 11:53:17 AM UTC-4, Charlie Youakim wrote: I'm deciding on whether to switch my team to GWT. I think the biggest thing for me as the tech lead for the company is Are you happy with your choice to use GWT? My reasons for thinking to switch: -Javascript is a fast and free language, sometimes too fast and free for a large team. Coding standards can vary from developer to developer, and maintaining architectures can be difficult -Javascript mistakes are only caught in runtime. The fact that GWT(Java) would catch 90+% of our simple mistakes makes me more confident that our clients won't. -Javascript allows for rapid development, but not so rapid bug fixing. -Strict Java coding + a strong architecture at the outset creates a great foundation to build from. I've even seen this in my firm's Android apps. They are very stable. But for me, I'd really like to hear from developers active in the community. Are you happy? Or do you wish you went a different route? My goal is to have my dev team work more on new projects rather than fixing old projects. I am hoping that GWT can help with that. thoughts? -Charlie -- 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/-/tM8hBTF6G9IJ. 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.
page completely fails to load on ie8, works on safari, firefox, chrome, ie9
There's a good chance this is not gwt-related, but if anyone has run into this and has any quick suggestions it would be greatly appreciated. thanks much. -- 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/-/lL_QBhCql3MJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.5 RC1 Is Here!
Great news. Congrats GWT team! On Wednesday, June 27, 2012 4:39:07 PM UTC-4, Rajeev Dayal wrote: Hey all, We're excited to announce the GWT 2.5 Release Candidate! Read about it on the GWT Blog http://googlewebtoolkit.blogspot.com/2012/06/gwt-2.html, and download it here http://developers.google.com/web-toolkit/download (bottom of the page). The RC has been uploaded to Maven Central with the version string of 2.5.0-rc1. Please give it a try and let us know your feedback! Also, many thanks to all of you for your contributions. Without your help, we wouldn't have had a GWT 2.5 release at all! -Rajeev, on behalf of the GWT team -- 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/-/R5PISRlmgOwJ. 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.
Data (objects) on the first view?
Hi, This question was asked before (2007) but I'm wondering if there's a better way to load data in the first page. I have a shopping application that displays product data in the first page, then when you click on a product it loads a second page with more detail. It would be preferable to pass a product object to the client on the first page, so that common data elements (name, id, price) could be handled the same way on both pages. I can't see anyway to do this, aside from using a callback in the module load method to fetch the product list and then render those page elements. This adds a _very_ noticeable lag to the rendering on the first page. If I push the same data as text labels, etc. It's much faster and the page renders seamlessly. Is there any way to push non-visual data to the client on the first page? 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/-/sn7ip0lLgZIJ. 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: An app with two distinct user interfaces and entry points
Ok thanks. I did that and immediately started to get a compiler error, but it was just a coincidence. Increased heap size limit and all is working fine. Thanks again. On Mar 24, 12:14 am, Clint Checketts checke...@gmail.com wrote: You can create 2 separate web pages with the different entry point javascript script tag in each one. On Fri, Mar 23, 2012 at 8:34 PM, jones34 ljw1...@gmail.com wrote: Hi, I would like to create a GWT application with two distinct UIs: one consumer facing, and the other for data administration that's only open to authenticated users. The two need to share the same database. I would normally build two separate applications, but I'm working with AppEngine and I can't see how to deploy to distinct WARs to the same AppEngine application, or alternately, how to have two distinct AppEngine Applications share a datastore Is it possible to have two distinct GWT UIs in the same war? If so, any pointers to documentation on how to structure the projects. Thanks in advance for your help. Larry -- 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.
Celllist with multiple cell types or styles?
Hi, I'd like to be able to insert section dividers between groups of cells in my cell list, just like the iPhone can do with a sorted list (example being the alpha sorted list with a separator at the beginning of each section starting with A, B, etc.). If I can't have multiple cell types, can i apply different styles to different cells in the same list? Thanks. Larry -- 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.
An app with two distinct user interfaces and entry points
Hi, I would like to create a GWT application with two distinct UIs: one consumer facing, and the other for data administration that's only open to authenticated users. The two need to share the same database. I would normally build two separate applications, but I'm working with AppEngine and I can't see how to deploy to distinct WARs to the same AppEngine application, or alternately, how to have two distinct AppEngine Applications share a datastore Is it possible to have two distinct GWT UIs in the same war? If so, any pointers to documentation on how to structure the projects. Thanks in advance for your help. Larry -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
how do you cause the body element to scroll?
Hi I have a very simple layout, with a header, footer and variable length center element. I want to do two things: 1. wrap the entire thing in a div class=container element so I can use Twitter's Bootstrap CSS to layout my work. 2. Have the whole thing scroll using the native browser scrollbar when the center element is sufficiently large that not all the content can appear on the screen. The closest I've been able to get is to use a ScrollPanel as the outside panel and set its class to container, which adds an interior scroll bar around the whole thing. but it looks 'wrong' compared to having the full window scroll. Can anybody help me with this? It seems like a relatively simple thing. Thanks much. larry -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how do you cause the body element to scroll?
figured it out: mixing the two layout frameworks in a bad way. On Jan 15, 5:54 pm, jones34 ljw1...@gmail.com wrote: Hi I have a very simple layout, with a header, footer and variable length center element. I want to do two things: 1. wrap the entire thing in a div class=container element so I can use Twitter's Bootstrap CSS to layout my work. 2. Have the whole thing scroll using the native browser scrollbar when the center element is sufficiently large that not all the content can appear on the screen. The closest I've been able to get is to use a ScrollPanel as the outside panel and set its class to container, which adds an interior scroll bar around the whole thing. but it looks 'wrong' compared to having the full window scroll. Can anybody help me with this? It seems like a relatively simple thing. Thanks much. larry -- 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.
Upgraded to 2.2 broke hibernate 3.6 using JPA in Intellij Idea
I updated to 2.2 and started immediately getting hibernate exceptions on the first attempt to use the database (see below) in my development environment Intellij Idea 10. I suspect that updating stomps something in my classpath or just reorders the class path in a way that makes hibernate fail. Has anyone seen this? Does anyone know which jars/classes might be conflicting? thanks. Caused by: javax.persistence.PersistenceException: [PersistenceUnit: vingenius] Unable to configure EntityManagerFactory at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java: 374) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java: 56) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java: 78) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java: 54) at us.vingeni.vingenius.server.db.DAO.clinit(DAO.java:29) ... 32 more Caused by: org.hibernate.HibernateException: Unable to get the default Bean Validation factory at org.hibernate.cfg.beanvalidation.BeanValidationActivator.applyDDL(BeanValidationActivator.java: 127) at org.hibernate.cfg.Configuration.applyBeanValidationConstraintsOnDDL(Configuration.java: 1674) at org.hibernate.cfg.Configuration.applyConstraintsToDDL(Configuration.java: 1624) at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java: 1415) at org.hibernate.cfg.Configuration.buildMappings(Configuration.java: 1345) at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java: 1477) at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java: 193) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java: 1096) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java: 278) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java: 362) ... 36 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at org.hibernate.cfg.beanvalidation.BeanValidationActivator.applyDDL(BeanValidationActivator.java: 118) ... 45 more Caused by: org.hibernate.HibernateException: Unable to build the default ValidatorFactory at org.hibernate.cfg.beanvalidation.TypeSafeActivator.getValidatorFactory(TypeSafeActivator.java: 345) at org.hibernate.cfg.beanvalidation.TypeSafeActivator.applyDDL(TypeSafeActivator.java: 106) ... 50 more Caused by: javax.validation.ValidationException: Unable to find a default provider at javax.validation.Validation $GenericBootstrapImpl.configure(Validation.java:264) at javax.validation.Validation.buildDefaultValidatorFactory(Validation.java: 111) at org.hibernate.cfg.beanvalidation.TypeSafeActivator.getValidatorFactory(TypeSafeActivator.java: 342) ... 51 more -- 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: Upgraded to 2.2 broke hibernate 3.6 using JPA in Intellij Idea
It seems like 2.2 (or the upgrade process) triggers in hibernate the hallucination that I wanted to use bean validation (maybe it's just the presence of javax.validation in the gwt servlet-dep jar, although it was present in 2.1 as well). If you don't want to use hibernate bean validation, you can add this line to your hibernate persistence.xml file: validation-modeNONE/validation-mode And all is well again. On Feb 28, 2:56 pm, jones34 ljw1...@gmail.com wrote: I updated to 2.2 and started immediately getting hibernate exceptions on the first attempt to use the database (see below) in my development environment Intellij Idea 10. I suspect that updating stomps something in my classpath or just reorders the class path in a way that makes hibernate fail. Has anyone seen this? Does anyone know which jars/classes might be conflicting? thanks. Caused by: javax.persistence.PersistenceException: [PersistenceUnit: vingenius] Unable to configure EntityManagerFactory at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java: 374) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(Hibernate Persistence.java: 56) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java: 78) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java: 54) at us.vingeni.vingenius.server.db.DAO.clinit(DAO.java:29) ... 32 more Caused by: org.hibernate.HibernateException: Unable to get the default Bean Validation factory at org.hibernate.cfg.beanvalidation.BeanValidationActivator.applyDDL(BeanValid ationActivator.java: 127) at org.hibernate.cfg.Configuration.applyBeanValidationConstraintsOnDDL(Configu ration.java: 1674) at org.hibernate.cfg.Configuration.applyConstraintsToDDL(Configuration.java: 1624) at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java: 1415) at org.hibernate.cfg.Configuration.buildMappings(Configuration.java: 1345) at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java: 1477) at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigur ator.java: 193) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java: 1096) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java: 278) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java: 362) ... 36 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java: 25) at org.hibernate.cfg.beanvalidation.BeanValidationActivator.applyDDL(BeanValid ationActivator.java: 118) ... 45 more Caused by: org.hibernate.HibernateException: Unable to build the default ValidatorFactory at org.hibernate.cfg.beanvalidation.TypeSafeActivator.getValidatorFactory(Type SafeActivator.java: 345) at org.hibernate.cfg.beanvalidation.TypeSafeActivator.applyDDL(TypeSafeActivat or.java: 106) ... 50 more Caused by: javax.validation.ValidationException: Unable to find a default provider at javax.validation.Validation $GenericBootstrapImpl.configure(Validation.java:264) at javax.validation.Validation.buildDefaultValidatorFactory(Validation.java: 111) at org.hibernate.cfg.beanvalidation.TypeSafeActivator.getValidatorFactory(Type SafeActivator.java: 342) ... 51 more -- 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.
BlurEvent or how to Insert text in TextBox at Cursor Position
Hi, I want to insert text at a textBox's cursor position in response to a button click. The obvious problem is that the clicking the button removes focus from the textBox, so there's no cursorPos value. (At least I assume that's what's happening.) Is the right way to do this to have the textBox fire a blurEvent, which I can use to get the cursor positon (or is the position gone by then)? Alternately, should I use both key and mouse listeners to constantly track the cursor position so I have it when needed? Or is there another, better way I haven't thought of. Thanks much. -- 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: BlurEvent or how to Insert text in TextBox at Cursor Position
Question withdrawn. Using a blurEvent works fine. I shouldn't hack so early in the morning with so little coffee. On Feb 23, 8:32 am, jones34 ljw1...@gmail.com wrote: Hi, I want to insert text at a textBox's cursor position in response to a button click. The obvious problem is that the clicking the button removes focus from the textBox, so there's no cursorPos value. (At least I assume that's what's happening.) Is the right way to do this to have the textBox fire a blurEvent, which I can use to get the cursor positon (or is the position gone by then)? Alternately, should I use both key and mouse listeners to constantly track the cursor position so I have it when needed? Or is there another, better way I haven't thought of. Thanks much. -- 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.
empty ghost place token getting created
Hi In my application, I'm using the MVP pattern with activities and places. I have a situation where: (1) I explicitely call: placeController.goto(new SomePlace()); (2) The appropriate SomePlaceActivity's start() gets called via event management as expected. (3) This method creates gets a SomePlaceView, and swaps it into the UI (4) An appropriate history event happens and http://mylocalenvironment#SomePlace:someplace appears briefly on my browser's nav bar. Then it gets weird. (5) A new empty String token gets created somehow. (6) It goes through the history management process, causing the defaultPlace to be created (7) The start() method on DefaultPlaceActivity() gets called (8) The app navigates away from SomePlace to DefaultPlace which makes me sad and very confused. I cannot figure out how that empty token gets created and the event handling mechanism gets invoked the second time. The code for this is, of course, spread over many files so its difficult to provide all the relevant code, but I've included much of what I think could be useful here. I'm hoping that people have seen this happen before and can point me to a typical cause. // from my ActivityMapper public Activity getActivity(Place place) { if (place instanceof LoginPlace) return new LoginPresenter((LoginPlace) place, factory); else if (place instanceof SomePlace ) return new SomePlaceActivity((SomePlace) place, factory); else if (place instanceof ForgotPasswordPlace ) return new ForgotPasswordPresenter((ForgotPasswordPlace) place, factory); return null; } // from SomePlace public class SomePlace extends Place { private final String name = somePlace; public SomePlace() { } public String getName() { return name;} public static class Tokenizer implements PlaceTokenizerSomePlace { public String getToken(SomePlace place) { return place.getName(); } public SomePlace getPlace(String token) { return new SomePlace(); } } } // from SomePlaceActivity public class SomePlaceActivity extends AbstractActivity implements Activity { private ClientFactory clientFactory; private SomePlace place; public SomePlaceActivity(SomePlace place, ClientFactory clientFactory){ this.clientFactory=clientFactory; this.place = place; } public void start(AcceptsOneWidget panel, EventBus eventBus) { clientFactory.getMainPanel().replaceCenter(clientFactory.getSomePlaceView().asWidget()); } } // from my entrypoint class's onModuleLoad() method ActivityMapper activityMapper = new ClientFactoryImpl.Controller(clientFactory); ActivityManager activityManager = new ActivityManager(activityMapper, clientFactory.getEventBus()); activityManager.setDisplay(clientFactory.getMainPanel().getCenter()); AppPlaceHistoryMapper historyMapper= GWT.create(AppPlaceHistoryMapper.class); PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(historyMapper); historyHandler.register(placeController, clientFactory.getEventBus(), defaultPlace); // Goes to place represented on URL or default place historyHandler.handleCurrentHistory(); // from my AppPlaceHistoryMapper interface @WithTokenizers( { LoginPlace.Tokenizer.class, SomePlace.Tokenizer.class, ForgotPasswordPlace.Tokenizer.class }) public interface AppPlaceHistoryMapper extends PlaceHistoryMapper { } -- 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: empty ghost place token getting created
another clue? It seems to have something to do with the Tokenizers. If I comment out these places from the @WithTokenizers{} section of my PlaceHistoryMapper definition as shown at the bottom below, the navigation works correctly (in the sense that the correct page is loaded and navigation stops) but there are no bookmarkable urls and the back button does not work. What I'm looking for here is pretty simple: For the places defined so far, I want a url that looks like: http://myDomainEtc#SomePlace with no more specific data needed. I saw in the documentation: Many places in the app might not save any state to the URL, so they could just extend a BasicPlace that declares a PlaceTokenizer that returns a null token. I tried that, with the same result as the original implementation. The URL now looks like http://myDomainEtc#SomePlace:null, but as long as @WithTokenizers{} includes my SomePlace class, the URL is replaced immediately with a plain one and the browser loads the defaultPlace. On Jan 3, 1:48 pm, jones34 ljw1...@gmail.com wrote: Hi In my application, I'm using the MVP pattern with activities and places. I have a situation where: (1) I explicitely call: placeController.goto(new SomePlace()); (2) The appropriate SomePlaceActivity's start() gets called via event management as expected. (3) This method creates gets a SomePlaceView, and swaps it into the UI (4) An appropriate history event happens andhttp://mylocalenvironment#SomePlace:someplace appears briefly on my browser's nav bar. Then it gets weird. (5) A new empty String token gets created somehow. (6) It goes through the history management process, causing the defaultPlace to be created (7) The start() method on DefaultPlaceActivity() gets called (8) The app navigates away from SomePlace to DefaultPlace which makes me sad and very confused. I cannot figure out how that empty token gets created and the event handling mechanism gets invoked the second time. The code for this is, of course, spread over many files so its difficult to provide all the relevant code, but I've included much of what I think could be useful here. I'm hoping that people have seen this happen before and can point me to a typical cause. // from my ActivityMapper public Activity getActivity(Place place) { if (place instanceof LoginPlace) return new LoginPresenter((LoginPlace) place, factory); else if (place instanceof SomePlace ) return new SomePlaceActivity((SomePlace) place, factory); else if (place instanceof ForgotPasswordPlace ) return new ForgotPasswordPresenter((ForgotPasswordPlace) place, factory); return null; } // from SomePlace public class SomePlace extends Place { private final String name = somePlace; public SomePlace() { } public String getName() { return name;} public static class Tokenizer implements PlaceTokenizerSomePlace { public String getToken(SomePlace place) { return place.getName(); } public SomePlace getPlace(String token) { return new SomePlace(); } } } // from SomePlaceActivity public class SomePlaceActivity extends AbstractActivity implements Activity { private ClientFactory clientFactory; private SomePlace place; public SomePlaceActivity(SomePlace place, ClientFactory clientFactory){ this.clientFactory=clientFactory; this.place = place; } public void start(AcceptsOneWidget panel, EventBus eventBus) { clientFactory.getMainPanel().replaceCenter(clientFactory.getSomePlaceView() .asWidget()); } } // from my entrypoint class's onModuleLoad() method ActivityMapper activityMapper = new ClientFactoryImpl.Controller(clientFactory); ActivityManager activityManager = new ActivityManager(activityMapper, clientFactory.getEventBus()); activityManager.setDisplay(clientFactory.getMainPanel().getCenter()); AppPlaceHistoryMapper historyMapper= GWT.create(AppPlaceHistoryMapper.class); PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(historyMapper); historyHandler.register(placeController, clientFactory.getEventBus(), defaultPlace); // Goes to place represented on URL or default place historyHandler.handleCurrentHistory(); // from my AppPlaceHistoryMapper interface @WithTokenizers( { LoginPlace.Tokenizer.class, SomePlace.Tokenizer.class, ForgotPasswordPlace.Tokenizer.class }) public interface AppPlaceHistoryMapper extends PlaceHistoryMapper { } -- 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
uibinder widget creation time
I would like to do something programmatically with the widgets defined in a UIBinder.xml file. I have a corresponding java view class that implements a default constructor that calls initWidget() as its last statement to create the view (and I'm assuming that this is when the widgets in the view get created. The code below fails because emailAddressBox is null when it's passed to the constructor: @UiField FormTextBox emailAddressBox; public MyViewImpl(){ new Validator(emailAddressBox); initWidget(ourUiBinder.createAndBindUi(this)); } My question is, how can i get access to that widget just after it's created so I can do something with it? thanks much -- 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.
MacBook ok for GWT development?
I have a 3 1/2 year old MacBook with 6GB RAM that I use for GWT development. Everything works great except that I don't even attempt to do client-side test automation because it is s painfully slow. The startup overhead for server side testing is a little annoying but certainly bearable. I'm considering buying a new MacBook Pro, but don't want to waste the money on a high-end machine (the 15' version is $2K, or twice the cost of a standard MacBook) if when all is said and done, it's still too slow for GWT client test automation. This is basically the only thing I want to do on my current MacBook that it just can't do. Does anybody have any experience with GWT client testing on a similar platform? Do you really need a desktop machine for this? 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.
RPC failure with no useful information.
I'm getting an RPC failure (client stack trace below). The message says to check the server logs, but there's nothing in them. Stepping through the server code, I don't see any exceptions getting thrown. Any ideas? com.google.gwt.user.client.rpc.StatusCodeException: The call failed on the server; see server log for details at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java: 192) at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl(Request.java: 254) at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch(Request.java: 226) at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java: 217) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:585) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java: 103) at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java: 126) at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java: 155) at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java: 294) at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java: 194) at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java: 117) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720) at com.google.gwt.dev.GWTShell.run(GWTShell.java:593) at com.google.gwt.dev.GWTShell.main(GWTShell.java:357) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:585) at com.intellij.rt.execution.application.AppMain.main(AppMain.java: 90) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---