Reputation: 5679
I am stuck with a logic problem here. I did a lot of thinking but I cant come up with a solution.
So this application displays a table, My task was to add another table(BOTTOM) similar to one already present(TOP). This application is 5 years old and all the HTML and Javascript code(for sorting) are generated on the fly by Java classes.
Process of execution is: first it calls getData(), than populateData() which eventually calls createTable method with parameters List Data, String strURL, boolean headerRow, boolean altRowColor. createTable(rows, url, bHdrRow, bAltColor)
Here the variable strURL is the HTML link for First column fields. Requirement is that if a particular link(First column) is clicked on any of the two tables, the other table should execute the same way. (For example if LINK_1 takes TOP table one level down, than on clicking it BOTTOM table should move down one level as well.
How do I make it work with Java. I dont want to go through triggering an onClick even for the tables.
Upvotes: 0
Views: 84
Reputation: 88737
If the page is completely refreshed (no ajax) why don't you just execute that "one level down" action on both tables on the server side and render the result accordingly?
Upvotes: 1