The file-check-period Element

From Documentation
Revision as of 08:03, 3 December 2010 by Char (talk | contribs) (Created page with ' {{ZKConfigurationReferencePageHeader}} [Default: <i>none</i>] [Since 3.6.1] [deprecated 5.0.3] It specifies whether to generate UUID based on ID. It is useful for testing p…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


The file-check-period Element


[Default: none]
[Since 3.6.1]
[deprecated 5.0.3]

It specifies whether to generate UUID based on ID. It is useful for testing purpose, such that the generated UUID is predictable. For example, the following causes the UUID to be generated by prefixing ID with _zid_.

<desktop-config>
	<id-to-uuid-prefix>_zid_</id-to-uuid-prefix>
</desktop-config>

Then, the following component's UUID will be _zid_foo.

<textbox id="foo"/>

Notice that UUID has to be unique in the whole desktop, so the above setting might cause the application unable to run (due to replicated UUID). You can minimize the possibility of ID conflicts by prefixing with page's UUID as follows.

<desktop-config>
	<id-to-uuid-prefix>_zid_${page}_</id-to-uuid-prefix>
</desktop-config>

Then, ${page} will be replaced with the page's UUID (if the page is available). However, since a page might still have several ID space, the UUID conflict is still possible.



Last Update : 2010/12/03

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.