I add the syntaxhighlighter library to my project in order to view XML files.
For some reason when using the syntaxhighlighter outside the dialog then I can see the CSS style but not within the dialog.
This is not working:
<p:commandButton id="button"
value="View"
oncomplete="hdsWidgetVar.show()"
update=":mainForm:hdsForm"
disabled="#{object.disableButton}"
icon="ui-icon-search"
style="float: right"/>
</p:row>
</p:panelGrid>
<f:verbatim><br/></f:verbatim>
<p:dialog id="hdsDialog"
widgetVar="hdsWidgetVar"
header="HDS"
width="800"
showEffect="clip"
hideEffect="clip"
position="left"
appendTo="@(body)"
dynamic="true" >
<h:form id="hdsForm">
<pre class="brush: xml">
<h:outputText value="#{object.selectedObjectSet.hds}" escape="true" />
</pre>
</h:form>
</p:dialog>
I cannot use dynamic="false" since I need to refresh the dialog text when user press the button.
Is there any workaround ?
Thanks