• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

make a cell in a table ediable in a jsp page

 
Komal Amaresh
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have make a cell in a table editable. After editing the value in the cell and on clicking the update button, the database should be updated and the page refreshed.
I have three columns, the first column is date. All the rows of the date columns should be made editable on the client side itself on clicking the particular cell. I' am stuck at this point and cant think of any solution.
Please help me.

regards,
Komal
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64832
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is nothing in JSP that can help you. JSP just let's you create HTML pages that are sent to the browser. Once there, a JSP is just an HTML page like any other.

You'll need to effect this in JavaScript.

Topic moved appropriately.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64832
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the click handler, write script that either creates, or reveals previously created but hidden, input elements in the cells and hides the text values.

 
Komal Amaresh
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I dont really know how to work it out.
I have a table displaying a list of holidays with three columns, the date, the occassion and the state displayed as a checkbox. If the checkbox is checked, it I should be able to edit the occasion name otherwise it should not be editable. Please help me with some example code.

Thanks in advance,

regards,
Komal
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64832
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's not the way that JavaRanch works. You write the code. We help you with problems that you may have with it. Please read this for more information.

Give it a try. Surely you can at least get it started!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic