Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Hello guys, First of all i wish you happy and prosperous new year to all javaranch team.
here is my problem::
i am displaying some rows of data from the db based on user input in a grid. each row in the grid has radio button, my requirement is when the user clicked on radio button i need to display 6 text boxes(infact these text boxes are nothing but the column names of the grid )with the actual values, so that user can update these values and hit on update the updated values to be reflect the db.
i am able to pull the rows from db and displaying on the grid, when the user clicks on first radio button i am able to display the first row of data in the text boxes, when the user clicks on second row of data i am able to display the second row of data in the text boxes, but here i want to hide the first row of text boxes. currently i am displaying all the rows in the textboxes(At any given point of time i have to display the one row of text boxes based on user click on the radio button, if user clicks on 1st radio button display first row in text boxes, if user clicks on 2nd row , then hide the first row of text boxes and display the 2nd row of text boxes)
one more problem is if user updates some values in the text boxes how to send the updated values to the action. to perform db update( i am using struts frame work with dispatch action)
Originally posted by Eric Pascarello: Are you cached? Have you debugged to make sure it is going into the if statement?
Eric, i cleared the cache, lets say i have 2 rows in the grid. when the page is loaded the grid has 2 rows and each row has a radio button. when i click on firstrow radio button for the first time it is going to second if.
then if i click on the second row raio button it is going to first if with lastindex is set to 0(which is id) and also it is going to second if with lastindex is set to 1.