簡體   English   中英

ADF:GoButton javax.el.PropertyNotFoundException

[英]ADF : GoButton javax.el.PropertyNotFoundException

我正在嘗試在 JDeveloper 中實現一個goButton並且我希望urldynamic並且將從多個輸入文本中獲取,但是當我調用 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 組件屬性需要引用具有 getter/setter 的托管 bean 中的 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 范圍更改為視圖范圍是否有幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM