Skip to main content
1-Visitor
May 20, 2014
Question

Problem in rendering two or more NmDefaultHTMLTables in one JSP page.

  • May 20, 2014
  • 1 reply
  • 1172 views

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);

-----------------------------------------------------------------------------------------------------------------


1 reply

1-Visitor
May 17, 2017

Hi Chandan,

We are facing the same issue now. Were you able to solve it? If so, can you please let me know.