Friday, October 12, 2012

Calling AM method from backing bean


import oracle.binding.BindingContainer;
import oracle.adf.model.BindingContext;
import oracle.binding.OperationBinding;  

 public String onCommitButtonClick() {
        // Add event code here...
        BindingContainer binding = (BindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();  
        OperationBinding  operationBinding=binding.getOperationBinding("onCommit");
        Object result=operationBinding.execute();
        if(!operationBinding.getErrors().isEmpty()){
            return null;
        }
        return null;
    }

No comments: