GWT Export an mvp4g presenter

27 views
Skip to first unread message

Joseph Gardi

unread,
Jan 25, 2015, 1:19:57 PM1/25/15
to mv...@googlegroups.com
I'm trying to create a Presenter with a view that's made in javaScript. I want to use GWT exporter because JSNI is a pain. I tried to use GWT exporter but GWT exporter requires that the exported classes implement Exportable. I made my presenter implement Exportable. The problem is that when mvp4g uses GWT.create() to create my presenter it gets an Exporter instead because GWT.create returns an Exporter when used on a class that implements Exportable. How can I get around this?

Frank Hossfeld

unread,
Jan 26, 2015, 4:27:44 AM1/26/15
to mv...@googlegroups.com
My idea is to use mvp4g as it is design with view and presenter classes. To use your JavaScript view, wrap this view with a Java Class. It should be possible to use get-exporter for the wrapper. Let the mvp4g view use the wrapper class. 

This should work.
Reply all
Reply to author
Forward
0 new messages