hi! i have this code:
<h:form>
<rich:dataTable value="#{my.lreqs}" var="req"
id="reqs" width="630px" >
<rich:column label="Value" styleClass="schColL" width="90px"
style="text-align:center">
<f:facet name="header">
<h:outputText value="#{my.colValue}" />
</f:facet>
<h:inputText value="#{req.value}" >
</h:inputText>
</rich:column>
</rich:dataTable>
<h:commandButton value="Save"
action="#{my.saveChanges}" ></h:commandButton>
</h:form>
and this is my bean:
private List<Detail> lreqs;
public void setLreqs(List<Detail> lreqs) {
this.lreqs = lreqs;
}
public void saveChanges() {
firstNewValue = lreqs.get(0).getValue();
}
/**
* @return the lreqs
*/
public List<Detail> getLreqs() {
if (currentJob != null && lreqs==null) {
lreqs = (List<Detail>) jobsBDataDAO.findByJobBooking(currentJob);
}
return lreqs;
}
but when i click save - a new value in req.value field is not being saved! why is it?