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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

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

ptc-5506035
1-Visitor

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

Hi Chandan,

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

Announcements


Top Tags