Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

upload file using another adf application as shared library

Sanjeev-OFMSep 13 2022

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.

  1. (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);
}

  1. 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
  2. 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

Comments

Processing

Post Details

Added on Sep 13 2022
5 comments
145 views