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");
}
}