posted 10 years ago
Thanks, for the reply.
You are correct that immediate="true" is not required in this case (but, that was not the problem).
The problem was in the converter. The converter could not associate the selected name with its description. I removed the converter, and made some changes:
- Added a new attribute, item index, to the Item class
- List value is changed from Item object to Item's index: value="#{bean.itemIx}"
- The f:selectItems definition has item name as label and item index as value:
var="itm" itemValue="#{itm.ix}" itemLabel="#{itm.name}"
- And, related changes in the ItemsBean.
This works, fine.
SCJP 5, OCPJP 7, 8, SCJD 5, SCWCD 4, SCBCD 5, SCJWS 4, IBM OOAD 833 & 834, MongoDB Developer