cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Highlighted
Newbie

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

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
Highlighted

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

Hi Chandan,

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

Announcements