23.12.2012 Views

ZK Developer's Guide

ZK Developer's Guide

ZK Developer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Is it on the Desktop or on the Web?<br />

If we click on Embed the window the window is embedded by calling<br />

doEmbedded(). To mark the menu as context menu to the rememberWindow we use<br />

the context attribute of the window component.<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

rememberWindow.doOverlapped();<br />

<br />

<br />

Adding a Login Page<br />

Now it's time to add a login page to our application. The screen itself is very simple,<br />

and appears like the following figure:<br />

The two fields Username and Password should have validation. The validation<br />

is enabled with the help of the constraint attribute. This attribute can contain a<br />

combination of the following options:<br />

•<br />

•<br />

•<br />

•<br />

no positive<br />

no negative<br />

no zero<br />

no empty<br />

[ 100 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!