On page load, I need to show a table only if there is at least one row in the table. I am refreshing the table during page initialization.
I used following script in script block value:
var alertTable = CAF.model('#{activePageBean.clientIds['alertTable']}');
if (alertTable.getRowCount() > 0)
{CAF.model('#{activePageBean.clientIds['alertPanel']}').setVisible(true);}
The script block is outside the table. I am unable to figure out what’s wrong with the code as it doesn’t seem to work.