Form and table id not appended to table cells #3162
-
Hello, I am creating datatable and it's column programmatically. But when the table and corresponding columns rendered on UI form and table id is not appended to the component inside cell or even headers. Id's are just like j_id7 instead of form:<Table_Name>:_head. Is there any example on how to programmatically create columns and table or if you can point out the mistake. Sample code for table and column creation ` for ( ColumnsModel col : columnsList ) { table.setColumns( uiColumns ); Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Please provide an executable example using the PrimeFaces Test project. It is the only way developers can debug your problem to help. |
Beta Was this translation helpful? Give feedback.
-
just 2 hints from my side:
anyway, the way you trying to create your view isnt broadly used and therefor not much people can you help you here. i would make it via xhtml. |
Beta Was this translation helpful? Give feedback.
-
Thanks @tandraschko, The issue was the way I was adding the columns. Table.getChildren().add( Column ) solved the issue. |
Beta Was this translation helpful? Give feedback.
just 2 hints from my side:
anyway, the way you trying to create your view isnt broadly used and therefor not much people can you help you here. i would make it via xhtml.