A utility method to print the ViewCriteria returned by the search binding
A couple of years back I blogged about retrieving ViewCriteria(VC) from a custom queryListener method . This post in in continuation of the above said post. Recently while working on an example that deals with af:query component backed up by a VC, I noticed that it may also help developers to narrow down certain issues if they can print the ViewCrtieria returned by the search component. You can use the following code snippet in such scenarios. This may also help you to understand how framework construct ViewCriteria from af:query component. Here is the code snippet: //In managed bean - TestBean //The customQueryListener(..) is the custom //queryListener specified for the af:query public void customQueryListener(QueryEvent queryEvent) { //Read Query Descriptor QueryDescriptor qd = queryEvent.getDescriptor(); DCBindingContainer bc = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry(); /** The below call get ViewCrite...