-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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)
I posted a issue at
http://tracker.zkoss.org/browse/ZK-1106
Asked: 2012-05-01 20:06:14 +0800
Seen: 141 times
Last updated: May 02 '12