ZK Developer's Guide
ZK Developer's Guide
ZK Developer's Guide
- TAGS
- guide
- iknow.seforge.org
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Online Media Library<br />
We need four navigation points, and therefore, four pages to fulfill the requirements<br />
of the CRUD feature. These four pages are:<br />
•<br />
•<br />
•<br />
•<br />
Add a new media item: add-media.zul<br />
Update an existing media item: update-media.zul<br />
Delete an existing media item: delete-media.zul<br />
Show media: show-media.zul<br />
The navigation page is depicted in the following figure:<br />
To have a border with a title, the window component of <strong>ZK</strong> is used. With the help of<br />
the div component, the window component is centered. The next problem we have to<br />
solve is that each link should appear on a new line. This is achieved by using the br<br />
tag from HMTL. Hence, we have to define the XHTML namespace.<br />
The complete implementation of the page is shown below:<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
[ 52 ]