Runnable codes speak louder than static code snippets.
This repository contains example source code used in ZK documentations including:
- ZK Developer's Reference
- ZK Component Reference
- ZK MVVM Reference
- ZK Client-side Reference
- ZK Style Customization Guide
componentreference/— Example code for ZK Component Reference documentationdevelopersreference/developersreference/— Example code for ZK Developer's Referencedevelopersreference/integration.cdi/- Example code for ZK Developer's Reference / Integration / CDIdevelopersreference/integration.ejb/- Example code for ZK Developer's Reference / Integration / EJBdevelopersreference/integration.hibernate/- Example code for ZK Developer's Reference / Integration / Hibernatedevelopersreference/integration.jpa/- Example code for ZK Developer's Reference / Integration / JPAdevelopersreference/integration.spring/- Example code for ZK Developer's Reference / Integration / Springdevelopersreference/integration.spring.security/- Example code for ZK Developer's Reference / Integration / Spring Securitymvvmreference/— Example code for ZK MVVM Reference.clientreference/— Example code for ZK Client-side Reference.mymodule/— Example code for a reusable modulestyleguide/— Example code for ZK Style Customization Guidecsp-filter/— Example code for ZK Developer's Reference / Security Tips / Content Security Policy / Enhancing Security with Strict-Dynamic
Each project has a Maven jetty plugin configured, just run the goal below:
mvn jetty:run
- Notice: Each project is a Maven project, so you need to install Maven first to run.
Folder is named by a chapter or a subsection.
- chapter name -
eventHandling - subsection name -
mvc/controller
a zul file is named by a page
e.g. , eventQueue.zul is for Use Event Queues
master - for the latest ZK
componentreference/: components, UI, ZK components, essential components (Button, Label, Image, Menu, Toolbar, Popup, Timer), input components (Textbox, Combobox, Datebox, Bandbox, Spinner, Checkbox, Radiogroup, Colorbox, Intbox, Doublebox, Decimalbox, Timebox, Calendar, Signature, CKEditor), container components (Window, Panel, Groupbox, Tabbox, Drawer, Fragment, Inputgroup), layout components (Hlayout, Vlayout, Hbox, Vbox, Box, Borderlayout, Portallayout, Cardlayout, Columnlayout, Rowlayout, Splitter, Linelayout, Organigram, Goldenlayout), event handling (event listeners, afterSize, visibility change, chatroom), multimedia components (Audio, Video, Camera, Cropper, Barcode, Barcodescanner, PDFViewer), diagrams and charts (Gantt, Bar Chart, Pie Chart, Google Map, Advanced Marker), supplementary components (Stepbar, Coachmark, Paging, Auxhead, Cell, Frozen), base components (Div, Span, XulElement, InputElement), mobile support, PWA (Progressive Web App), image and file upload/download, customization (custom renderer, custom template, custom JS), ZK component features, UI patternsdevelopersreference/: developer guide, backend, architecture,- mvc, model-view-controller, controller, view, model
- integration, CDI, EJB, Hibernate, JPA, Spring, JDBC, datasource, font-awesome
- security, CSP, content security policy, XSS, HTML escape, widget accessibility
- performance, ROD (Render on Demand), cache, stubonly, client performance, optimization
- event handling, event queue, event listening, desktop events, chat events
- utilities, browser detection, logging
- testing, test tips
- debugging, error message, desktop debugging
- theming, theme preview, theme switch
- accessibility, label-input, accessible widgets
- internationalization, i18n, locale, labels, messages, timezone
- responsive design, mobile, adaptive UI
- server push, async update
- advanced, module, META-INF
mvvmreference/: MVVM pattern, data binding, form binding, collection binding, command binding, global command binding, validator, converter, template injection, shadow component, command parameter, annotation, view model, dynamic binding, View Modelclientreference/: client-side, JavaScript, client API