You can simply include your HTML content with an h:outputText, but you will need to change your output content in String before.
Bean code :
public String getHtmlContent()
{
return String(getByteArrayHtmlContent(), CHARACTER_ENCODING_OF_HTML);
}
Note that you must generally specify the character encoding of the byte array to correctly convert it to a string. CHARACTER_ENCODING_OF_HTML might be "US-ASCII", "UTF-8", "ISO-8859-1" etc. depending on what the byte array contains.
View code :
<p:dialog id="DetailsDialog" header="Details" widgetVar="DetailsDialogWid">
<h:outputText value="#{yourBean.htmlContent}" escape="false" />
</p:dialog>
Note the escape="false" that prevent conversion to HTML entities.
More info : JSF outputText example