Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsf 无法编辑我的h:datatable_Jsf_Richfaces - Fatal编程技术网

Jsf 无法编辑我的h:datatable

Jsf 无法编辑我的h:datatable,jsf,richfaces,Jsf,Richfaces,我有以下代码: <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">

我有以下代码:

<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>
这是我的豆子:

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;
    }
但当我点击save时,req.value字段中的新值不会被保存! 为什么?我加了一个错误

richfaces的a4j:keepAlive标记位于f:view之前。。
和未正确阅读。

请编辑您的问题,以包括saveChanges方法,该方法显示您如何得出新值未保存的结论。您在详细信息类中是否有setValue方法?您如何得出新值未保存的结论?firstNewValue是否为null?还是抛出了一些异常?您应该包括您得到的任何异常和堆栈跟踪,因为它们包含非常有价值的信息。我看到该值是原始值,尽管我在页面中更改了它,并单击了Submits,这是bean请求还是会话范围?同时显示数据加载逻辑。目前为止,仅凭很少的信息是不可能确定问题的根本原因的。