WCP/ADF to OJET: ADF MVC vs OJET MVVM

This is a post of the series Oracle WebCenter Portal to Oracle JET. In this case I will make another comparison between Oracle ADF and Oracle JET Architectures.
Maybe this should be the second and not the third post, anyway here it is.

WCP to OJET

Oracle ADF is based on MVC (Model-View-Controller)

Oracle ADF is a Java EE framework based on JSF 2.2 (Java Server Faces) which implements the pattern Model-View-Controller, but extending the classic Model of plain Java Server Faces based on Managed Beans.



Oracle ADF introduces the ADF Model layer (also known as the Binding Layer), which was intended to be standarized (JSR-227) to be the way for data binding and access from the view to the sources of data, however it never was approved.
The ADF Model abstracts the access to the business services independently of the data source (SOAP, REST, JPA)

Knockout (library used by Oracle JET) is based on (Model-View-ViewModel)

Oracle JET is a Toolkit which uses Knockout JS library for implementing Data Binding between the Views and the Model which is based in the pattern Model-View-ViewModel.
The View is an HTML file which is related to a ViewModel JavaScript file which binds the UI
information and update the Model underneath if required.


Similarities ADF - JET

  • The ADF Model implements a Data Binding concept very similar to Oracle JET - Knockout Data Binding.
    • In Oracle ADF there is a relationship Page/Fragment with the PageDefinition XML file.
    • In Oracle JET you have the View in HTML related to its ViewModel in JavaScript.
  • The ADF Model uses internally its Collection APIs which abstracts the components to work with the data obtained from the Data Sources. In Oracle JET it also uses its own JET Common Model API.

Comments

Popular posts from this blog

OJET: Inter-Module communication in TypeScript Template

OJET: Build and Deploy in an Application Server

OJET: Select All options using only Checkboxset