JSF Error "Expected Type of Child Component ... Null Found".
When using <a4j:support>, as described in the RichFaces example , I always get the following error when changing the value of the drop-down function of a window.
The expected type of the child component is UISelectItem / UISelectItems for the component type javax.faces.SelectOne (myId). Found null.
Here's the JSF code:
<h:selectOneMenu id="selectId" valueChangeListener="#{cs.myListener}" value="#{cs.selectList.selectedItem}">
<f:selectItems value="#{cs.bundeslandList.selectItems}" />
<a4j:support event="onchange" reRender="otherFieldId" />
</h:selectOneMenu>
<h:selectOneMenu id="otherFieldId">
<f:selectItems value="#{cs.bundeslandList.selectOtherField.selectItems}" />
</h:selectOneMenu>
Since cs.bundeslandList.selectOtherField.selectItemsat least it's empty ArrayList, I'm sure it otherFieldIdcan't be null.
Now I have shared the whole page and I am no longer getting the error. Unfortunately, valueChangeListenerit called correctly , but , otherFieldIdwill not be updated after the call. He is empty. But when debugging, I see that the corresponding property is filled with records.