Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web editable table

 
Dmitry Fedorovich
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day, guys...
I`m not sure i write in the correct section, but still...

The point is - i`m writing a java web (Servlet based) application, and i need to show the user a data table.
That table should be able to show data, filter it, find by some parameter and even allow user to change data (and data must be changed in database too).

I can write my own HTML table, which sends web requests via AJAX-to-SERVLET way. And in servlet logic select new data, or modify database, BUT. It will take sooo long.

So is there any good and flexible engine with such functionality?
As a resume - i need:
1) Show user data from my database (as a table)
2) Allow user to sort, filter and CHANGE data (data in database also must be changed)
3) It must work through AJAX (no page reload in any user`s action)

Thanks a lot.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you can use JQuery, there are some interesting plugins for tables, especially DataTables. Check here.
 
Dmitry Fedorovich
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. But they don`t support editing. Also i need server side logic to manipulate with database. In PHP cake framework can do the trick...
But i`m looking for the same in java...
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

You should use Javascript DOM API for creating a TextNodes filling with Data Dynamically .

Some sample code

This is very basic , you need to do a lot of R&D work on Javascript DOM API to achive this functionality .

If you face any problems , post your questions in HTML and Javacript Forum on Coderanch to get better answers
 
Albareto McKenzie
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know how that can be achived by using only your own Javascript, but if you don't mind using a library continue reading:

That can be done using ExtJS very easily, check out this example: http://dev.sencha.com/deploy/dev/examples/grid/edit-grid.html

This is the library's site: http://www.sencha.com/products/js/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic