You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/advanced/technical/concept.md
+37-37Lines changed: 37 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,43 @@ A typical "UI5-View Over the Wire" response looks like this:
95
95
"UI5 Over the Wire" - Response with View & Data together
96
96
97
97
98
+
#### Partial HTML Updates also possible?
99
+
100
+
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:
101
+
102
+
```abap
103
+
CLASS z2ui5_cl_app_partly_rerender DEFINITION PUBLIC CREATE PUBLIC.
104
+
105
+
PUBLIC SECTION.
106
+
INTERFACES z2ui5_if_app.
107
+
DATA text TYPE string.
108
+
DATA enabled TYPE abap_bool.
109
+
110
+
ENDCLASS.
111
+
112
+
CLASS z2ui5_cl_app_partly_rerender IMPLEMENTATION.
113
+
114
+
METHOD z2ui5_if_app~main.
115
+
116
+
IF client->check_on_init( ).
117
+
118
+
client->view_display( z2ui5_cl_xml_view=>factory(
119
+
)->input( enabled = client->_bind( enabled ) value = client->_bind( text )
- Offline functionality or complex client-side interactions are not covered.
279
316
- Less effective if frontend and backend teams work independently.
280
317
281
-
#### Partial HTML Updates
282
318
283
-
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:
284
-
285
-
```abap
286
-
CLASS z2ui5_cl_app_partly_rerender DEFINITION PUBLIC CREATE PUBLIC.
287
-
288
-
PUBLIC SECTION.
289
-
INTERFACES z2ui5_if_app.
290
-
DATA text TYPE string.
291
-
DATA enabled TYPE abap_bool.
292
-
293
-
ENDCLASS.
294
-
295
-
CLASS z2ui5_cl_app_partly_rerender IMPLEMENTATION.
296
-
297
-
METHOD z2ui5_if_app~main.
298
-
299
-
IF client->check_on_init( ).
300
-
301
-
client->view_display( z2ui5_cl_xml_view=>factory(
302
-
)->input( enabled = client->_bind( enabled ) value = client->_bind( text )
0 commit comments