简体   繁体   中英

ADF : GoButton javax.el.PropertyNotFoundException

I'm trying to implement a goButton in JDeveloper and I want that the url will be dynamic and will by taken from several input texts, but when I calling to a function in java class

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();
    }
}

and I put the method in the destination value (destination="#{reportAction.createURL}") I get the PropertyNotFoundException

Why?


Edit :

I'm trying to build a dynamic url within a managed bean and call it with a POST method. The goal is to click the goButton and call the bean by set the destination property value to that bean. I've defined a managed bean and set it to backingBeanScope in the adf-config.

The JSF component attribute needs to refer to a String property in a managed bean that has getter/setter.

Try having the bean structured like:

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();
    }
}

Also - check if changing the bean scope to be view scope helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM