Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Web editable table

 
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.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • 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...
 
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
 
Ranch Hand
Posts: 308
  • 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
Boost this thread!