Skip to content

Commit

Permalink
SAK-46675 - Job Scheduler: Show all crept back in the drop-down (saka…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonespm authored Dec 15, 2021
1 parent e722ab0 commit aaee348
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ public void encodeBegin(FacesContext context, UIComponent component) throws IOEx
// get stuff for page size selection and display

String textPageSize = getString(context, component, "textPageSize", "Show {0}");
String textPageSizeAll = getString(context, component, "textPageSizeAll", "all");
String pageSizesStr = getString(context, component, "pageSizes", "5,10,20,50,100");
String[] pageSizes = pageSizesStr.split(",");
String idSelect = clientId+"_pageSize";
Expand All @@ -113,14 +112,12 @@ public void encodeBegin(FacesContext context, UIComponent component) throws IOEx
// TODO: Probably need to cache this for performance
String onchangeHandler = "javascript:this.form.submit(); return false;";
String selectedValue = String.valueOf(pageSize);
String[] optionTexts = new String[pageSizes.length+1];
String[] optionValues = new String[pageSizes.length+1];
String[] optionTexts = new String[pageSizes.length];
String[] optionValues = new String[pageSizes.length];
for (int i=0; i<pageSizes.length; i++) {
optionTexts[i] = MessageFormat.format(textPageSize, new Object[] {pageSizes[i]});
optionValues[i] = pageSizes[i];
}
optionTexts[pageSizes.length] = MessageFormat.format(textPageSize, new Object[] {textPageSizeAll});
optionValues[pageSizes.length] = "0";

// Output HTML

Expand Down

0 comments on commit aaee348

Please sign in to comment.