I have a problem using the DataList component. I would like to use input components within it, but the model isn't updated at all. I use a List a the DataList value.
If I use a DataTable instead everything works fine.

Is this a bug, or does the DataList component not work with input components (I guess it should, because it is a special DataTable) ?


here an example - does NOT work:

<h:form>
         <x:dataList id="foo" var="item"
                        value="#{myBean.items}" >
                <h:inputText value="#{item.value}" />
        </x:dataList>
           
    <h:commandButton  action="" />
</h:form>


but this works:

<h:form>
         <h:dataTable id="foo" var="item"
                        value="#{myBean.items}" >
                <h:inputText value="#{item.value}" />
        </h:dataTable>
           
    <h:commandButton  action="" />
</h:form>

Reply via email to