File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Datatable problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Datatable problem" Watch "Datatable problem" New topic

Datatable problem

venkata swamymora
Ranch Hand

Joined: Aug 06, 2007
Posts: 33
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

Joined: Jun 25, 2001
Posts: 17410

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!

An IDE is no substitute for an Intelligent Developer.
venkata swamymora
Ranch Hand

Joined: Aug 06, 2007
Posts: 33

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 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 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

Joined: Aug 06, 2007
Posts: 33
Still this problem is on pending.Nobody is solved this problem.Atleast provide give me some idea how to solve this.

I agree. Here's the link:
subject: Datatable problem
It's not a secret anymore!