I have created simple selectitem object:
values come from here:
So it looks good, but why I cannot get selected value?
queueDropdown.getValue() is null while queueDropdown.getValues() has one value.
this is a screenshot of values(when QSYSNOMAX is selected) while I am debugging:
What is going on here, am I missing something, this has one job to do and it is failing?
Thanks.
Code:
queueDropdown = new SelectItem(GridRecord.QUEUE, "Queue", 15); queueDropdown.setValueMap(new LinkedHashMap<String, String>(language.wwjbQueues())); queueDropdown.setDefaultValue("QBATCH"); queueDropdown.setTitleOrientation(TitleOrientation.LEFT);
Code:
@DefaultStringMapValue({"QBATCH", "QBATCH", "QSYSNOMAX", "QSYSNOMAX", "ECOMMERCE", "ECOMMERCE", "QINTER", "QINTER", "ASYNC", "ASYNC", "PICKGEN", "PICKGEN", "AUTODEP", "AUTODEP"}) Map<String, String> wwjbQueues();
So it looks good, but why I cannot get selected value?
queueDropdown.getValue() is null while queueDropdown.getValues() has one value.
this is a screenshot of values(when QSYSNOMAX is selected) while I am debugging:
What is going on here, am I missing something, this has one job to do and it is failing?
Thanks.
Comment