What are the advantages and disadvantages between action-based and Component-based frameworks?

Asked

Viewed 3,414 times

15

Regardless of the framework or language(php,java,c#)

What are the main advantages and disadvantages between action-based and Component-based frameworks?

In which environment does one or the other fit best? What kind of application does one tend to be better than the other?

Examples of applications if possible.

  • I could cite examples of frameworks to which you refer?

  • Action based = spring mvc,vraptor,slim framework, Yii framework Component based = jsf,GWT, prado php

2 answers

16


According to some research I performed follows some points to be analyzed, everything depends on the need of your software:

Action based

  • Who uses this approach: Vraptor, Struts 2, Webwork, Grails/GSP, Play, Spring Web MVC

  • Easy to perform tests; ;

  • Offers better code maintenance;

  • Requires knowledge in HTML, CSS and Javascript.

Component based

  • Who uses this approach: Wicket, JSF, GWT, Vaadin;

  • Components ready for use;

  • Difficult to perform customizations;

  • Difficult to perform tests;

  • Induces developer to mix MVC layers;

  • Consume more memory;

  • Abstract the use of HTML, CSS and Javascript

I suggest reading this article (link below) where it addresses the subject citing some examples in practice using the language java.
http://blog.caelum.com.br/entenda-os-mvcs-e-os-frameworks-action-e-component-based/

OBS: I am programmer C#

1

The interesting thing would be the combination of these two paradigms, which is what Crux Framework allows us through GWT. With it, we have an Action Based (MVC Push) since HTTP requests are directed exclusively to handling business rules and not front controller interface rules (which in this case is allocated to the client). At the same time, we have a Component Based (MVC Pull) because the front controller code is written in Java, the pages are xhtml resources (can contain pure HTML elements) and are built through components. In terms of the advantages and disadvantages, our friend Gustavuu responded very well. Adding, I suggest a reading of the link.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.