ignore update for pe:documentViewer

Community Driven Extensions Project
Post Reply
Posts: 423
Joined: 05 Mar 2010, 13:17

07 Sep 2020, 10:34


If I update a form it seems my PDF stream is gone.
Is there a possibility to ignore to update the pe:documentViewer ?

How can I do this?

Code: Select all

											<pe:documentViewer id="generatedPdf"
												style="height: 83vh; width: 100%" zoom="65" cache="false"
												value="#{generatePdfDocumentDesignerController.pdfFile}" />
After update also the PDF document Viewer I got:
Unexpected server response (500) while retrieving PDF "http://localhost:8080/javax.faces.resou ... Myfile.pdf"
If I refresh the whole page again, the PDF is working fine
Primefaces 8.0, WildFly 21

Posts: 2387
Joined: 22 Apr 2013, 15:48

07 Sep 2020, 14:34

Did you try it with cache="true" ? And no there is no way to "exclude" a component from update="@form". You would have to selectively update the items around it and not update the whole form.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 8.0.7 / PF Extensions 8.0.4

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests