Tuesday, December 1, 2015

Code to read the adfc-config.xml parameters from managed bean in ADF

The sample code to  read the adfc-config.xml parameters from managed bean in ADF is as follows

# Get the adf context object and get the config object from there
ADFContext adfContext = ADFContext.getCurrent();
ADFConfig adfConfig = adfContext.getADFConfig();

# Read the details of adfc-config.xml in the form of a MAP
Map configurationMap = adfConfig.getConfigObject("http://xmlns.oracle.com/adfm/config");
Long rowLimit =(Long)configurationMap.get("jbo.row.limit");  

2 comments:

  1. Mummys Gold Casino App & Online Review - JT Hub
    Mummys Gold Casino provides the world's best 양주 출장안마 online 여주 출장안마 casino gaming platform. You can 양주 출장안마 also 익산 출장마사지 enjoy sports betting, slots, live dealer games and 나주 출장샵 online

    ReplyDelete