Posts

Showing posts from April, 2015

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             }               }