Skip to content

Instantly share code, notes, and snippets.

@esaounkine
Created April 29, 2011 08:11
Show Gist options
  • Save esaounkine/948028 to your computer and use it in GitHub Desktop.
Save esaounkine/948028 to your computer and use it in GitHub Desktop.
“javax.faces.convert.ConverterException: Unsupported Model Type” in ADF 10g for selectManyCheckbox - backing
ArrayList<javax.faces.model.SelectItem> initialListItems;
public ArrayList getInitialListItems() {
if(initialListItems == null) {
initialListItems = new ArrayList();
JUIteratorBinding paramIter =
(JUIteratorBinding)JSFUtils.resolveExpression("#{bindings.ParamView1Iterator}");
for(int i = 0; i < paramIter.getEstimatedRowCount(); i++) {
ParamViewRowImpl paramRow = (ParamViewRowImpl)paramIter.getRowAtRangeIndex(i);
SelectItem si = new SelectItem();
si.setValue(paramRow.getParamkey());
si.setLabel(paramRow.getParamvalue());
initialListItems.add(si);
}
}
return initialListItems;
}
java.util.List selectedItems;
public void setSelectedItems(List selectedItems) {
this.selectedItems = selectedItems;
}
public List getSelectedItems() {
return selectedItems;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment