ignore update for pe:documentViewer

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

07 Sep 2020, 10:34

Hi,

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 12.0, WildFly 21

Melloware
Posts: 3717
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 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 24 guests