-
Bug
-
Resolution: Fixed
-
Normal
-
Freshly, 9.0.0
-
Security Level: Jimmy
Steps to Reproduce
<div> <zscript> import java.net.URL; import org.zkoss.util.media.AMedia; public AMedia loadPdf() { return new AMedia(application.getResource(execution.toAbsoluteURI("test.pdf", true)), null, null); } AMedia document = loadPdf(); </zscript> pdfviewer is ignoring the content media initially <pdfviewer id="pdf" content="${document}"/> <button label="dynamic content via zkau works" onClick="pdf.setContent(loadPdf());"/> </div>
Current Result
the pdfview component doesn't load the content from the initial AMedia
only setting the content later has an effect
Expected Result
the media content should load initially
Debug Information
the initial content is not handled during Pdfviewer.renderProperties