O'Reilly logo

ZK Developer's Guide by Markus Stauble, Hans-Jurgen Schumacher, Jurgen Schumacher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating Our Own Component

After we have customized the layout and the styles, and created our own components based on existing components it's time to create a custom component. In application development, it should be rare to create a custom component, but to have a complete understanding of the framework it could be important to know how a component is created.

In the example login.zul, we use a window component with a title ('Login to the online media library').

Now, we try to create our own window component. The first step is to define a language-addon.

<?xml version="1.0" encoding="UTF-8"?> <language-addon> <addon-name>my-window</addon-name> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required