File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Duplicate Component ID found in view" Watch "Duplicate Component ID found in view" New topic
Author

Duplicate Component ID found in view

Sahil Dave
Greenhorn

Joined: Nov 10, 2010
Posts: 11
Hi

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?


Sahil
vij guy
Greenhorn

Joined: Oct 14, 2009
Posts: 8

http://www-01.ibm.com/support/docview.wss?uid=swg1PK48744

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

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

<contex-param>
<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.
</description>
<param-name>com.ibm.ws.jsf.storeDynamicClientIds</param-name>
<param-value>true</param-value>
</context-param>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Duplicate Component ID found in view