New article on using Cell Widgets for every day GWT development

2013-12-11 Thread dparish
http://lithosphere.lithium.com/t5/tech-blog/Lithium-Engineering-Using-Cell-Widgets-for-every-day-GWT/ba-p/117929 Google Web Toolkit provides Cell Widgets as a way to write web pages that render large volumes of data quickly. This is a primer on using Cell Widgets for everything, not just when

Blog article on using Canvas and GWT to create a client side image crop tool

2013-09-04 Thread dparish
I created this article because I couldn't find a similar article when I built the solution: http://lithosphere.lithium.com/t5/tech-blog/Lithium-Engineering-Using-GWT-and-HTML-5-Canvas-for-online/ba-p/100833 Full code is provided for anyone that wants to play around with the solution. -Dave

Re: [POLL] Maven project layout, what to standardize?

2013-02-25 Thread dparish
I think a major goal should be to cooperate with other container plugins, specifically Jetty. I've been struggling with getting the Jetty plugin to fully cooperate w/ the gwt plugin and am astounded at how hard it is to: 1. Get my server code to be updated without a server restart (if the

Re: Eclipse compile not generating i18n properties file

2012-05-01 Thread dparish
Has anyone solved this? It's not working for me either. Here's my class: package dparish.client.view.impl; import com.google.gwt.i18n.client.Messages; import com.google.gwt.i18n.client.LocalizableResource.Generate; import com.google.gwt.i18n.client.LocalizableResource.GenerateKeys;

Re: Eclipse compile not generating i18n properties file

2012-05-01 Thread dparish
I should note that I am using the -extra compiler flag and it IS generating the property files for UiBinder messages. I also tried changing the classname for the format to: format=com.google.gwt.i18n.rebind.format.PropertiesFormat but that did not help. Interestingly changing it to:

Re: Eclipse compile not generating i18n properties file

2012-05-01 Thread dparish
I figured it out. I had created the messages file but hadn't started using it in the app at all. The compiler must not scan for all interfaces with that annotation, but instead for all classes IN USE by the app with those annotations. -- You received this message because you are subscribed

Re: MVP framework

2012-02-08 Thread dparish
Thomas, I'm working on restructuring AppActivityMapper so that I inject in the Activities. My reasoning for the static injector was it kept me from having gigantic constructor arguments. If AppActivityMapper has 30 activities, that's alot of constructor arguments.

Re: MVP framework

2012-02-07 Thread dparish
Great tips. I'll take a look at each points. If I find I have a reason not to implement one of the comments I'll let you know. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

RequestFactory complexity (Frozen Beans et. all)

2012-02-06 Thread dparish
I really want to like RequestFactory, really I do, but I'm astounded by the complexity. I finally got my head around the Locator, the proxies, etc and now I'm getting Frozen beans and edited by another RequestContext errors. I took a look at:

Re: MVP framework

2012-02-06 Thread dparish
I recently finished an example app with MVP, Activities and Places, Gin and Guice, Request Factory and a few other GWT components. Feel free to grab the source and see if it gets you started. http://code.google.com/p/gwt-best-practices-soup/ -- You received this message because you are

Custom widget with custom UiBinder markup

2012-02-03 Thread dparish
I have a widget that would benefit from custom UiBinder markup (like DockLayoutPanel) I've looked through the docs, the source and the web and not found an example of how this is implemented. Has anyone done this? I'm looking to do something like this custom:mywidget ui:field=widget left!-your

Re: Custom widget with custom UiBinder markup

2012-02-03 Thread dparish
That will work. I'd still prefer to use descriptive xml like DocLayoutPanel. From what I see of @UiChild it just enforces the types of children it does not allow for quite what I was looking for. (but probably good enough) -Dave On Feb 3, 8:09 am, Jens jens.nehlme...@gmail.com wrote: You can

Re: Custom widget with custom UiBinder markup

2012-02-03 Thread dparish
I take that back. UiChild should do it perfect. Good example here: http://stackoverflow.com/questions/8375480/gwt-custom-widget-with-child-elements-configuration-in-uibinder-like-custombutt On Feb 3, 8:09 am, Jens jens.nehlme...@gmail.com wrote: You can use @UiChild, see:

Acivities and Places - passing by reference

2012-02-02 Thread dparish
I'm refactoring a MVP app I have that currently uses Events and an AppController to handle navigation transitions. Activities and Places appear to only pass state via tokens, not by passing by reference. is there another way? A use case may help here: Think of two screens, A Student List screen

Re: Acivities and Places - passing by reference

2012-02-02 Thread dparish
SWEET. That was exactly it. I added a setStudent and getStudent to StudentAddEditPlace In my activity mapper I get the activity for the place, then set the student into the activity that I get from the place. Subtle but obvious now that I see it. Thank you very much. -Dave On Feb 2, 2:44 

Re: The RequestFactory ValidationTool must be run for the RequestFactory type

2011-12-13 Thread dparish
I had the same problem. There are two other possible reasons you see this: 1. Your java compliance level in the project is set to 1.5 2. Your classes are already compiled. I don't know why, but touching the my RequestContext classes had NO affect until I deleted the classes that were compiled

com.google.web.bindery.requestfactory.shared.RequestContext; did you forget to inherit a required module?

2011-06-11 Thread dparish
I'm trying to use RequestFactory in GWT 2.3. I noticed that the original RequestFactory has been depricated in favor of: com.google.web.bindery.requestfactory.shared.RequestContext My problem is that when I try to run my app I get: [ERROR] [retain] - Line 10: No source code is available for

Re: com.google.web.bindery.requestfactory.shared.RequestContext; did you forget to inherit a required module?

2011-06-11 Thread dparish
Thanks. After I posted I cracked open gwt-user.jar and found it. I needed to add the following to my gwt project xml file: inherits name='com.google.web.bindery.requestfactory.RequestFactory'/ The coding docs for this stuff is pretty good but the setup / config is terrible. If they expect

2.3 local storage api and client side gwt objects

2011-05-04 Thread dparish
I have a client side entity object (let's call it person) and I want to store it locally. It looks like the current 2.3 local storage api only stores Strings with a String key. Is there a way to get the json of an object (or any common understood string representation) so I can store it?

Custom widget is blocking all events.

2010-12-02 Thread dparish
I've got a simple custom widget designed to display two column data. Any widgets I put in this custom widget can't fire events. I've tried even the simplest Button and it fails. Is there something about the nature of my widget that is keeping events from widgets it contains from firing? public

2.1 RequestFactory design frustrations

2010-11-10 Thread dparish
I'm switching some of my work from RPC to RequestFactory. I'm doing this because I use open jpa on the backend and keep having to hack through serialization problems (such as proxy objects that won't serialize). RequestFactory seems like the perfect option. I'm caught off guard by some GWT

Re: OpenJPA GWT serialization problem.

2010-11-09 Thread dparish
I tried using em.clear(). I did this after loading and accessing my object. I also changed my fetch type to EAGER. Sadly it still fails ; ( -Dave On Nov 9, 6:59 am, dparish dpar...@gmail.com wrote: Thanks David. I tried LAZY and EAGER. Both caused the problem. For #2, that seems promising

Re: OpenJPA GWT serialization problem.

2010-11-09 Thread dparish
: Hi dparish, There are three issues here: 1. GWT needs a fully populated object graph to send back to the client. Lazy fetching will not work across the client / server boundary, so you must ensure that your code fetches all relations eagerly (via an annotation or a separate call if needed

OpenJPA GWT serialization problem.

2010-11-08 Thread dparish
I have an entity with a member like this: @Entity public class Foo implements Serializable{ @OneToMany(mappedBy=foo,targetEntity=InternalText.class, fetch=FetchType.EAGER) // I tried Lazy too. private ArrayListInternalTextinternalTextEntries; When I try to use Foo I

Custom Widget ui Binder and a constructor that takes other widgets

2010-09-23 Thread dparish
I've got a custom widget (code below) that takes in two widget's as a constructor. I'd like to use this widget in UI Binder. I can see from the docs (http://code.google.com/webtoolkit/doc/latest/ DevGuideUiBinder.html#Using_a_widget) that it's pretty easy to do this if the constructor is a set

Re: Rounded Corners with UIBinder

2010-04-15 Thread dparish
If gwt has a failing it's making the app look well rounded. Ok bad pun. The uibinder makes you think you are sculpting a ui. You really aren't. You are writing a skeleton that needs CSS for the flesh. The client side generated HTML is complex which makes the task harder. It's worth it

Re: Gwt 2 dev mode, refresh time very slow, any hints ?

2010-04-13 Thread dparish
I'm seeing this as well. When I switch from embedded jetty to noserver, everything is MUCH slower, despite being all local on the same machine with PLENTY of RAM and CPU to spare. It's bad enough that development time is severely impacted. On Apr 1, 6:11 am, Skal pasvinc...@gmail.com wrote: Hi