Activities and places with MVP approach question

102 views
Skip to first unread message

Daniel Mauricio Patino León

unread,
Nov 4, 2012, 1:50:09 PM11/4/12
to google-we...@googlegroups.com
I recently started a new project usign Activities and palces with mvp. Now i have a quiestion of approach.

Example:

Employee CRUD

Activity and place for each operation C, R, U 

One place differente activities for operations C, R, U.

what you guys suggest to use and why?

many thanks

Joseph Lust

unread,
Nov 7, 2012, 11:50:26 AM11/7/12
to google-we...@googlegroups.com
Why use A&P for these backend service actions? Places usually have a name token for the URL like #!home, so that they can be mapped to the URL's, browser history, and bookmarks, allowing users to return to that Place at a future date. I don't think you want the user to bookmark a CRUD operation and then trigger it again in the future by returning the URL or hitting the Back button on the browser.


Sincerely,
Joseph

Jesse Hutton

unread,
Nov 26, 2012, 2:27:04 PM11/26/12
to google-we...@googlegroups.com
I have previously used one activity for C and U, and another for R (and D). It basically came down to the fact that the views were mostly the same between those pairs, so they could be reused and the activity (and presenter) could figure out the details and which controls to show based the action information the place (which you can get away with having one of). In addition, I also had a list activity for a total of 3 activities for each entity type.

Jesse


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/U7HG3XPNSk8J.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Daniel Mauricio Patino León

unread,
Dec 5, 2012, 2:42:17 PM12/5/12
to google-we...@googlegroups.com
Hi Joseph i am not trying to move the backend things on A&P i meant the actions of the user.

Some user could bookmark the place of edit, create or read  Products,  for example.

The place and activity per action.

/#Addproduct:
/#Editproduct:1312
/#Readproduct:

or just one place different activities.

/#Product:Read
/#Product:New
/#Product:Edit-1312




2012/11/26 Jesse Hutton <jesse....@gmail.com>



--
ISC. Daniel Mauricio Patiño León.
Director ejecutivo
Liondev S.A. de C.V.



Reply all
Reply to author
Forward
0 new messages