Invalid ID, perhaps, but wrong reason?

asked 2010-01-04 14:09:54 +0800

dastultz gravatar image dastultz
797 8

This code:

<window xmlns:h="http://www.w3.org/1999/xhtml">
	<h:table id="z_i1_af_monthPicker">

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


delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2010-01-05 04:32:50 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16

updated 2010-01-05 04:33:15 +0800

Hmmmm, i mean zk internally assign 'z_' ... for IDs by creating the components. Have you try it with an other id like 'id="myMonthPicker"' ?


link publish delete flag offensive edit

answered 2010-01-05 08:38:50 +0800

dastultz gravatar image dastultz
797 8

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.


link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2010-01-04 14:09:54 +0800

Seen: 435 times

Last updated: Jan 05 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More