Wednesday, August 27, 2014

Implement RegionController for executing a Method in backing bean before opening up a jsff page fragment

import oracle.adf.model.RegionBinding;
import oracle.adf.model.RegionContext;
import oracle.adf.model.RegionController;


public class BackingBean implements RegionController{
  

    public PostInspectBean() {
        super();
    }


    
    @Custom method
    public void loadJsffPage() {

     // your code goes here to execute the bindings or refresh the components on a page

    }
    
      @Override
      public boolean refreshRegion(RegionContext regionContext) {
        int refreshFlag = regionContext.getRefreshFlag();
        if(refreshFlag==RegionBinding.PREPARE_MODEL){
      

            loadJsffPage(); //custom method


        }
        regionContext.getRegionBinding().refresh(refreshFlag);
        return true;
      }
    @Override
    public boolean validateRegion(RegionContext regionContext) {
        regionContext.getRegionBinding().validate();
        return false;
    }
    @Override
    public boolean isRegionViewable(RegionContext regionContext) {
        return false;
    }
    @Override
    public String getName() {
        return null;
    }

    
}      
 

Wednesday, August 20, 2014

Reset table filter ADF

        FilterableQueryDescriptor queryDescriptor =
            (FilterableQueryDescriptor)  tableName.getFilterModel();
        if (queryDescriptor != null &&
            queryDescriptor.getFilterCriteria() != null) {
            queryDescriptor.getFilterCriteria().clear();
            tableName.queueEvent(new QueryEvent(tableName,
                                                               queryDescriptor));
        }
        AdfFacesContext.getCurrentInstance().addPartialTarget(tableName);

Custom Table Filter with Select One Choice ADF

Wednesday, August 13, 2014

Table with more columns as children to the row - Detail Stamp ADF

Use detail stamp facet in a table to see more columns of a table as children of the main row


Demo

Tuesday, August 12, 2014

Get Selected Items from Select Many Check Box ADF

AIM: To get the selected items to display in an Input Text Box of Select Many Check Box




Reference : http://www.awasthiashish.com/2013/12/using-multiple-selection.html