Hello Friends,
I've to achieve one requirement and got stuck, please help with the information to achieve the below scenario.
using the jdeveloper version 11.1.1.9.0.
Scenario:
Using Second ADF application (extension app) we need to upload a file and need to take metadata parameters to upload file we need to take value from another adf application (consuming app).
We are using extension application as a shared library, which deployed on weblogic server and attached as jar file in library of on another main application (consuming app).
In extension application if using a custom bean with some hardcoded value we are able to access in another ADF application(consuming app).
Tried to achieve the above mentioned scenario and getting the below 3 error, kindly suggest how we can achieve it.
- (Getting Binding value of main application binding attibute using evaluateEL method
(evaluateEL("#{bindings.Dname.inputValue}"))) in extenstibility application which required to upload the document as metadata.
Error:
javax.el.ELException: java.lang.NoClassDefFoundError: javax/faces/context/FacesContext
Method:
public static Object evaluateEL(String el) {
FacesContext facesContext = FacesContext.getCurrentInstance();
ELContext elContext = facesContext.getELContext();
ExpressionFactory expressionFactory = facesContext.getApplication().getExpressionFactory();
ValueExpression exp = expressionFactory.createValueExpression(elContext, el, Object.class);
return exp.getValue(elContext);
}
- if using private UploadedFile uploadedFile; in custom bean and try to refer in main application using inputfile control in ui getting below error
Error:
javax.el.ELException: java.lang.NoClassDefFoundError: org.apache.myfaces.trinidad.model.UploadedFile
- trying to achieve the above scenario using the region or taskflow but after using that getting the below error
Error:
oracle.adf.controller.ControllerException: ADFC-02001: The ADF Controller cannot find '/WEB-INF/task-flow-definition.xml'.
Thanks
Sanjeev