【问题标题】:Not able to update input field value无法更新输入字段值
【发布时间】:2012-09-20 09:38:36
【问题描述】:

大家好,我的 jsf 页面上有一个 输入字段,其值设置为 setter getter dSecurityGroup

public void setDSecurityGroup(String dSecurityGroup) {
    this.dSecurityGroup = dSecurityGroup;
}

public String getDSecurityGroup() throws IdcClientException, IOException {

    Map<String,String> mapValue=getDocumentPropertiesSystem();
    dSecurityGroup=mapValue.get("dSecurityGroup");
    return dSecurityGroup;
}

第一次我从 getter 获取值并将其显示给用户时,我的表单上有一个 update 按钮,点击该按钮我正在检索此输入字段值以进行更新,但是当我更新输入字段值并单击更新按钮时,它会采用以前的值并将输入字段值更改为旧的。 我怎样才能得到改变的价值..??

【问题讨论】:

    标签: java jsf-2 javabeans oracle-adf


    【解决方案1】:

    您的代码在我看来是错误的。你总是回来

    dSecurityGroup=mapValue.get("dSecurityGroup");
    

    只要 Thre 映射值不变,您就会看到这样的值。

    【讨论】:

      猜你喜欢
      • 2019-12-02
      • 2018-07-16
      • 1970-01-01
      • 1970-01-01
      • 2021-03-28
      • 2021-09-09
      • 1970-01-01
      • 2012-04-03
      • 2019-07-20
      相关资源
      最近更新 更多