Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
I have a JSP page where data is rendered using NmDefaultHTMLTable class. After the table is rendered I include two more JSPs at the bottom which in turn have their own tables which uses the same class NmDefaultHTMLTable.The problem is that when the JSPs are included they override the above table with their data. Is it not possible to render two or more NmDefaultHTMLTables in one page?
------------------Tabe 1 code snippet----------
NmDefaultHTMLTable table1 = new NmDefaultHTMLTable();
table1.addColumn();
table1.addCellValue();
NmDefaultHTMLTableModel Tmodel = (NmDefaultHTMLTableModel)table1.getModel();
table1.setTableModel(Tmodel);
modelBean.serModel(table1);
NmTableRenderer.draw(modelBean,,,,,,,);
modelBean.setModel(null);
-----------------------------------------------------------------------------------------------------------------
.
.
.
.
------------------Tabe 2 code snippet----------
NmDefaultHTMLTable table2 = new NmDefaultHTMLTable();
table1.addColumn();
table1.addCellValue();
NmDefaultHTMLTableModel Tmodel2= (NmDefaultHTMLTableModel)table2.getModel();
table1.setTableModel(Tmodel2);
modelBean.serModel(table2);
NmTableRenderer.draw(modelBean,,,,,,,);
modelBean.setModel(null);
-----------------------------------------------------------------------------------------------------------------
Hi Chandan,
We are facing the same issue now. Were you able to solve it? If so, can you please let me know.
