Skip to content

Commit fa0900f

Browse files
authored
update
1 parent a7b0c29 commit fa0900f

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

docs/advanced/technical/concept.md

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@ The key concept of **abap2UI5** is to apply the **HTML Over-the-Wire** approach
66

77
**HTML Over-the-Wire** refers to a web architecture where the server renders user interfaces and sends ready-to-use HTML fragments to the browser. This avoids complex client-side frameworks and keeps the frontend lightweight and maintainable. Both the UI and business logic remain on the server.
88

9-
```plaintext
10-
+-------------------+ +------------------+ +-------------------+
11-
| Server | | Browser | | User |
12-
|-------------------| |------------------| |-------------------|
13-
| HTML Definition | --> | Receives Response| --> | Interacts with UI |
14-
| | | Renders UI | | (clicks, inputs) |
15-
+-------------------+ +------------------+ +-------------------+
16-
```
9+
```plaintext
10+
+-------------------+ +------------------+ +-------------------+
11+
| Server | | Browser | | User |
12+
|-------------------| |------------------| |-------------------|
13+
| HTML Definition | --> | Receives Response| --> | Interacts with UI |
14+
| | | Renders UI | | (clicks, inputs) |
15+
+-------------------+ +------------------+ +-------------------+
16+
```
1717
Flow:
1818
- The server defines HTML
1919
- The browser inserts these definitions
2020
- Users interact with the UI — the backend handles logic and updates
2121

2222
While popular frameworks like Hotwire, Livewire, and Phoenix LiveView follow this approach, **abap2UI5 adapts it to SAP’s technological environment**, using SAP UI5 for frontend rendering and ABAP for backend-driven UI definitions.
2323

24-
#### From SSR to HTML Over-the-Wire
24+
#### History
2525

2626
In early web development, **Server-Side Rendering (SSR)** was the default. Every user action triggered a full-page reload with a complete HTML response.
2727

@@ -60,7 +60,15 @@ Several frameworks successfully implement the HTML Over-the-Wire approach:
6060

6161
#### UI5 Over-the-Wire
6262

63-
So what does a UI5 Over-the-Wire approach look like? In this architecture, the UI is defined on the ABAP server and transmitted to the browser. The browser renders the interface using a static UI5 application — without requiring additional JavaScript logic, OData services, or frontend frameworks.
63+
So what does a UI5 Over-the-Wire approach look like?
64+
65+
In this approach, the UI5 View and UI5 View-Model is defined on the ABAP server and transmitted to the browser. The browser renders the interface using a static UI5 application — without requiring additional JavaScript logic, OData services, or frontend frameworks.
66+
67+
**abap2UI5** brings the Over-the-Wire idea into the SAP world by combining:
68+
- ABAP-based UI definitions (UI5 views & view-models)
69+
- A static SAP UI5 frontend app for rendering
70+
- Backend-controlled UI and business logic
71+
- Targeted view-model updates, so only specific UI5 controls are re-rendered
6472

6573
```plaintext
6674
+---------------------+ +------------------+ +-------------------+
@@ -75,12 +83,6 @@ Flow:
7583
- The browser renders these definitions using a static UI5 application
7684
- Users interact with the UI — the backend handles logic and updates
7785

78-
**abap2UI5** brings the Over-the-Wire idea into the SAP world by combining:
79-
- ABAP-based UI definitions (UI5 views & view-models)
80-
- A static SAP UI5 frontend app for rendering
81-
- Backend-controlled UI and business logic
82-
- Targeted view-model updates, so only specific UI5 controls are re-rendered
83-
8486
Key Benefits:
8587
- **Static UI5 Frontend App:** Delivered with the first HTTP request and remains generic and stable across all applications.
8688
- **Backend-Driven UI Control:** All UI definitions and business logic are implemented in ABAP classes.
@@ -96,8 +98,7 @@ Limitations:
9698

9799
#### Partial HTML Updates
98100

99-
A key feature is that the browser does not re-render the entire HTML page, but only specific parts. Can we achieve this with UI5?
100-
While modifying the XML view would typically trigger a complete re-render, focusing solely on updating the view model and binding UI attributes to it allows the UI5 framework to automatically update only the affected parts. Try out this snippet:
101+
A key feature of HTML over-the-wire is that the browser does not re-render the entire HTML page, but only specific parts. Can we achieve this with UI5? While modifying the XML view would typically trigger a complete re-render, focusing solely on updating the view model and binding UI attributes to it allows the UI5 framework to automatically update only the affected parts. Try out this snippet:
101102

102103
```abap
103104
CLASS z2ui5_cl_app_partly_rerender DEFINITION PUBLIC CREATE PUBLIC.

0 commit comments

Comments
 (0)