Change By: Antti Hietala (12/Jan/15 4:30 PM)
Summary: Model -  View -  Presenter  pattern
Description: Draft page on MVP needs completion: http://documentation.magnolia-cms.com/display/DOCS/Model-view-presenter+pattern 

Originally part of drafts for 5 * History: Google/GWT and Vaadin recommend using an MVP pattern
* Reasons why you should follow MVP:
*# Separate business logic from rendering
. 0  The logic is in the presenter .  View doesn  ' Abandoned t know about the model.
*# Flexible: You can easily change the view implementation. We don
' t do it  in  February due  Magnolia but in theory you can.
*# It is easier
 to  Academy pressures  test when logic is separated from rendering .  Check with Espen if correct  Better testability .  Possibly Philipp. Move
* Simple use case: creating your own view
* When creating your own UI, you need
 to  new Architecture section when ready :
*# Define a view MyCustomView by creating a view interface which extends the ContentView interface which is provided by Magnolia
.  Redo or rename images  Add an inner interface called Listener .
*# Implement your own presenter MyCustomPresenter. It must implement ContentPresenter which is provided by Magnolia and MyCustomView.Listener.
*# Create a real view implementation which implements MyCustomView = this would then be MyCustomViewImpl
* The draft document shows the workbench view which is very complex. Instead, show a simple UI: SampleApp 
** Change the code snippets
** Change the diagrams to show the code example
* Does the event bus belong to the MVP topic?
* Check which diagrams we need and labels
* Annotate the diagrams
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to