Originally posted by kumar kosaraju:
My requirement is i have to update the table where there is no primary key. the user enters the kitnumber, so we are pulling all the rows for that particular kit number.i have checkboxes for all the rows, and the value for the checkbox is the row id.
when we display the results in a grid, we have to show all the existing data in a text field below each row.
upto this part i am done. i am able to pull the data from table and display in a table and display a textbox below each row with existing data.
Fine. Although a PK-less table indicates a bad datamodel.
my question i have to display the textboxes only when the user clicks on checkboxes.. i have used the <DIV> some how it is not working.
That sounds like if the HTML <div> element has some magical working. But it's just a simple block element. Can you please elaborate in detail what you expected of it?
the user clicks on checkboxes we will display the textboxes with existing data...
If you want to do this synchronously, just submit the form and let JSP render the input fields conditionally based on the checkbox value. You can perfectly use JSTL/EL for this. If you want to do this asynchronously, then use Javascript+DOM (DHTML) to display/hide elements during the onclick event of the checkbox.
the user can update the checboxes data and clicks on update we need to update the db with new vales..
here my question is how do we pass theses values to DB... i am totally confused.. any help would be greatly appreciated..
Just by submitting the form to the server and processing the parameters the usual way?
At which step exactly are you stucking while implementing it accordingly? You only stated some functional requirements and said that the <div> "doesn't work". You didn't elaborate in detail about the question/problem with which you're actually struggling. What is the coding problem you're struggling with?
[ December 22, 2008: Message edited by: Bauke Scholtz ]