Re: Where can I find documentation to GWT MVP comming with version 2.1
Requestfactory in its current form is perfect if your just manipulating entities(finderrs, insert, delete, modify) but not dealing with lots of business logic on the server side. I believe in GWT 2.1.1 it will probably be a pretty good replacement as it will add features like caching and being able to hook to any service objects instead of just entities. On Fri, Oct 8, 2010 at 1:43 PM, Jeff Larsen wrote: > David, > > Can you explain some of the benifits/drawbacks of using the > RequestFactory vs gwt-dispatch. I haven't taken the time to really > investigate the new RequestFactory, but currently I've got gwt- > dispatch wired into my app, I'm just curious if the RequestFactory > paradigm will be better for my current usecase. > > -Jeff > > On Oct 8, 12:31 am, Rud wrote: > > Okay, got it to work but it feels ugly. > > > > In my 'east' I put a class SimpleDisplayUi which is a UiBinder class. > > Its ui.xml just has a SimplePanel. > > > > The trick was in SimpleDisplayUi.showActivityWidget(IsWidget widget) > > to do > > > > simplePanel.setWidget(widget.asWidget()); > > > > It seems there are two many layers from DockLayoutPanel to 'east' to > > SimpleDisplayUi to SimplePanel and finally to the actual panel(s) that > > can be changed. > > > > There are a Activity classes that seem superfluous like SimpleActivity > > just to create SimpleDisplayUi. It doesn't get created or called. > > > > I'll look at cleaning this up but getting SimpleDisplayUi working was > > painful so I'm not sure there is much leeway. Just look at its > > declaration: > > > > public class SimpleDisplayUi extends Composite implements > > SimpleActivity.SimpleDisplayUi, Display { } > > > > Rudhttp://mysticlakesoftware.com > > -- > 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. > > -- 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: Where can I find documentation to GWT MVP comming with version 2.1
David, Can you explain some of the benifits/drawbacks of using the RequestFactory vs gwt-dispatch. I haven't taken the time to really investigate the new RequestFactory, but currently I've got gwt- dispatch wired into my app, I'm just curious if the RequestFactory paradigm will be better for my current usecase. -Jeff On Oct 8, 12:31 am, Rud wrote: > Okay, got it to work but it feels ugly. > > In my 'east' I put a class SimpleDisplayUi which is a UiBinder class. > Its ui.xml just has a SimplePanel. > > The trick was in SimpleDisplayUi.showActivityWidget(IsWidget widget) > to do > > simplePanel.setWidget(widget.asWidget()); > > It seems there are two many layers from DockLayoutPanel to 'east' to > SimpleDisplayUi to SimplePanel and finally to the actual panel(s) that > can be changed. > > There are a Activity classes that seem superfluous like SimpleActivity > just to create SimpleDisplayUi. It doesn't get created or called. > > I'll look at cleaning this up but getting SimpleDisplayUi working was > painful so I'm not sure there is much leeway. Just look at its > declaration: > > public class SimpleDisplayUi extends Composite implements > SimpleActivity.SimpleDisplayUi, Display { } > > Rudhttp://mysticlakesoftware.com -- 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: Where can I find documentation to GWT MVP comming with version 2.1
Okay, got it to work but it feels ugly. In my 'east' I put a class SimpleDisplayUi which is a UiBinder class. Its ui.xml just has a SimplePanel. The trick was in SimpleDisplayUi.showActivityWidget(IsWidget widget) to do simplePanel.setWidget(widget.asWidget()); It seems there are two many layers from DockLayoutPanel to 'east' to SimpleDisplayUi to SimplePanel and finally to the actual panel(s) that can be changed. There are a Activity classes that seem superfluous like SimpleActivity just to create SimpleDisplayUi. It doesn't get created or called. I'll look at cleaning this up but getting SimpleDisplayUi working was painful so I'm not sure there is much leeway. Just look at its declaration: public class SimpleDisplayUi extends Composite implements SimpleActivity.SimpleDisplayUi, Display { } Rud http://mysticlakesoftware.com -- 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: Where can I find documentation to GWT MVP comming with version 2.1
I appreciate the example Daniel. As an experiment I used UiBinder to replace the User panel. That was straightforward. The UiBinder class code for those interested is posted at the end of the message. I am now trying to move the framework into my application but without success. My app has a DockLayoutPanel and for the 'east' panel I put in an HTMLPanel with some text so I could see if it was there. When I do a PlaceController 'goto' to replace that panel with my desired panel nothing changes. I stepped through all the activity, mapper and other code but don't see anything awry. What I think I is happening is that the new activity / display is getting handled properly but it isn't actually getting into the DockLayoutPanel east item. I think I need to get the existing east panel and add my UI class to it but don't see how to get the east panel. Another question is how to get activityManager.setDisplay to accept a Ui binder class. The Ui binder class implements Activity.Display but setDisplay wants just a Display. Casting results in a runtime error. Any suggestions?? Anyone?? Rud http://mysticlakesoftware.com public class UserUi extends Composite implements UserActivity.UserDisplay { private static UserUiUiBinder uiBinder = GWT.create(UserUiUiBinder.class); interface UserUiUiBinder extends UiBinder {} public UserUi() { initWidget(uiBinder.createAndBindUi(this)); } @Override public Widget asWidget() { return this; } } On Sep 30, 3:13 pm, Daniel wrote: > I just wrote a blog post about gwt 2.1 m3 mvp, containing a small > example how to use activities and activitiesmappers: > > http://blog.daniel-kurka.de/2010/09/testdriving-gwt-mvp-from-gwt-21-m... > -- 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: Where can I find documentation to GWT MVP comming with version 2.1
I just wrote a blog post about gwt 2.1 m3 mvp, containing a small example how to use activities and activitiesmappers: http://blog.daniel-kurka.de/2010/09/testdriving-gwt-mvp-from-gwt-21-m3-part.html On 28 Sep., 21:25, Kasper Hansen wrote: > Sounds good !! Can you provide a link in this thread when its ready ? Thanks. > > Sent from my iPhone > > On 28/09/2010, at 20.53, "David Chandler (Google)" > wrote: > > > > > I'll be posting a doc on using GWT 2.1 MVP Activities and Places > > within the next week or so, and another on RequestFactory shortly > > thereafter. > > > /dmc > > David Chandler > > Developer Programs Engineer, Google Web Toolkit > > Atlanta, GA USA > > > On Sep 27, 5:08 am, Kardigen wrote: > >> Hi, > >> herehttp://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html#MvpFra... > >> is mentioned that MVP framework is coming in version 2.1. We have 2.1 > >> M3 release, but I can not find any documentation for MVP. Do anyone > >> know where can I find any classes, examples documentation? > > > -- > > 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 > > athttp://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-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: Where can I find documentation to GWT MVP comming with version 2.1
Sounds good !! Can you provide a link in this thread when its ready ? Thanks. Sent from my iPhone On 28/09/2010, at 20.53, "David Chandler (Google)" wrote: > I'll be posting a doc on using GWT 2.1 MVP Activities and Places > within the next week or so, and another on RequestFactory shortly > thereafter. > > /dmc > David Chandler > Developer Programs Engineer, Google Web Toolkit > Atlanta, GA USA > > On Sep 27, 5:08 am, Kardigen wrote: >> Hi, >> herehttp://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html#MvpFra... >> is mentioned that MVP framework is coming in version 2.1. We have 2.1 >> M3 release, but I can not find any documentation for MVP. Do anyone >> know where can I find any classes, examples documentation? > > -- > 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. > -- 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: Where can I find documentation to GWT MVP comming with version 2.1
I'll be posting a doc on using GWT 2.1 MVP Activities and Places within the next week or so, and another on RequestFactory shortly thereafter. /dmc David Chandler Developer Programs Engineer, Google Web Toolkit Atlanta, GA USA On Sep 27, 5:08 am, Kardigen wrote: > Hi, > herehttp://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html#MvpFra... > is mentioned that MVP framework is coming in version 2.1. We have 2.1 > M3 release, but I can not find any documentation for MVP. Do anyone > know where can I find any classes, examples documentation? -- 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: Where can I find documentation to GWT MVP comming with version 2.1
On 27 sep, 11:08, Kardigen wrote: > Hi, > herehttp://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html#MvpFra... > is mentioned that MVP framework is coming in version 2.1. We have 2.1 > M3 release, but I can not find any documentation for MVP. Do anyone > know where can I find any classes, examples documentation? You can start here: http://tbroyer.posterous.com/tag/gwt (read from bottom to top, and ignore the post about protobuf) Only the last 2 articles will really be of interest, but the way I wrote them, you probably need to first understand GWT 2.1 Places. -- 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.