Hi!

I have a frustrating problem with duplicate ids in my webapp (myfaces
1.1.1)

I'm using tiles and each tiles:insert is in a (id'ed) subview.

Here is what might be "special":

In the main tile on two pages I show a dataTable (and dataScroller) that
is bound both times to the same objects of a session scoped bean - but
the contents of the underlying list change in between. First, I did that
by including (in a subview) the same page (with datatable and scroller)
twice, because of the ID-problems I then tried two different includes
and I also put the whole thing into the page directly.
Up to now I put a lot of different id attributes into the two included
pages (what is clearly not what I initially intended) to make each view
"more unique". 

There are also some visibleOnUserRole and rendered attributes that might
change between the two views.

The exceptions are  - vaguely: "cannot add component ..... to ..... This
might be due to duplicate IDs" and  a "X is duplicated in the faces
tree" (this was mostly the "[dataScrollerId]first". The dataScrollers of
the two pages have different IDs. They occur after visiting the first,
then the second of the two views and then returning to the first.

Is there a way to avoid such a scenario? More or less different ids? 
How independently is a subview? What happens when including the same
page with the same subview id?

Thank you very much for help, it is really frustrating ...

sonja


-- 
Sonja Löhr <[EMAIL PROTECTED]>

Reply via email to