aspose file tools*
The moose likes JSF and the fly likes IllegalStateException: Client-id : ... is duplicated in the faces tree Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "IllegalStateException: Client-id : ... is duplicated in the faces tree" Watch "IllegalStateException: Client-id : ... is duplicated in the faces tree" New topic
Author

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

Roel Verwinkel
Greenhorn

Joined: Nov 23, 2009
Posts: 1
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

Joined: Jun 25, 2001
Posts: 16065
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IllegalStateException: Client-id : ... is duplicated in the faces tree