• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

IllegalStateException: Client-id : ... is duplicated in the faces tree

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm facing a problem using a datatable component. I can call the view twice without a problem, but the third time I get a IllegalStateException: Client-id : ... is duplicated in the faces tree. Before the exception occurs Hibernate shows a query for populating the datatable, so it's probably a rendering issue.

It's probably something stupid I'm overlooking, but I'm crushing my brains for some hours now on it. Any Ideas?

Kind regards,

Roel


Stacktrace:


JSF-view (stripped):


faces-config.xml:


UserListPageBean (removed getters/setters/imports):


The userDAO is injected by Spring:
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You get thus typically when updating a Faces view when the underlying JSF has been changed, so most commonly when you're tweaking stuff in development. Usually a complete page refresh will flush it out (meaning go to some other page, then request the offending page to be built from scratch, not via "back" or redisplay).

One thing that can help is to be generous when assigning id attributes on components. I've found that placing "id=" on forms and input controls is a general all-around boon.
 
My previous laptop never exploded like that. Read this tiny ad while I sweep up the shards.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic