Hi,
I keep getting the error:
javax.faces.FacesException: Value is no String and component
_id10:display_0:_id22 does not have a Converter
And this is bizarre, because I have a List of SelectItems, which is
nearly identical to another list that works fine elsewhere - Integer
value and String label (using new SelectItem(obj.getId(),
obj.getName()). As you can see in my JSP, I even produced another table
to make sure that no values or labels are crazy or null. Could someone
please help me?
JSP snippet:
<h:form styleClass="crudForm">
<h:commandButton styleClass="crudButton"
value="#{bundle.save_changes}"
action="#{ManageInterviewersBean.saveChanges}"/>
<t:dataTable id="display"
styleClass="table-background"
headerClass="table-header"
footerClass=""
rowClasses="row-odd,row-even"
var="item"
value="#{ManageInterviewersBean.interviewers.list}"
preserveDataModel="true"
sortColumn="#{ManageInterviewersBean.interviewers.sort}"
sortAscending="#{ManageInterviewersBean.interviewers.ascending}"
preserveSort="true">
<h:column>
<f:facet name="header">
<h:outputText value="#{bundle.supervisor}" />
</f:facet>
<h:selectOneMenu value="#{item.reportsTo.id}">
<%-- this next line causes the error! If commented out, the
next dataTable will work --%>
<f:selectItems
value="#{ManageInterviewersBean.supervisors.selectList}"/>
<%--<f:selectItem itemValue="1" itemLabel="Your Mom"/>--%>
</h:selectOneMenu>
</h:column>
</t:dataTable>
<t:dataTable
var="item"
value="#{ManageInterviewersBean.supervisors.selectList}">
<h:column rendered="#{ManageInterviewersBean.debug}">
<f:facet name="header">
<h:outputText value="#{bundle.id}" />
</f:facet>
<h:outputText value="#{item.value}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{bundle.name}" />
</f:facet>
<h:outputText value="#{item.label}"/>
</h:column>
</t:dataTable>
Thanks,
--
Don Tam
Manager, Software Development
(416)493-6111x143
[EMAIL PROTECTED]