Posts

How to make logout

    public String onLogout() {      FacesContext fctx = FacesContext.getCurrentInstance();      ExternalContext ectx = fctx.getExternalContext();      String url = ectx.getRequestContextPath() +                 "/adfAuthentication?logout=true&end_url=/faces/loginpage.jspx";          try {        ectx.redirect(url);      } catch (IOException e) {        e.printStackTrace();      }      fctx.responseComplete();      return null;     }     public void logout(ActionEvent actionEvent) {             // Add event code here...             ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();             HttpServletResponse res...

Dashboard

how to set the "ExecuteWithParams" parameters values at runtime

OperationBinding meth = bindings.getOperationBinding( "ExecuteWithParams" ); Map args = meth.getParamsMap(); args.put(“arg1”, arg1Value);… meth.execute(); the " ExecuteWithParams " is the name of the operation. Change it as sis is in your page bindings

integrated applications. step by step

http://andrejusb.blogspot.com/2010/02/integration-in-oracle-adf-with-adf-task.html

Some ADF Tips

how to set a background image to a component background-image:url(#{facesContext.externalContext.requestContextPath}/images/globe.png);   Getting the binding container BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();   Getting ADF attribute value from an ADF page definition AttributeBinding attr = (AttributeBinding)bindings.getControlBinding("test"); attr.setInputValue("test");   Executing a MethodAction OperationBinding method = bindings.getOperationBinding("methodAction1"); method.execute(); List errors = method.getErrors(); method = bindings.getOperationBinding("methodAction2"); Map paramsMap = method.getParamsMap(); paramsMap.put("param","value") ; method.execute();    Getting the errors of an iterator String error = iterBind.getError().getMessage(); Refresh an iterator bindings.refreshControl(); iterBind.executeQuery(); iterBind.refresh(DCIteratorBinding....

ADF project integration

Operating system user for Host credentialsRemoteOperationException: ERROR: Invalid username and/or password .

Image
RemoteOperationException: ERROR: Invalid username and/or password Hi Do you face this problem? When you try to start up the oracle database using EM,you are prompted to enter windows username and password.And you are sure that the username and password are correct, however this error occurs. This is the solution: Step1 : Goto control panel -> Administrative Tool -> Local Security Settings.        Local Policies -> User Rights Assignment -> double click on 'Log on as a batch job' Step 2 : Add the user here which you are trying accessing the OEM and click apply and OK. Step3 : Follow the step 2 for adding user to 'Log on as a service'. Step4 : Now try to log on to OEM.           You will get the following screen if db is down. Hope this could help you to resolve the error.