Tuesday, August 13, 2019

Reset Code for Reset View Object

This code you have to write in the bean created


public Object resolvElDC(String data) {
        FacesContext fc = FacesContext.getCurrentInstance();
        Application app = fc.getApplication();
        ExpressionFactory elFactory = app.getExpressionFactory();
        ELContext elContext = fc.getELContext();
        ValueExpression valueExp =
            elFactory.createValueExpression(elContext, "#{data." + data + ".dataProvider}", Object.class);
        return valueExp.getValue(elContext);
    }

    public void resetButton(ActionEvent actionEvent) {
        searchAMImpl am = (searchAMImpl)resolvElDC("ApplicationDataControl");
        ViewObject empVo = am.getEmployees1();
        ViewObject attrVo=am.getattr1();
        empVo.setNamedWhereClauseParam("EmpIdBind", null);
        empVo.setNamedWhereClauseParam("FirstNmBind", null);
        empVo.setNamedWhereClauseParam("EmailBind", null);
        empVo.setNamedWhereClauseParam("SalaryBind", null);
        empVo.executeQuery();
        attrVo.executeQuery();
   
    }

Deployment cancelled - oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer

Problem

Deployment cancelled.
[12:12:27 PM] ---- Deployment incomplete ----.
[12:12:27 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer) #### Cannot run application Application1 due to error deploying to IntegratedWebLogicServer.
[12:12:27 PM] Cancel requested

------------------------------------------------------------------------------------------------------------------------


Cause 1

The application is not undeployed properly in the last processes of terminating the application from Integrated Web Logic Server.

Solution 1

Terminate the Integrated Web Logic Server and try to start the again.
It will resolve the issue.

------------------------------------------------------------------------------------------------------------------------

Cause 2

Integrated Web Logic Server deployment property is not setted properly.

Solution 2

Step 1

        Open Application properties in JDeveloper for application by clicking on Application Icon available in          Menu  Bar(4th from Left) and select Application Properties from the popup(third last).
Step 2
        Goto to the weblogic option available inside Deployment and uncheck the below highlighted check box.

Step 3
        Click Ok and save your application again and run.