Not unique in the new ID space

asked 2010-03-23 07:04:29 +0800

Neus gravatar image Neus
1415 14

I have a modal window and when I open it I get this error:

23-mar-2010 12:51:51 org.zkoss.zk.ui.impl.UiEngineImpl handleError:1114
GRAVE: >>org.zkoss.zk.ui.UiException: Not unique in the new ID space: BarraBotonesTareaNueva

BarraBotonesNuevaTarea is a Toolbar:

Toolbar BarraBotonesNuevaTarea = new Toolbar();
BarraBotonesNuevaTarea.setStyle("margin-top:7px; border:none; background:transparent");

And it's ID is unique.There isn't any other component in that modal window with that ID. In it's parent there isn't that ID neither.

I try to change the ID but no matter what I set that always throws this error.

Does anyone knows why?

Thank you very much!

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2010-03-23 13:34:17 +0800

caclark gravatar image caclark
1753 2 5

Where's this code being run? It has to be firing multiple times...Have you put a breakpoint or S.o.p in it?

link publish delete flag offensive edit

answered 2010-03-24 02:49:27 +0800

Neus gravatar image Neus
1415 14

My mistake was so silly!I was calling the function that creates the toolbar 2 times...

Thank you!

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-03-23 07:04:29 +0800

Seen: 1,694 times

Last updated: Mar 24 '10

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