I have JSF page with datatable. In this datatable one cloumn I used to display inputtext field. My problem is how to get all inputfields data from JSF and how to store coming inputfield data into an array or a list.
My code is:
JSF file:
<h:dataTable value="" var="" >
<h:column>
<h:inputText value="#{storingManagedBean.list}"/>
</h:column>
</h:dataTable>
storingManagedBean.java:-
public class StoringManagedBean{
public Float[] getList() {
return list;
}
public void setList(Float[] list) {
this.list = list;
}
}
in the above code I'm getting null or empty values.