public List<SelectOption> getAmounts() { List<SelectOption> options = new List<SelectOption>(); options.add(new SelectOption('1', '1')); options.add(new SelectOption('2', '2')); options.add(new SelectOption('3', '3')); options.add(new SelectOption('4', '4')); options.add(new SelectOption('5', '5')); options.add(new SelectOption('6', '6')); options.add(new SelectOption('7', '7')); options.add(new SelectOption('8', '8')); options.add(new SelectOption('9', '9')); options.add(new SelectOption('10', '10')); return options; } <apex:selectList value="{!addAmount}" size="1" rendered="{!!isOnlySales}" styleClass="handleClass"> <apex:selectOptions value="{!Amounts}"/> </apex:selectList>