For modal dialog from bean I followed this link: Automatically show validation messages in p:dialog on validation failure
But at the same time I want to show data-table record also. If I used action event in the button, its showing only modal message, no data table records. In case of using string function in the button, it shows only record, not validation message. How to fix this one?