Advertisement
Guest User

Untitled

a guest
Sep 30th, 2014
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <s:download src="/exportPdf.xhtml" rendered="#{myAction.hasPdf}" >
  2. <h:outputText value="#{myAction.pdfName}"/>
  3. </s:download>
  4.  
  5. @Name("myAction")
  6. @Scope(ScopeType.CONVERSATION)
  7. public class MyAction {
  8. private byte[] pdf;
  9. private String pdfName;
  10. public String getPdfName() {
  11. return pdfName;
  12. }
  13. public void setPdfName(String pdfName) {
  14. this.pdfName = pdfName;
  15. }
  16. public byte[] getPdf() {
  17. return dd572pdf;
  18. }
  19.  
  20. public void setDd572pdf(byte[] dd572pdf) {
  21. this.dd572pdf = dd572pdf;
  22. }
  23.  
  24. public boolean hasPdf(){
  25. return true;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement