Saturday Jul 18, 2015

Pitfalls when using libraries of newer version than shipped with JDeveloper or WebLogic Server by Timo Hahn

clip_image001

A question on JDeveloper & ADF OTN forum cought my attention. A user wanted to use a method of the Apache Commons-IO library named FileUtils.getTempDiretory() but got an error when he tried to use code completion or when he tried to compile the code. The problem was that the compiler (or code completion) did not pick up the right java class from the library even as it was installed in the project a library.
As the original code used belongs to one of my samples I was interested in finding a reason for this behavior as I could see no obvious reason for this behavior.

An inspection of a provided test case quickly revealed the problem and a solution was found too. This blog is about the problem and the solution to it. Lets start with building a test case: Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Monday Dec 01, 2014

JDeveloper 12.1.3: Use Default Activity Instead of the Deprecated Invoke Action by Timo Hahn

clip_image001Since JDeveloper 12.1.3 the invoke action used in earlier version has been deprecated. Users still using the old invoke action to load data on page load should migrate their code to using the default activity in a bounded task flow instead. This article describes how to use the executeWithParams method as a default activity in a bounded task flow (btf) to load data to be shown in a region. For this we implement a common

Use Case:
in a text field the user enters a string which should be used to look-up data in the DB and show the data as a table in a region.
For this we use the HR schema and build a look-up for locations after the name of the city of the location. In a page the user can insert the name or part of a cities name into a text field. This input is send as parameter to a bounded task flow. The default activity of the btf calls a method in the view object which uses a view criteria to search for cities starting with the given input data. In a second implementation the same technique is used but a where clause is used in the VO and the VO is called with executeWithParams. The result of the search is displayed as a table in a region.

Implementation

Model Project:
We start by creating a new ‘Fusion Web Application’ and creating a model project of the HR DB schema. Here we only use the location table for which we create entity object and view object.
Now we create the view criteria which we use to find locations by part of the city name.

Next step is to create the java class for the view object including the method to safely access the created bind variable. In the class we add a method to apply the created view criteria which we expose in the client interface well as the methods to access bind variables. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Mix Forum Wiki

Tuesday Apr 08, 2014

Fusion Middleware Partner Community Awards 2014

Thanks to all the partners for the excellent contribution and on-going business! You are the key for the joint Fusion Middleware success. Due to all the excellent work and contributions, Every Year it becomes harder to choose the winners.

The awarded partners have proven cutting edge projects with the latest Oracle technology and most important their contribution to the community like blogs, newsletters, conferences, papers, twitter, linkedin and their participation in the partner advisory councils.

THANKS to the whole community and congratulation to the winners:

  • C2B2 Consulting Limited Steve Steve Millidge
    Oracle WebLogic Community Award
  • Timo Hahn - virtual7 GmbH
    ADF Community Award
  • Oracle Internal Award to Ritu Chhibber
    Oracle Partner Community Award - Oracle Contribution 2014

The Oracle internal award also acknowledges the special contribution to the community. Ritu Chhibber publishes since years every month the newsletter you read. Ritu, as you could not come to Malta to receive it in person, when you read these lines THANKS for your great work!

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Mix Forum Wiki

Search

Archives
« July 2015
SunMonTueWedThuFriSat
   
11
29
30
31
 
       
Today