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
Tags 2.7.4
No related merge requests found
...@@ -142,19 +142,21 @@ ...@@ -142,19 +142,21 @@
<p:dialog header="#{messages.twofa_tokentype_tanlist}" width="240" <p:dialog header="#{messages.twofa_tokentype_tanlist}" width="240"
widgetVar="showBackupTanDlg" id="showBackupTanId" modal="true" closable="true" closeOnEscape="true" widgetVar="showBackupTanDlg" id="showBackupTanId" modal="true" closable="true" closeOnEscape="true"
showEffect="fade" hideEffect="fade"> showEffect="fade" hideEffect="fade">
<div style="margin-bottom: 8px;"> <p:outputPanel id="showBackupTanIdPrintBox">
<h:outputText value="#{messages.twofa_backup_tan_list_values}" /> <div style="margin-bottom: 8px;">
</div> <h:outputText value="#{messages.twofa_backup_tan_list_values}" />
<ul style="margin-bottom: 16px;"> </div>
<ui:repeat var="key" value="#{twoFaUserBean.backupTanList.result.value.otp.keySet()}"> <ul style="margin-bottom: 16px;">
<li style="margin-bottom: 4px;"> <ui:repeat var="key" value="#{twoFaUserBean.backupTanList.result.value.otp.keySet()}">
<b><h:outputText value="#{key}" /></b> - <li style="margin-bottom: 4px;">
<h:outputText value="#{twoFaUserBean.backupTanList.result.value.otp.get(key)}" /> <b><h:outputText value="#{key}" /></b> -
</li> <h:outputText value="#{twoFaUserBean.backupTanList.result.value.otp.get(key)}" />
</ui:repeat> </li>
</ul> </ui:repeat>
</ul>
</p:outputPanel>
<p:commandButton value="Print" type="button" style="margin-bottom: 16px"> <p:commandButton value="Print" type="button" style="margin-bottom: 16px">
<p:printer target="showBackupTanId" /> <p:printer target="showBackupTanIdPrintBox" />
</p:commandButton> </p:commandButton>
</p:dialog> </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