Skip to content

Instantly share code, notes, and snippets.

@biemond
Created September 28, 2011 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biemond/1248784 to your computer and use it in GitHub Desktop.
Save biemond/1248784 to your computer and use it in GitHub Desktop.
ADFContext and ADF
// ADFContext
ADFContext adfCtx = ADFContext.getCurrent();
// Get the scope variables
Map<String, Object> applicationVar2 = adfCtx.getApplicationScope();
Map<String, Object> pageParamsVar2 = adfCtx.getPageFlowScope();
Map<String, String> requestParamsVar2 = adfCtx.getRequestScope();
Map<String, Object> sessionParamsVar2 = adfCtx.getSessionScope();
// el expression
ELContext elContext2 = adfCtx.getELContext();
ExpressionFactory elFactory2 = adfCtx.getExpressionFactory();
ValueExpression valueExp2 = elFactory2.createValueExpression(elContext2,
"#{xxxx}",
Object.class);
Object result2 = valueExp2.getValue(elContext2);
// Security
SecurityContext secCntx = adfCtx.getSecurityContext();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment