Posts

helpful code snippet for ADF mObile Application developer

1- To programmatically invoke/call a Taskflow A. Javascript : In JavaScript file, you can directly call this method to navigate. Below "Outcome" is control flow case name.    adf.mf.api.amx.doNavigation("outcome"); B. Java: AdfmfContainerUtilities.invokeContainerJavaScriptFunction(AdfmfJavaUtilities.getFeatureName(), "adf.mf.api.amx.doNavigation", new Object[] { "outcome" }); more details: http://deepakcs.blogspot.sg/2013/04/sync-device-back-button-with-adf-mobile.html https://community.oracle.com/thread/2496197

how to install ios sdk on windows

You cannot install ios sdk on windows,however, there is a work around.You have to install MAC OS on a virtual machine. I find this link very usefull http://maconwindows.blogspot.com/

How to evaluate EL in adf mobile

Getting or setting the value form inputtext AdfELContext adfELContext = AdfmfJavaUtilities.getAdfELContext(); ValueExpression ve =AdfmfJavaUtilities.getValueExpression("#{bindings.EmpName.inputValue}", String.class); ve.setValue(adfELContext, "Wim");

How to Create a Simple JMS Queue in Weblogic Server

Image
This example shows the steps to create a simple JMS queue in WebLogic Server 12c 1- Create a JMS Server Services > Messaging > JMS Servers Select  New Name:  TestJMSServer Persistent Store: (none) Target:  soa_server1   (or choose an available server) Finish The JMS server should now be visible in the list with Health OK. 2- Create a JMS Module Services > Messaging > JMS Modules Select  TestJMSModule Select the  Subdeployments   tab and  New Subdeployment Name:  TestSubdeployment Press  Next Here you can select the target(s) for the subdeployment. You can choose either Servers (i.e. WebLogic managed servers, such as the soa_server1) or JMS Servers such as the JMS Server created earlier. As the purpose of our subdeployment in this example is to target a specific JMS server, we will choose the JMS Server option. Select the  TestJMSServer  created earlier Press  Finish ...

jre java applet in not running on Chrome

Image
Due to an update of google chrome,my java applet which runs on jre 7,has beed stopped. Chrome requires you to upgrade to jre 8.But this is not  desirable . So to force chrome to run on jre 7,do the following 1- copy this url and paste it in the chrome address bar chrome://flags/#enable-npapi for more info  https://java.com/en/download/faq/chrome.xml

Configuring ADF Security-Creating Users and roles at runtime on Weblogic server

Image
Before beginning working on ADF Security, it is required to explicitly add these three libraries To add them Just Double click on the ViewController project,Libraries and classpath ,Add Jar /Directory The location of the first two libraries is C:\Oracle\Middleware\Oracle_Home\wlserver\modules The location of the last one"wls-api.jar" is C:\Oracle\Middleware\Oracle_Home\wlserver\server\lib First ,we will start implementing login method.Create a managed bean"loginBean" private void authenticateUser(String un, String pw) { byte[] password = pw.getBytes(); FacesContext fctx = FacesContext.getCurrentInstance(); HttpServletRequest request = null; request = (HttpServletRequest) fctx.getExternalContext().getRequest(); try { Subject subject = Authentication.login(new URLCallbackHandler(un, password)); weblogic.servlet.security.ServletAuthentication.runAs(subject, request); String log...

Looping over iterator in backing bean

        DCIteratorBinding itr = ADFUtils.findIterator("InvestigationsRoIterator");         Row[] rows = itr.getAllRowsInRange();         for (Row row : rows){             if (row != null) {              --do the logic             }               }