• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

h:dataTable binding => duplicate ID

 
Joe Shannow
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, problem is in @SessionScoped bean. Using @ViewScoped helped
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic