Mvp4g News

41 views
Skip to first unread message

Pierre

unread,
Oct 17, 2010, 5:32:10 PM10/17/10
to Mvp4g
All important news about Mvp4g will be posted here.

Pierre

unread,
Oct 17, 2010, 5:33:55 PM10/17/10
to Mvp4g
Mvp4g 1.2.0 is now available on Maven Central (http://
mvnrepository.com/artifact/com.googlecode.mvp4g/mvp4g/1.2.0).

Pierre

unread,
Oct 19, 2010, 9:20:14 AM10/19/10
to Mvp4g
The first snapshot of Mvp4g 1.3.0 is now available. It includes the
navigation confirmation (issue 46) and lifecycle presenter (issue 47)
features and also issue 50 correction. You can find it in the download
section: http://code.google.com/p/mvp4g/downloads/list and find the
documentation here: http://code.google.com/p/mvp4g/w/list?can=2&q=1.3.0.

Let me know what you think and if you encounter any problem.

Thanks,
Pierre

Pierre

unread,
Nov 11, 2010, 6:22:17 PM11/11/10
to Mvp4g
A new snapshot of Mvp4g 1.3.0 is available. This snapshot includes:
-support for Reverse MVP (presenter is automatically injected to the
view, http://code.google.com/p/mvp4g/wiki/PresenterViewService_130#Reverse_View)
-token generation for hyperlink (http://code.google.com/p/mvp4g/wiki/
PlaceService_130#Hyperlink_Token)
-passive event (events that are only forwarded to already build/load
presenters/modules, http://code.google.com/p/mvp4g/wiki/EventBus_130#Passive_Event)

Let me know what you think and if you ever have any problem.

Thanks,
Pierre

PhilBeaudoin

unread,
Nov 11, 2010, 6:37:38 PM11/11/10
to Mvp4g
Great news! Keep up the good work, Pierre.

On Nov 11, 3:22 pm, Pierre <plcoir...@gmail.com> wrote:
> A new snapshot of Mvp4g 1.3.0 is available. This snapshot includes:
> -support for Reverse MVP (presenter is automatically injected to the
> view,http://code.google.com/p/mvp4g/wiki/PresenterViewService_130#Reverse_...)
> -token generation for hyperlink (http://code.google.com/p/mvp4g/wiki/
> PlaceService_130#Hyperlink_Token)
> -passive event (events that are only forwarded to already build/load
> presenters/modules,http://code.google.com/p/mvp4g/wiki/EventBus_130#Passive_Event)

John

unread,
Nov 16, 2010, 8:28:43 AM11/16/10
to Mvp4g
Did you take down the 1.3 snapshot? Only the examples are currently
in the download list ...

Pierre

unread,
Nov 16, 2010, 1:22:41 PM11/16/10
to Mvp4g
> Great news! Keep up the good work, Pierre.
Thanks Philippe :)

> Did you take down the 1.3 snapshot?  Only the examples are currently
> in the download list ...
I didn't add the snapshot to the download section but you can retrieve
it either by downloading the examples (the snapshot is in the lib
directory inside any example) or thanks to Maven.

Pierre

John

unread,
Nov 16, 2010, 1:30:53 PM11/16/10
to Mvp4g
Sorry, of course it's in the lib directory - else the examples
wouldn't work :/

Pierre

unread,
Dec 8, 2010, 10:02:46 PM12/8/10
to Mvp4g
A new snapshot of Mvp4g 1.3.0 is available. This snapshot includes:
-broadcast feature (see http://code.google.com/p/mvp4g/wiki/EventBus_130#Broadcast_Event)
-correction of few bug correction including issues 55 & 56.

Let me know what you think and if you ever have any problem.

Thanks,
Pierre

> > Pierre- Hide quoted text -
>
> - Show quoted text -

Jeff Larsen

unread,
Dec 9, 2010, 10:07:44 AM12/9/10
to mv...@googlegroups.com
This is fantastic! Thank you so much, I'm upgrading to test this out now.

Pierre

unread,
Jan 10, 2011, 7:44:20 PM1/10/11
to Mvp4g
A new snapshot of Mvp4g-1.3.0 is available. It includes an APT to
detect the most common Mvp4g errors directly in the IDE. You can take
a look at this page to see what errors can be detected and how to
configure Eclipse to use this APT: http://code.google.com/p/mvp4g/wiki/APT_130.

Let me know what you think and if you have any issues.

Thanks,
Pierre

Dennis

unread,
Jan 11, 2011, 5:26:06 AM1/11/11
to Mvp4g
that's great - just set it up and works like a charm! thank you very
much! I especially like that it tells me that I forgot to add a event
handling method on a presenter which can produce hard to understand
errors when running the program.

Dennis

unread,
Jan 11, 2011, 6:12:26 AM1/11/11
to Mvp4g
Hi Pierre,

After updating locally in my eclipse from mvp4g 1.2.0 to the latest
1.3 snapshot which worked fine I checked in my changes to the SVN and
let the continuous build (hudson in my case) do its job but
unfortunately there it failed with many, many errors that go like
this:

[javac] /var/local/hudson/jobs/yadaydaa.../client/MainEventBus.java:
83: Invalid Event bus: ....MainEventBus can't be injected to
RootPresenter. Can not convert ...MainEventBus to E
[javac] public void start();

[javac] /var/local/hudson/jobs/..../RootPresenter.java:46: Invalid
View: ...MainPanel can't be injected to RootPresenter. Can not
convert ..MainPanel to V
[javac] public class RootPresenter extends
MyBasePresenter<RootPresenter.Display, MainEventBus> {

as I said before compiling and execution in my eclipse works fine. Do
you have any idea why this happens? Could this be related to the APT?
I'm afraid I have to revert to 1.2 again :-(

thanks for any suggestions!

Dennis

Dennis

unread,
Jan 11, 2011, 7:12:37 AM1/11/11
to Mvp4g
just had an idea, maybe above problem is related to generics. My
presenter superclass looks like this:

public class MonoBasePresenter<V, E extends EventBus> extends
BasePresenter<V, E> {
...

and in the subclasses:

@Presenter(view=MainPanel.class)
public class RootPresenter extends
MonoBasePresenter<RootPresenter.Display, MainEventBus> {

public static interface Display extends IView {
...

maybe there's a problem in the way this is handled?
But it's till weird, why does it work when eclipse compiles it but not
when javac compiles it? rolling back to 1.2.0. for now. Please let me
know how I can further assist in debugging this or try out a new
build.

thanks,
Dennis

Harald Schilly

unread,
Jan 11, 2011, 7:45:47 AM1/11/11
to mv...@googlegroups.com
On Tue, Jan 11, 2011 at 01:44, Pierre <plco...@gmail.com> wrote:
> Eclipse to use this APT: http://code.google.com/p/mvp4g/wiki/APT_130.

FANTASTIC ;)

Pierre

unread,
Jan 11, 2011, 10:04:57 AM1/11/11
to Mvp4g
Hi Dennis,

I reproduced your issue, it seems Eclipse and maven have different
java compilation. The error appears only with maven. I've been able to
correct the issue and I uploaded a new snapshot. I tested with a local
maven project and the error was corrected but I will validate with
hudson to make sure there is no more error.

I keep you updated,
Pierre

Dennis

unread,
Jan 11, 2011, 11:10:40 AM1/11/11
to Mvp4g
Hi Pierre,

I think the difference is between eclipse's own java compiler
implementation and sun''s official java compiler (javac) which in my
case is used by hudson through some ant buildscripts (and I guess
maven uses it too).
I will try to test it again later on today.

thanks,
Dennis

Pierre

unread,
Jan 11, 2011, 11:33:53 AM1/11/11
to Mvp4g
We tested the last snapshot on hudson (with maven) and it worked.
Sorry about this bug. If you ever have other issues, let me know.

Thanks,
Pierre

Dennis

unread,
Jan 11, 2011, 11:55:20 AM1/11/11
to Mvp4g
great! It seems http://code.google.com/p/mvp4g/downloads/list is not
yet up to date with the latest snapshot. Where should I get it from?
svn?
I see there is one in
http://code.google.com/p/mvp4g/source/browse/maven2/snapshots/com/googlecode/mvp4g/mvp4g/1.3.0-SNAPSHOT/mvp4g-1.3.0-20110111.142313-8.jar?spec=svn876&r=876
but this is for maven - is there any difference to the normal one?

thanks,
Dennis

Pierre

unread,
Jan 11, 2011, 11:11:17 PM1/11/11
to Mvp4g
Hi,

I noticed another difference between eclipse and maven/ant :/, I think
I will create a special jar for eclipse apt so that it's not used by
maven/ant (since it's not needed, see this message:
http://groups.google.com/group/mvp4g/browse_thread/thread/1a9e46797c481355#).

Pierre

On Jan 11, 11:55 am, Dennis <googelyb...@gmail.com> wrote:
> great! It seemshttp://code.google.com/p/mvp4g/downloads/listis not
> yet up to date with the latest snapshot. Where should I get it from?
> svn?
> I see there is one inhttp://code.google.com/p/mvp4g/source/browse/maven2/snapshots/com/goo...
> > > - Show quoted text -- Hide quoted text -

Pierre

unread,
Jan 13, 2011, 8:24:23 PM1/13/11
to Mvp4g
A new snapshot is available. There is no new feature but the APT has
been moved to its own jar to prevent issues with ant/maven.

Pierre

On Jan 11, 11:11 pm, Pierre <plcoir...@gmail.com> wrote:
> Hi,
>
> I noticed another difference between eclipse and maven/ant :/, I think
> I will create a special jar for eclipse apt so that it's not used by
> maven/ant (since it's not needed, see this message:http://groups.google.com/group/mvp4g/browse_thread/thread/1a9e46797c4...).

Pierre

unread,
Feb 7, 2011, 8:31:52 PM2/7/11
to Mvp4g
A new snapshot of Mvp4g-1.3.0 is available. This snapshot includes all
the features that will be available for the final 1.3.0 release. No
change will be brought to Mvp4g-1.3.0 (but bugs correction if any).

It includes:
-Use of historyName instead of the event's method's name for the
dispatch method (issue 60).
-Custom Place Service (issue 63, see doc:
http://code.google.com/p/mvp4g/wiki/PlaceService_130#Setting_a_Custom_Place_Service)
-Possibility to turn off history for the whole application, not only
for one module (issue 62, see http://code.google.com/p/mvp4g/wiki/PlaceService_130#Temporary_disable_history)
-Simplify conversion from event to token (issue 51, see doc:
http://code.google.com/p/mvp4g/wiki/PlaceService_130#Associate_an_History_Converter_to_an_event)
-Removal of XML support (issue 64)
-Possibility to set no start view for non-autodisplay child module
(issue 67, see http://code.google.com/p/mvp4g/wiki/EventBus_130#Start_View)
-APT: detect child/parent events error

You may have to bring some changes to your code when you move to this
snapshot:
-@Event: attribute 'historyName' has been renamed 'name' (see issue
60)
-dispatch, convertToToken and filterEvent now uses the event's name
and not its type. This may impact your code if you have named your
event (by default event's name == event's type) and uses one of these
methods.
-@History(convertParams=false) has been replaced by
@History(type=HistoryConverterType.NONE)
-@HistoryConfiguration has been removed. You can now define your own
place service and set it for your application thanks to @PlaceService
(you can look at
http://code.google.com/p/mvp4g/source/browse/trunk/examples/Mvp4gModules/src/com/mvp4g/example/client/main/CustomPlaceService.java
).

If you have any question or issues, let me know.

Thanks,
Pierre

Pierre Coirier

unread,
Mar 17, 2011, 8:21:46 PM3/17/11
to Mvp4g
Mvp4g has been added to the official GWT gallery (http://
gwtgallery.appspot.com/about_app?app_id=485001). Don't hesitate to
leave a comment and rate the project.

Thanks,
Pierre
Reply all
Reply to author
Forward
0 new messages