This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.IllegalStateException: duplicate Id for a component

 
Ashraf Abu-Aisheh
Ranch Hand
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I try to mix between JSF and JSP like this:



and when i try to access the page first time it is work properly, but at the second time i got the following exception:



Note that every component inside the formUsersList form have unique Id.
I have test it in Jboss and Tomcat, the same exception still appearing.

Help me.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17627
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mixing JSF and JSTL is often a recipe for trouble. I normally get this message when I've updated a JSF page definition and am trying to refresh it, but the cause is the same. Generally speaking, it means that the last display of the page doesn't match what you're currently attempting to output and the internal structure management is confused.

Normally the best way to enable/disable display of a JSF element is to use the "rendered" attribute, but I'm not sure if that applies to columns and I'm too lazy to read the manual. If that doesn't work, however, you should be able to create logic to insert the column definition dynamically as needed.
 
Ashraf Abu-Aisheh
Ranch Hand
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Problem Solved by using <f:verbatim> as the following:


Thanks for all and many thanks for <f:verbatim>
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic