PDF condent display in af:inlineframe
795750Dec 10 2010 — edited Dec 10 2010Hi All ,
I am using follwonig code to display pdf content which is located in WEB content images/ar.pdf .
************************ jspx code **********************
<af:commandImageLink text="open attachment" id="cb1" partialSubmit="true"
actionListener="#{managedBean1.showcontent}">
</af:commandImageLink>
<af:popup id="showAttachmentId"
contentDelivery="immediate"
binding="#{managedBean1.showpopup}">
<af:dialog id="pw1" >
<af:panelGroupLayout id="pgl1"
binding="#{managedBean1.showGroupLayout}">
<af:inlineFrame id="if2"
inlineStyle="height:600px; width:650px;"
binding="#{managedBean1.inlineFrameForAttachment}"
sizing="preferred" partialTriggers="cb1"/>
</af:panelGroupLayout>
</af:dialog>
</af:popup>
*************************Bean method which is invoking popup and setting the content of inlinefram *********************************
public void showcontent(ActionEvent actionEvent) {
inlineFrameForAttachment.setSource("/images/ar.pdf");
showImage=true;
AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
adfFacesContext.addPartialTarget(form);
this.showPopup(showpopup);
}
******************************************************************************************************************************
After clicking the command image link popup is displaying the blank content .
if i am settinng inlineFrameForAttachment.setSource("/images/myimage.jpg"); its displaying the image .
Do i need to do some extra setting to display pdf in inlineframe.
Thanks With Regards ,
AKumar.
글 수정: user11981489