Menu
Category

ADF

Localization to ADF application with f: loadBundle

To implement localization in ADF applications, we create property files with the fields and their values in different languages. For example, I have below property file with some fields and their values in Danish language. I want to display these values in the jsf page to the user. BODY =Hoveddel ITEM =Varepost SUBMIT =Indsend SUMMARY =Oversigt COPY =Kopier   To…

Status Indicator in ADF

ADF By Jul 15, 2013 1 Comment

In ADF, sometimes it will take time to load or refresh a page. In such cases, if you want to display some icon to indicate the page is loading or refreshing, you can use the ADF component “Status Indicator” which is available in Common Components panel. As ADF components are ajax components, the status indicator automatically identifies the status of…

Error: Page template name already used in library

I have created a page template with name “PageTemplate.jspx” in JDeveloper for my application, but I deleted the file later. Again when I tried to create a page template with the same name “PageTemplate.jspx”  in the application then I got the below validation error “Page template name already used in library”.     Even if we delete the file from…

Changing End point address of web service in ADF

  Below code explains how to change the web service end point through program.  ServiceRequestService serviceRequestService = new ServiceRequestService(); ServiceRequestPortType serviceRequestPortType = serviceRequestService.getServiceRequestPortType();  BindingProvider bp = (BindingProvider)serviceRequestPortType;            bp.getRequestContext().put( BindingProvider.ENDPOINT_ADDRESS_PROPERTY, “http://localhost:9950/soa-infra/services/default/sr_v2/ServiceRequest.service”);  Here is the explanation for this code. Get port object of the web service Type cast the port object to BindingProvider object  BindingProvider class provides a member method getRequestContext() which…

Defining default action to button in ADF

ADF By Jun 21, 2013 No Comments

There are many cases where user wants to submit a page or form on press of “Enter”  key. ADF provides a direct solution to this. af:form or af:subform has a property called defaultCommand. If we give button id as its value then on press of enter key, the given button will be executed. Example: <af:subform defaultCommand=”cb1″ id=”s2″> <af:panelFormLayout id=”pfl1″>       …

ERROR: No j2ee modules detected in EAR archive. Deployment aborted. == (oracle.jdeveloper.deploy.VetoableDeployException)

When I was deploying my ADF application to EAR file from JDeveloper, got the below error. ERROR: No j2ee modules detected in EAR archive. Deployment aborted. == (oracle.jdeveloper.deploy.VetoableDeployException) To solve this issue, I have done below steps. Go to application properties (not project properties) Go to deployment Select the deployment profile and click on Edit Go to “Application Assembly” Select…

java.lang.NoClassDefFoundError: oracle/adf/model/RegionBinding

I have deployed ADF application in weblogic but while accessing the app, I got the error. Error 500–Internal Server Error java.lang.NoClassDefFoundError: oracle/adf/model/RegionBinding To solve this, deploy the application as an EAR instead of web application. After done this, I could able to access the app properly without any issues.

Invoking javascript method from an ADF component

This post is to show how we can invoke a java script method from an ADF component like af:goLink Write a javascript. We can also use external javascript file but in this example I am writing a small javascript method using af:resource. Below is my java script method. <af:resource type=”javascript”>  function sayHello() { alert(“Welcome to Hello World”);}  </af:resource> Create a…

Webcenter Portal Display issues in lower versions of IE

I have a portal application developed in JDev 1.6. While running the application, it supposed to be  displayed full of the browser and it is in Firefox, Chrome and even in IE (version greater than 8). But  I have a requirement to use this in IE7. When I run this app in IE7, the app is displaying in one third …

Hi, Welcome here.
JOIN OUR NEWSLETTER
And get notified everytime we publish a new blog post.