I have a dialog that contain
<p:dialog id="sqlDialog"
widgetVar="sqlWidgetVar"
header="SQL"
width="800"
position="center"
minimizable="true"
maximizable="true"
appendToBody="true"
dynamic="true">
<h:outputText id="sql"
escape="false"
value="#{bean.sql}"
style="color: green"/>
</p:dialog>
Since the text is very long I need to add a scroll option
How can I do it ?
Thanks
Use CSS to make it a block element with fixed dimensions and an overflow.
with
Alternatively, just give the dialog a fixed height.
Note that this has nothing to do with JSF. It’s just a HTML/CSS/JS code generator. The
<h:outputText>generates a HTML<span>element. You just have to alter the CSS accordingly for the look’n’feel.