-
FEATURED COMPONENTS
First time here? Check out the FAQ!
This code:
<window xmlns:h="http://www.w3.org/1999/xhtml"> <h:table id="z_i1_af_monthPicker"> <h:tr> <h:td>Hey</h:td> </h:tr> </h:table> </window>
Produces this error:
org.zkoss.zk.ui.UiException: Invalid ID: z_i1_af_monthPicker. Cause: reserved words not allowed: [arg, page, session, event, spaceOwner, desktop, self]
The ID may in fact be invalid (though I don't know why), but it's not a reserved word.
Zk 3.6.3
/Daryl
Hmmmm, i mean zk internally assign 'z_' ... for IDs by creating the components. Have you try it with an other id like 'id="myMonthPicker"' ?
best
Stephan
I ran into a non-unique ID problem so I prefixed "monthPicker" with someParentComponent.getId() + "_" ...
I've since found a different way of accomplishing my goal. I post here simply because the error message is misleading.
/Daryl
Asked: 2010-01-04 14:09:54 +0800
Seen: 435 times
Last updated: Jan 05 '10