Call custom method in Managed bean and get Result

Add method in your page definition




In backing bean write this code:

 
            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
            OperationBinding operationBinding = bindings.getOperationBinding("getAppointNoSP");
            operationBinding.execute();
            if (operationBinding.getResult() != null) {
               System.out.println("Result" + operationBinding.getResult());
            }else{
               System.out.println("no result");
            }

Related Posts:

No responses yet for "Call custom method in Managed bean and get Result "

Post a Comment