PlaceHistoryHandler and Analytics

2011-09-15 Thread Jake Wharton
I'm trying to implement analytics tracking in our Place-based GWT 2.2 webapp and finding some trouble listening to History's ValueChangeEvent. The events seem to not be firing as a result of the false argument on this

Re: PlaceHistoryHandler and Analytics

2011-09-15 Thread Jake Wharton
That indeed did work. Thank you. -- 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/-/RalK5gJrh4EJ. To post to this group, send email to

How to properly return persisted ID with RequestFactory+Editor

2011-03-30 Thread Jake Wharton
With a normal Request, I can specify a return type on an InstanceRequest. However, when using RequestContext with the Editor framework, the Receiver argument to fire() only accepts a Void generic type. This means that I can no longer return the persisted ID of the object back to the client

Re: How to properly return persisted ID with RequestFactory+Editor

2011-03-30 Thread Jake Wharton
Thanks and apologies for duplicate post. Did a search but that thread was not present in the results. -- 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

Re: RequestFactory: return persisted ID in proxy after successful persist()

2011-03-17 Thread Jake Wharton
Is this possible using the editors as well? When you flush the driver you get a RequestContext whose fire() only accepts a ReceiverVoid. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: ValueProxy containing EntityProxy

2011-03-16 Thread Jake Wharton
Use .with(...) to retrieve relationships. See: http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#relationships -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Design of Breadcrumb Interaction

2011-03-15 Thread Jake Wharton
I have created a widget which allows for easy construction of the breadcrumb design pattern using common GWT patterns (including HasWidget) with relative ease. It is only when trying to wire this widget up to my MVP that I am running into issues. While the breadcrumbs could be history based,

RequestFactory, Editor Framework, and CellTable

2011-02-28 Thread Jake Wharton
I am looking to determine a method for integrating the editing abilities of the CellTable, automatic binding of the Editor framework, and the client-server communication of the RequestFactory together. Given two classes, Parent and Child, I am attempting to create a ParentEditor which includes

Object-backed ValueListBoxInteger Editor?

2011-02-14 Thread Jake Wharton
I'm trying to create an editor that features a ListBox of Strings (mapped to integer values) that binds to an integer. More specifically, a ListBox of proxy objects rendered to a string from a name property which associates to its integer binding based off of a separate integer property. For

Re: GWT Base Application Featuring Best-Practice Technologies

2011-02-12 Thread Jake Wharton
- Is using a single PlaceController with multiple 'identifiers' really a best practice? I'm not sure of the proper implementation of this. In other implementations of this type of system, I have always used what GWT calls a place as something which encapsulates numerous activities which

Re: GWT Base Application Featuring Best-Practice Technologies

2011-02-11 Thread Jake Wharton
Hi Thomas, Thanks for the suggestions. This is exactly the type of feedback I was looking for. I have updated the project with implementations of your recommendations. I do have a question about provider injection into the ActivityMapper, though. Is it necessary for me to inject an instance

Re: advice on testing RequestFactory CRUD

2011-02-11 Thread Jake Wharton
Do you really need to verify that the record was inserted in a separate test? The server-side code which inserts the record should be throwing an exception if the insert fails which means that your onFailure callback will run which should fail the test. If the backend database you are using for

Re: advice on testing RequestFactory CRUD

2011-02-11 Thread Jake Wharton
Well regardless, my recommendations should still apply. You should do one of the following: 1. Allow an exception to be thrown on the server-side implementation of the insert indicating that it failed. Fail the test in the onFailure callback of the request. In 99.999% of the cases

GWT Base Application Featuring Best-Practice Technologies

2011-02-10 Thread Jake Wharton
I have written (and am still working on) writing a simple base application which sets up and demonstrates the majority of GWT's new and recommended technologies. This is actually my first foray into GWT and instead of starting simple and integrating these technologies one- by-one I wanted to do

Re: GWT Base Application Featuring Best-Practice Technologies

2011-02-10 Thread Jake Wharton
Well it's not supposed to actually *do *anything. It is only sample application which provides the foundation for building your own web app. It is meant to be used as a platform to provide recommended design patterns using the most current technologies GWT has to offer. I am going to add a few