iamthechad
2/17/2017 - 8:49 PM

pdf_action_class.java

public String getReportURL() { 
  return "/pdfpopup/reports/reportDisplay.seam"; 
} 
// Getters and setters omitted 
public List<String> getReportData() { 
  return reportData; 
} 
public void doSearch() { 
  // This is where the work would actually happen 
  reportData = new ArrayList<String>(); 
  for (int i = 0; i < selectOneValue; i++) { 
    reportData.add("Report Row " + (i + 1)); 
  } 
  if (reportData.isEmpty()) { 
    facesMessages.add("Report will be empty, not popping up"); 
  } 
}