GWT Application That Support Both Desktop Browser And Mobile Browser

82 views
Skip to first unread message

the.wizard

unread,
Aug 11, 2014, 3:31:19 PM8/11/14
to mv...@googlegroups.com
Hi everyone,
Right now I have build GWT Application that run great on Desktop Browser. But for future release, we need to support our users that access our application from mobile browser (smartphone and tablet device). I want to ask suggestions or any experience to share with me about building this multiscreen GWT application, especially how can MVP4G help me solve my need on multiscreen support.
Please kindly share with me anything from thoughts, experiences, etc.
Thanks & Regards.

Frank Hossfeld

unread,
Aug 12, 2014, 1:26:19 AM8/12/14
to mv...@googlegroups.com
Hi,

I did not dive to deep into mgwt, but I saw nothing that will stop you from using mgwt with mvp4g. As far as mgwt does not depend on special GWT feature, it should work.

A few days ago, we decided to create a showcase using mgwt (like the one, that is using GXT). After that, we know it for sure. 

Frank

the.wizard

unread,
Aug 12, 2014, 4:53:51 AM8/12/14
to mv...@googlegroups.com
Hi Frank,
Thanks for sharing your thoughts. I already look at mgwt for couple months ago, and some others mobile gwt library. What I want to discuss in this forum is, what is the best approach when we want our current gwt web desktop application to running great in mobile browser too? I have read some sources, that said we can use one presenter for 2 view, we can also build 2 version of application and seperate it in different module, than detect user browser before sending files to user browser via deffered-binding. I wonder what is the pros and cons of each method, and any experience of implementing one of those method would be great to share!
Thanks & Regards.

Frank Hossfeld

unread,
Aug 12, 2014, 5:00:47 PM8/12/14
to mv...@googlegroups.com
HI Pada,

personally I would try to implement the approach to have one presenter with two different views, one for desktop and one for mobile. Depending on the user.agent I would create deferred binding rules to create different applications. 

I did that already with native GWT but have no experience doing it with mvp4g. I thing there will be a problem with the @Presenter annotation. One parameter is the view. mvp4g needs that reference to a class, to create the instance of the view and inject it. 

I will think about it and come back to you.

Frank

Lukas Schmidt

unread,
Aug 13, 2014, 4:46:25 PM8/13/14
to mv...@googlegroups.com
Hi Pada, 

Frank and me discussed today what are the preconditions for a multi platform application. I think that the first step  is to implementation of the Reverse-MVP (or View-Delegate) pattern. It simplifies the replacement of View and the use of a presenter. 

We will try to create a proof of concept for a multi platform Application which will support a desktop, tablet and smartphone version. 

Lukas

the.wizard

unread,
Jan 9, 2015, 5:38:06 AM1/9/15
to mv...@googlegroups.com
Hi Lukas,
Have you create a proof of concept for multi platform application that will support both desktop and mobile browser?
Thanks.

Lukas Schmidt

unread,
Jan 13, 2015, 2:23:38 PM1/13/15
to mv...@googlegroups.com
Hi Pada,

sorry for the delay, but other projects needed my attention. I started with the creation of the proof of concept. However, I ran into problems very quickly.
I think, it is very complicated to find a general solution for this problem. Because each application has its own way in design and usability. 

The first questions are you have to ask yourself before you create a multi-device application in GWT:
  1. Which presenters are "global" presenters (Global means, that the presenter is needed on every device.)
  2. Which views are visible at the same time on all devices? (As an example, the Mail app: It has view with to see which messages in the mailbox in the form of a table. The second view is used to display the mailboxes (mail-in, mail-out, etc.). The space in the desktop version is large enough to display all views at the same time. In the mobile version, it is required to use an event to switch to the view of the mailboxes.)
  3. What common "GUI-Flows" exist on the devices? (As an example: Show the view with the content of a mail.)
  4. ....
I think that it is easier to use a specific problem to sample implementation. My suggestion would be that we try  to find a solution with the specific problem from your other post

Best regards
Lukas
Reply all
Reply to author
Forward
Message has been deleted
0 new messages