This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSF and the fly likes Duplicate Component ID found in view Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » JSF
Bookmark "Duplicate Component ID found in view" Watch "Duplicate Component ID found in view" New topic

Duplicate Component ID found in view

Sahil Dave

Joined: Nov 10, 2010
Posts: 11

I know this question has been raised and discussed many times in this forum, but none of the threads were able to solve the issue. I am facing the same dreaded exception:

I have the following code in my login.jsp

I simply fail to understand, where is such an id coming from, when I have explicitly given ids to all the components in the page!
Is this an issue with JSF or the application server (in my case weblogic 9.2)?

Any suggestions/pointers?

vij guy

Joined: Oct 14, 2009
Posts: 8

You can either explictly name the component or add an entry to web.xml

To prevent collision with existing client IDs, the property must be set to
"true" in the web.xml file. For example:

<description>If this property is set to true, the number
that is used to generate new client IDs is stored in the view
so that it is saved between requests.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Duplicate Component ID found in view
jQuery in Action, 3rd edition