Clean criteria and Results in a af:query

Suppose we have two fragments, view1 and view2.

In view1 we have a button for go to the view2 and there we have a af:query with Table (the results).

If we need clean the criteria and the results when enter again in view2, one way is to insert a method call between the views and reset the criteria applied programmatically


public void reset(String myCriteria){
 //this code is in a ViewImpl context
 //myCriteria is the criteria that  use in af:query
 ViewCriteria _vcriteria = getViewCriteria(myCriteria);

FootNotes: Based on a question of the OTN Forum