This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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
Bartender
Posts: 18531
61
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!