Re: Templates generating links that behave like an Anchor

2011-09-20 Thread Daniel Guggi
Using this approach I get an assertError: java.lang.AssertionError: A widget that has an existing parent widget may not be added to the detach list at com.google.gwt.user.client.ui.RootPanel.detachOnWindowClose(RootPanel.java:136) at com.google.gwt.user.client.ui.Anchor.wrap(Anchor.java:81

Templates generating links that behave like an Anchor

2011-09-20 Thread Daniel Guggi
hi, this is probably a basic question... I try to create some html using SafeHtmlTemplates like this: interface MyTemplates extends SafeHtmlTemplates { @Template("{2}") SafeHtml somelink(String id, String css, String text); } and use it like this: MyTemplates mt = GWT.cr

Re: Editor and RequestFactory

2011-09-02 Thread Daniel Guggi
like this? public void edit() { ProjectRequest request = commonRf.projectRequest(); ProjectProxy project = request.create(ProjectProxy.class); request.save(project).to(new Receiver() { ... }); ProjectEditor pe = view.getProjectEditor(); d

Re: RequestFactory-ValueProxy in conjunction with RequestFactoryEditorDriver vs. SimpleBeanEditorDriver

2011-08-30 Thread Daniel Guggi
thomas, thank you again for clarification! I think I'll go with (your) approach3 which seems more natural to me and I do not have to store the orderDescriptionProxy as an instance-var in my activity! daniel On Tue, Aug 30, 2011 at 11:43 AM, Thomas Broyer wrote: > > > On Tuesday, August 30, 201

RequestFactory-ValueProxy in conjunction with RequestFactoryEditorDriver vs. SimpleBeanEditorDriver

2011-08-30 Thread Daniel Guggi
hi, I'm currently playing around with RequestFactory and the EditorFramework. I use requestfactory as simple rpc-mechanism (meaning I currently just use ValueProxies not EntityProxies) using the following service: public class OrderService { public static String placeOrder(OrderDescription de

Re: How to avoid specifing a tokenizer for each place

2011-08-25 Thread Daniel Guggi
ndler; }* As far as I understand, I'm creating a the MainFactory-Ginjector from ?within? another Ginjector (GwtAppGinjector). I'm wondering if this is a legitim approach or if there are better ways (best-practice) to do this? tia, daniel On Thu, Aug 25, 2011 at 8:39 AM, Dan

Re: How to avoid specifing a tokenizer for each place

2011-08-24 Thread Daniel Guggi
right, now i got it :) I'll give it a try, thanks thomas! On Wed, Aug 24, 2011 at 9:31 PM, Thomas Broyer wrote: > Something like: > > interface FooFactory { > APlace.Tokenizer fooA(); > BPlace.Tokenizer fooB(); > } > > interface BarFactory { > CPlace.Tokenizer barC(); > DPlace.Tokenizer

Re: How to avoid specifing a tokenizer for each place

2011-08-24 Thread Daniel Guggi
thomas thank you for your input! *@"I believe you could do it with a factory, if you define one interface per module, and then use a factory that implements all of them at once (you can use a interface and have its implementation be generated, and you could also simply make it a Ginjector and have

Re: How to avoid specifing a tokenizer for each place

2011-08-24 Thread Daniel Guggi
ll Tokenizers (Using @WithTokenizer annotation) in the gwt standard approach? Are there any better ways to achieve such functionality? tia, daniel On Wed, Aug 24, 2011 at 9:53 AM, Daniel Guggi wrote: > hi, > > suppose I have an application which consists of serveral modules like > - main

Replacing a generator with another implementation

2011-08-24 Thread Daniel Guggi
I try to replace the com.google.gwt.place.rebind.PlaceHistoryMapperGenerator with my own implementation the generator is definied in gwt (Place.gwt.xml) as follows: I managed to change the generator as follows (in my .gwt.xml config): I'm just wondering if that is the c

How to avoid specifing a tokenizer for each place

2011-08-24 Thread Daniel Guggi
hi, suppose I have an application which consists of serveral modules like - main - moduleA - moduleB - etc. the "main"-module defines the main layout and sets up "activity mappers", the "PlaceHistoryMapper" and so on. the other modules like "moduleA", "moduleB" etc. define their own set of activi

Re: GIN and ClientBundle (Singleton or not-to-Singleton)?

2011-08-18 Thread Daniel Guggi
thanks for clarification! hf, daniel On Thu, Aug 18, 2011 at 10:56 AM, Jens wrote: > Some time ago I have used approach 2) and have bounded all ClientBundles as > Singletons. But now I would go with 1) because when you look at the > generated source code of a ClientBundle (use -gen option) yo

Re: gwt 2.3 + spring 2 + maven 2

2011-08-17 Thread Daniel Guggi
@spring you may have a look here (requestfactory + spring3 integration): http://jsinghfoss.wordpress.com/2011/08/10/gwt-2-2-0-requestfactory-spring-3-0-x-integration/ here an example pom (i use maven 3) http://maven.apache.org/POM/4.0.0"; xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance";

GIN and ClientBundle (Singleton or not-to-Singleton)?

2011-08-17 Thread Daniel Guggi
Hi, I have some questions regarding ClientBundle and GIN. Suppose the following blank bundle: *public interface MyClientBundle extends ClientBundle { } * I want GIN to create the instance(es) of the MyClientBundle for me. The GIN-docs say ( http://code.google.com/p/google-gin/wiki/GinTutorial#De

Re: Problem with css and clientbundle and uibinder

2011-08-11 Thread Daniel Guggi
with uibinder only (i mean without calling ensureInjected() from somewhere)? thank you! On Thu, Aug 11, 2011 at 1:01 PM, Daniel Guggi wrote: > hi, > > i'm trying to use a css-clientbundle and uibinder like this: > > *Resources.java* > package gwtapp.