File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 agree. Here's the link:
subject: Duplicate Component ID found in view
It's not a secret anymore!