Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Roel Verwinkel
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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:
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18152
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic