【问题标题】:ADF : GoButton javax.el.PropertyNotFoundExceptionADF:GoButton javax.el.PropertyNotFoundException
【发布时间】:2016-02-17 21:22:05
【问题描述】:

我正在尝试在 JDeveloper 中实现 goButton,我希望 url 将是 dynamic 并将取自多个输入文本,但是当我调用 java 类中的函数时

public class reportAction {

    private static final String LOG = "reportAction --------------------> ";

    private BindingContainer bindings;

    public String createURL(){
        bindings = getBindings();
        AttributeBinding test = (AttributeBinding) bindings.get("DesformatName");
        System.out.println(LOG + test);
        return test.toString();
    }
}

然后我将方法放入目标值(destination="#{reportAction.createURL}") 我得到PropertyNotFoundException

为什么?


编辑

我正在尝试在托管 bean 中构建动态 url 并使用 POST 方法调用它。目标是单击 goButton 并通过将目标属性值设置为该 bean 来调用该 bean。我已经定义了一个托管 bean 并在 adf-config 中将其设置为 backingBeanScope。

【问题讨论】:

    标签: jsf oracle-adf managed-bean propertynotfoundexception


    【解决方案1】:

    JSF 组件属性需要引用托管 bean 中具有 getter/setter 的 String 属性。

    尝试让 bean 的结构如下:

    public class reportAction {
    
        private BindingContainer bindings;
        private String createURL = "";
    
        public String getCreateURL(){
            bindings = getBindings();
            AttributeBinding test = (AttributeBinding) bindings.get("DesformatName");
            System.out.println(LOG + test);
            return test.toString();
        }
    }
    

    另外 - 检查将 bean 范围更改为视图范围是否有帮助。

    【讨论】:

      猜你喜欢
      • 2015-02-25
      • 2013-08-28
      • 2016-05-05
      • 2017-06-11
      • 2012-10-30
      • 2011-12-06
      • 2012-11-27
      • 2014-04-14
      相关资源
      最近更新 更多