Skip to content
Snippets Groups Projects
Commit a3861cc3 authored by Michael Simon's avatar Michael Simon
Browse files

probably changed behavior with print on primefaces update

Needed to put a outputPanel around printed content. The p:dialog was
printed with position, ie. the content was off printing paper.

closes #105
parent 67f7e229
No related branches found
No related tags found
No related merge requests found
......@@ -142,19 +142,21 @@
<p:dialog header="#{messages.twofa_tokentype_tanlist}" width="240"
widgetVar="showBackupTanDlg" id="showBackupTanId" modal="true" closable="true" closeOnEscape="true"
showEffect="fade" hideEffect="fade">
<div style="margin-bottom: 8px;">
<h:outputText value="#{messages.twofa_backup_tan_list_values}" />
</div>
<ul style="margin-bottom: 16px;">
<ui:repeat var="key" value="#{twoFaUserBean.backupTanList.result.value.otp.keySet()}">
<li style="margin-bottom: 4px;">
<b><h:outputText value="#{key}" /></b> -
<h:outputText value="#{twoFaUserBean.backupTanList.result.value.otp.get(key)}" />
</li>
</ui:repeat>
</ul>
<p:outputPanel id="showBackupTanIdPrintBox">
<div style="margin-bottom: 8px;">
<h:outputText value="#{messages.twofa_backup_tan_list_values}" />
</div>
<ul style="margin-bottom: 16px;">
<ui:repeat var="key" value="#{twoFaUserBean.backupTanList.result.value.otp.keySet()}">
<li style="margin-bottom: 4px;">
<b><h:outputText value="#{key}" /></b> -
<h:outputText value="#{twoFaUserBean.backupTanList.result.value.otp.get(key)}" />
</li>
</ui:repeat>
</ul>
</p:outputPanel>
<p:commandButton value="Print" type="button" style="margin-bottom: 16px">
<p:printer target="showBackupTanId" />
<p:printer target="showBackupTanIdPrintBox" />
</p:commandButton>
</p:dialog>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment