Re: Comment on GettingStarted in gwt-presenter

55 views
Skip to first unread message

gwt-pr...@googlecode.com

unread,
Oct 30, 2009, 2:27:44 AM10/30/09
to gwt-pr...@googlegroups.com
Comment by da...@randombits.org:

@sujaydutta: I'm not familiar with SmartGWT, but I'm guessing it uses a
different 'widget' hierarchy than comes with GWT? If so, it's still
possible, you'll just need to create something similar to the
WidgetPresenter and WidgetDisplay for use with SmartGWT classes. The API
itself is not tied to any particular widget implementation.


For more information:
http://code.google.com/p/gwt-presenter/wiki/GettingStarted

gwt-pr...@googlecode.com

unread,
Oct 30, 2009, 8:02:29 AM10/30/09
to gwt-pr...@googlegroups.com
Comment by djb.bell:

I see you have version 1.1.0-SNAPSHOT. Can I configure my POM to look at
your maven repo (if there is one)?

gwt-pr...@googlecode.com

unread,
Nov 3, 2009, 4:49:07 PM11/3/09
to gwt-pr...@googlegroups.com
Comment by grary.stimon:

Funny, posted javadoc describes BasicPresenter<D extents Display> class,
but I can't find BasePresenter class.

gwt-pr...@googlecode.com

unread,
Nov 3, 2009, 7:24:49 PM11/3/09
to gwt-pr...@googlegroups.com
Comment by da...@randombits.org:

BasicPresenter still exists. What version are you using?

gwt-pr...@googlecode.com

unread,
Nov 28, 2009, 5:12:35 PM11/28/09
to gwt-pr...@googlegroups.com
Comment by aksonov:

What is the best practice to create parametrized presenters/views using Gin
and your framework? For example ContactDetails presenter depends from
Contact entity and i can't create it using Provider.get() method from
parent presenter.

@AssistedInject looks what i need, but it doesn't work with Gin.
I see two ways - to use factory which seems to be overkill and to set
entity via setter after creation (not via constructor). But both ways looks
not elegant.

gwt-pr...@googlecode.com

unread,
Dec 1, 2009, 6:53:21 AM12/1/09
to gwt-pr...@googlegroups.com
Comment by dusan.maliarik:

@aksonov: looking at the gin commit messages, assisted injection should
work by now

gwt-pr...@googlecode.com

unread,
Dec 17, 2009, 10:01:25 AM12/17/09
to gwt-pr...@googlegroups.com
Comment by bouadma.abderrazak:

I'm trying gwt-presenter for the first time, trying to see how I'll
integrated within my project, first question about the presenter class
implemented here :

why PLACE is public static then it's also returned throw the getPlace()
methode ?

gwt-pr...@googlecode.com

unread,
Dec 17, 2009, 10:39:53 AM12/17/09
to gwt-pr...@googlegroups.com
Comment by da...@randombits.org:

The reason was so that you could create hyperlinks to the location without
needing the Presenter instance. However, the 'replace' branch, which will
soon become the main trunk, has a new Place API, which does not require
Presenter to know about it at all. Instead, you create and register places
directly with the PlaceManager upon construction.

gwt-pr...@googlecode.com

unread,
Dec 18, 2009, 8:58:27 PM12/18/09
to gwt-pr...@googlegroups.com
Comment by despineira:

I have a problem with the PlaceManager implementation. PlaceManager class
implements PlaceRequestHandler, but it doesn't listen for
PlaceRequestEvents from the EventBus. Is this a bug? How is
PlaceManager.onPlaceRequest method called?

gwt-pr...@googlecode.com

unread,
Feb 23, 2010, 3:20:19 AM2/23/10
to gwt-pr...@googlegroups.com
Comment by koteskie:

Any updates on the replace branch becoming the TRUNK ?

gwt-pr...@googlecode.com

unread,
Mar 17, 2010, 6:29:58 PM3/17/10
to gwt-pr...@googlegroups.com
Comment by daniel.simons1:

I would really like to find out more about the updates to
PlaceManager...Will there be changes to the API anytime soon?

gwt-pr...@googlecode.com

unread,
Mar 17, 2010, 11:22:59 PM3/17/10
to gwt-pr...@googlegroups.com
Comment by flashcloud163:

yes,I fund 1.1.1 out in http://borglin.net/gwt-project/?page_id=383,but
this place have not any change,why?

gwt-pr...@googlecode.com

unread,
Mar 19, 2010, 10:13:47 AM3/19/10
to gwt-pr...@googlegroups.com
Comment by jgonian:

I am also interested on gwt-presenter-1.1.1-replace-SNAPSHOT.
Any updates on when will it be available through the maven repository?

gwt-pr...@googlecode.com

unread,
May 21, 2010, 10:21:02 AM5/21/10
to gwt-pr...@googlegroups.com
Comment by ullenboom:

After GWT 2.1 now have its own "Place", this framework could be adapted.

gwt-pr...@googlecode.com

unread,
May 21, 2010, 10:25:05 AM5/21/10
to gwt-pr...@googlegroups.com
Comment by ullenboom:

After GWT 2.1 now has its own "Place", this framework could be adapted.

gwt-pr...@googlecode.com

unread,
May 21, 2010, 11:17:54 AM5/21/10
to gwt-pr...@googlegroups.com
Comment by da...@randombits.org:

Yeah, looks interesting, but I couldn't find any good documentation on the
new MVP stuff in GWT 2.1. Any links?

gwt-pr...@googlecode.com

unread,
Jul 29, 2010, 8:52:41 AM7/29/10
to gwt-pr...@googlegroups.com
Comment by yadavjpr:

Where can i find tutorials of GWT "Place"?

gwt-pr...@googlecode.com

unread,
Aug 25, 2010, 6:07:51 AM8/25/10
to gwt-pr...@googlegroups.com
Comment by afcoeur:

I am now having trouble compiling my Ginjector derived
class and am receiving the following error.

Rebind result
'net.customware.gwt.presenter.client.place.PlaceManager' must be a
class
[

Does anyone know the cause of this?

i use:
gwt-dispatch-1.1.0.jar
gwt-presenter-1.1.1.jar

many thanks

David Peterson

unread,
Aug 25, 2010, 6:39:10 AM8/25/10
to gwt-pr...@googlegroups.com
At a guess, you need to bind the PlaceManager to the
DefaultPlaceManager implementation. I can't recall if this changed
between 1.0 and 1.1 but there's a good chance it did.

David

Jon Brule

unread,
Aug 25, 2010, 8:31:15 AM8/25/10
to GWT Presenter
David,

I am experiencing a similar issue with PlaceManager. Since you mention
that I need to bind the PlaceManager to a DefaultPlaceManager
implementation, and since I am using gin / guice, the lead me add the
following line into my client module:


bind(PlaceManager.class).to(DefaultPlaceManager.class).in(Singleton.class);

I got past the error indicating that PlaceManager is abstract;
however, I am getting a new error that puzzles me:

08:19:50.976 [ERROR] [lotsrv] No @Inject or default constructor
found for class
net.customware.gwt.presenter.client.place.DefaultPlaceManager

It almost appears as as though DefaultPlaceManager is not geared for
default use with gin / guice...

Any thoughts?

Please forgive as I am new to gwt-presenter...

Thanks,
Jon

David Peterson

unread,
Aug 25, 2010, 8:43:11 AM8/25/10
to gwt-pr...@googlegroups.com
Man, I'm rusty on this stuff. I think you need to subclass the
PlaceManager ourself and register any Place connections therein. I'll
have to dig up some code....

David

Jon Brule

unread,
Aug 25, 2010, 10:06:06 AM8/25/10
to GWT Presenter
David,

As soon as I hit submit, the same thing dawned on me... I have since
subclassed the DefaultPlaceManager with my own implementation that
uses the @Inject annotation on a non-empty constructor.

Thanks so much for your pointers!

Jon

gwt-pr...@googlecode.com

unread,
Sep 7, 2010, 1:07:17 PM9/7/10
to gwt-pr...@googlegroups.com
Comment by rileylark:

This sample code doesn't seem to compile with gwt-presenter-1.1.1. I get
errors on all of the Place instantiations (Place is an abstract class,
apparently), and getPlace and onPlaceRequest don't seem to be overrides.
Are these changes from 1.0.0?

gwt-pr...@googlecode.com

unread,
Sep 30, 2010, 1:15:21 AM9/30/10
to gwt-pr...@googlegroups.com
Comment by Juppie7:

Re: rileylark & afcouer

Yea these people provide open source 'junk, expect to have to work
for "everything". This article -is- from 2009 after all...

I had to make a few changes to the above code, and had to use the version
1.0.0 releases for ALL mentioned modules. The code standard above works,
only in the context for when it was made.

I've managed to upgrade my gwt dispatcher to use 1.1, as well as
presenter(so much pain.. but suppose it was worth it..)
Am now trying to get smartfwt to interface with it nicely (HasWidgets,
HasEvent<suchAndSuch> etc...).

Since the OP obviously doesn't plan on writing up a new article for 2010,
if anyone out there wants the new working code once I complete it, just
shout it out now. Will be checking this site periodically over next few
weeks, so can post it up if anyone wants it.

But yea, basically, just read the docs that come with each module, and
update it as necessary. If you don't want the hassle, just DOWNLOAD the
entire war distro this dude provided at top of article. It works 100%
because it comes with the old jar files.
Hope this info helps, I spent better part of my day sorting this crap out.

gwt-pr...@googlecode.com

unread,
Sep 30, 2010, 1:19:22 AM9/30/10
to gwt-pr...@googlegroups.com
Comment by Juppie7:

Also, make sure you copy your NEW gwt-servlet.jar to the War/webinf/lib
folder. It throws out a bullshit security warning otherwise (missing
Serilization Exception). Wow, Im getting this rush of memories, reminding
of how much I love(sarcasm) Java.

gwt-pr...@googlecode.com

unread,
Sep 30, 2010, 3:42:03 AM9/30/10
to gwt-pr...@googlegroups.com
Comment by robert.munteanu:

@Juppie7 : Given that you've expressed your desire to share the new code,
if you can provide a link to a short replacement article I would be more
than happy to update this page.

Many thanks,

Robert

gwt-pr...@googlecode.com

unread,
Nov 7, 2010, 6:15:24 AM11/7/10
to gwt-pr...@googlegroups.com
Comment by iskandarprins:

The above tutorial is broken for gwt-presenter 1.1.1

Compile error: Cannot instantiate the type Place

Any fixes?

gwt-pr...@googlecode.com

unread,
Dec 8, 2010, 3:59:01 AM12/8/10
to gwt-pr...@googlegroups.com
Comment by intotherainzy:

bad...i had to download 1.0.0 again after 1.1.1 just because sample cant be
complied correctly.

gwt-pr...@googlecode.com

unread,
Feb 1, 2011, 10:39:01 AM2/1/11
to gwt-pr...@googlegroups.com
Comment by gkatz...@gmail.com:

could you please update the sample code. Place cannot be instantiated this
way!

Reply all
Reply to author
Forward
0 new messages