Executing "ExecuteWithParams" binding programmatically to a managed bean

In this example, I'll show you how-to execute binding action in managedbean.

  • Add Operation at Bindings
in image bellow you can see binding named: "ExecuteWithParams":



  • Code to execute on Managed Bean
   
   BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
        oracle.binding.OperationBinding operationBinding = bindings.getOperationBinding("ExecuteWithParams");
        operationBinding.getParamsMap().put("parameterName", "parameterValue");
        if (operationBinding.getResult() != null) {
            // cast to the expected result type
            Boolean result = (Boolean) operationBinding.getResult();
            operationBinding.execute();
        }
  

Related Posts:

No responses yet for "Executing "ExecuteWithParams" binding programmatically to a managed bean"

Post a Comment