This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes h:dataTable binding => duplicate ID Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "h:dataTable binding => duplicate ID" Watch "h:dataTable binding => duplicate ID" New topic
Author

h:dataTable binding => duplicate ID

Joe Shannow
Ranch Hand

Joined: Dec 01, 2010
Posts: 35
Hi,

I have a problem using HtmlDataTable for viewing data from database.

When I create <h:dataTable> component, the table has sometimes (not always) twice number of columns.
It is shown correctly and after several refreshes (without move in dtb or something) there is for example 6 columns instead of 3 and application (sometimes) become unstable.
Since this time I can't work with table because it reports "duplicate Id for a component"..

Simple example:

And java.class

I have two working similar modules, and the third doesn´t work
Have you ever met this kind of problem?

Thanks
Joe Shannow
Ranch Hand

Joined: Dec 01, 2010
Posts: 35
And the Error message:

Followed by tree of components.
I thing there's nothing duplicated in code, but dataTable create a new columns and after that it's really duplicated
Joe Shannow
Ranch Hand

Joined: Dec 01, 2010
Posts: 35
OK, problem is in @SessionScoped bean. Using @ViewScoped helped
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: h:dataTable binding => duplicate ID
 
Similar Threads
Special Characters '&' and ':'
JSF + RichFaces not able to reRender
Doubt in JSF
Input row select on data table does not get called
commandLink not working in datatable+jsf2.0