HTML Tags
Here we discuss how to use HTML tags directly in a ZUML document. There are several ways as described in the following sections, and you could choose one based on your requirements.
| What to consider | html component | native namespace | XHTML components | JSP |
|---|---|---|---|---|
| Update Content Dynamically | Yes | No | Yes | No |
| Mix with ZUL components | No | Yes | Yes | Yes/No |
| Memory Footprint | Small | Small | Large | Small |
| Support EL | Yes | Yes | Yes | Yes |
| Support Data Binding | Yes | No | Yes | No |
native namespace
We cannot update content dynamically at the server. However, we can modify the DOM tree directly at the client. Please refer to the Client-side UI Composing
JSP
- Technically, you can modify the browser’s DOM tree dynamically at the client by JavaScript. Not by ZK Java API.
- You could mix HTML tags with ZK components, if ZK JSP Tags is used. Otherwise, you could only have a JSP page to include other ZUL pages, or vice versa
In addition, you could use iframe to embed a complete HTML document which might be from a different website with different technology. Or, use include to include an HTML fragment.