Posts

oracle.jbo.ExprSecurityException JBO-25150

Image
oracle.jbo.ExprSecurityException JDeveloper 12.1.3 and ADF has introduced a tightening security model for ADF BC Groovy expressions as a stepping stone for upcoming Oracle products. Oracle is progressively introducing this feature to reduce the burden on customers. For any new ADF application, customers must set via the property inspector trustMode="true" for any ADF BC attributes or similar using a Groovy expression. Otherwise at runtime JBO-25152 will be raised. For customers porting applications from previous releases of JDeveloper the trustMode will be set to true for existing Groovy expressions, though any new expressions still require developers explicitly set the trustMode.  follow these steps 1- Select the attribute of Entity or view object 2- click on Source tab to navigate to the XML source 3- change trustMode to be trusted

Using Enter key and space to commit data

 <af:clientListener type="keyUp" method="submitTempChanges"/>                                     <af:serverListener type="AddTempLine" method="#{investBean.addTempLineAction}"/>                                     <af:clientListener type="keyUp" method="sendByEnter"/>                                     <af:serverListener type="AddLineByKey" method="#{investBean.addLineByEnterKey}"/>                                     <af:clientListener method="(function(evt){evt.getSource().getPeer().getDomElement().setAttribute('spellcheck','true');})"                 ...

To Display a page or servlet output in a popup window

Suppose that the page name is view.jsp      import org.apache.myfaces.trinidad.render.ExtendedRenderKitService; import org.apache.myfaces.trinidad.util.Service;      FacesContext context = FacesContext.getCurrentInstance();             HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();             String targetURL = request.getRequestURL().toString();             targetURL = targetURL.substring(0, targetURL.lastIndexOf("/") + 1) + "view.jsp";             System.out.println(targetURL);             ExtendedRenderKitService service = Service.getRenderKitService(context, ExtendedRenderKitService.class);             String script = "window.open('" + targetURL + "', '', 'location=0, status=0, resizable=1, scrollbars=0');";   ...

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