Menu
Date

2013

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…

Upload batch or bulk data into Oracle Cloud database

To upload bulk data into oracle cloud database service, which is presented in a text or excel file, follow the below procedure. 1)      Login to the oracle cloud and launch the database service 2)      Under “SQL Workshop”, select “Data work shop” option 3)      In the “Data Load” panel, select the option from which type of file you want to load…

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…

java.lang.UnsupportedOperationException

As the name implies when the requested operation is not supported, we get this error. Below is a sample program to generate this error.   public static void main(String args[]){String st[]={“Hi”,”Hello”,”Bye”};List list=Arrays.asList(st);list.add(“Anand”); //Get error at this line System.out.println(” List: “+list);}    If we run this method, we get the below error because we are trying to add a new element to…

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…

Using HTTP Analyzer in JDeveloper

JDeveloper provides a tool called “Http Analyzer “ which is very useful when we are using web service in our application and if we want to see what input request, the application is being sent to server via web service. To start using the “Http Analyzer”, please do the below steps. Go to Tools menu of JDeveloper and select Http…

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…

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