Help coderanch get a
new server
by contributing to the fundraiser
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Web editable table

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/
 
Talk sense to a fool and he calls you foolish. -Euripides A foolish tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic