Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Datatable problem

 
venkata swamymora
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all

i'm using jsf and datatable for displaying,searching result of a query
the problem is when i try to assign the value of the datatable to a
Result Object, everything goes right but as i try to assign a ArrayListDataModel or ListDataModel. it only displays the
last record of my table and it repeat it according to the table
records count! i'm really confused since i've printed the value of the model for different indexes and they are
different! but when it comes to display the data on the datatable,
it shows the last record only repeatedly

is it something wrong with dataTable or something?


Any help shold be appreciated

Thanks in advance
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Datatables work fine, but you may have misconfigured something. Can you post the JSF source for your datatable control and the Java code that populates it?

Remember to use the "code" UBB button to wrap your stuff and disable smilies, so the Saloon BBS software doesn't mangle things!
 
venkata swamymora
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have one more problem with the datatable similar to this iam using datatable for searching and listing.Iam setting a new search list to a datatable.In search method iam adding a list to a datatable and for listing iam using another list.so the datatable not getting reset.After search iam trying to add a new record into a database that record is successfully adding to a database but that record is not getting update into datatable.its showing previous list.this problem comes only after using search because iam setting a new list into datatable.so how can i overcome this problem.without search its working fine.since two days iam working on this problem.iam gooogled but no use .So please suggest me
 
venkata swamymora
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Still this problem is on pending.Nobody is solved this problem.Atleast provide give me some idea how to solve this.

Venkat
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic