0

IdGenerator -- when is it called?

asked 2012-05-01 20:06:14 +0800

darius gravatar image darius
279 3

The documentation for IdGenerator nextComponentUuid() says:
"This method is called when Component.getUuid() is called at the first time. It is usually when the component is attached to a page, unless the application invokes Component.getUuid() earlier."

However, if I call getUuid(0 *before* the component is attached to a page, it does not call our IdGenerator. Instead, it returns an id that is "z__... "

Looking at the code for AbstractComponent, it seems to say that if the page is null then it will return the "anonymous" Id rather than trying to generate the nextUuid().

I'm not sure if the documentation is right or if the behavior of AbstractComponent is right, but they appear to be inconsistent.

(P.S.: This is ZK6)

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2012-05-02 04:48:56 +0800

dennis gravatar image dennis
3679 1 6
http://www.javaworld.com....

I posted a issue at

http://tracker.zkoss.org/browse/ZK-1106
, please follow it.

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

Follow

RSS

Stats

Asked: 2012-05-01 20:06:14 +0800

Seen: 141 times

Last updated: May 02 '12

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