A row of a table will be visible only if its particular column, have to show some value from DB, using javascript

I have a database. Now I want to show it’s value in a table. So the table’s row will be visible only if a particular column have to show some value from database. My database looks like below: +——–+——+————+———+——+———+———+——–+———+———+——–+———+———+——–+ | c_name | c_id | cs_date | t_marks | nos | s_name1 | s_roll1 | marks1…

Primefaces call p:ConfirmDialog by javaScript

I would like to call p:confirmDialog by JavaScript , but it come empty: I need put message text, header text and command in button by Js. Any one can help me My code in Js: function callConfirm() { if(document.getElementById(‘formPrincipal:valorComanda’).value == ‘0,00’){ PF(‘confirm’).show(); } } This is my confirm in html: <p:confirmDialog global=”true” showEffect=”clip” hideEffect=”clip” widgetVar=”confirm”>…