• Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamically update Datatable  RSS feed

 
yunus ali
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, how can i access data and update database using link in a datatable.

For eg. i have a link "Approved" in datatable and i want that when i click on that particular row's column "Approved" then that particular record entered in database or if there is any other way to do this then please tell me.

 
Nikhil Padharia
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can achieve this by using AJAX functionality in your code.
Are you using any frameworks like Richfaces or Icefaces?

Check this, and find
<rich:datatable>
example given here.
 
yunus ali
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes i m using JSF so please tell me the whole procedure
 
Nikhil Padharia
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you check the link and the implementation there?
 
yunus ali
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes but i m not able to understand it completely..So can you tell me the code in JSF
 
Nikhil Padharia
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I won't be writing the code for you..
Please help yourself writing something, and if you get stuck with any problem post back, Will surely help you..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!