Quick things I learned about JDeveloper 11g this week.

“Proof of concept” project structure update

After a couple of weeks on trying to create a proof of concept (Chris Muir’s “Sum of parts” design) application based on a project structure outlined here:


I have a better understanding of how transactions are managed in 11g (lots of changes if you are coming from 10g) work now and its likely I will change the original design by removing the need of design time nesting of AMs in a common RootAm. This old practice will be overwritten with the use of adfc transaction and data control sharing functionality that is available in 11g. I will follow up with a future post regarding an modified version of the project structure.

Upon trying to integrated a modified version of the UIShell Template. I experienced the above runtime exception. This basically means that there is a resource that is defined more then once with the same name and package in the application. In my case, I redefined the package for the DataBinding.cpx to be in another path and solved this issue.

How to change the default jdev 11g user dir:
I had to change this default dir because the default folder is deeply nested within the widnows user folder. It is now easier to locate and reset the embedded weblogic settings (by deleting the DefaultDomain folder that is created in the default user dir).

af:table – programmatically set the current row upon selectionevent:
ADFUtil.invokeEL(“#{bindings.VONAME.collectionModel.makeCurrent}”,new Class[] { selectionEvent.getClass() }, new Object[] { selectionEvent });


Adding attributes using af:clientAttribute


This was used to create a behavior when a table row is double clicked, a new window launches with a dynamic url. In order to make this behavior common, I need to parameterized javascript function in order for a developer to invoke it from their own code without having to repeat the js code.

Running JDeveloper 11gR2 in 64bit mode and also embedded/integrated weblogic in 64bit mode:

The current distribution of R2 from oracle comes standard with a 32bit version of the jdk. The above links outline how to modify jdev.conf and also setDomainEnv.cmd files to enable 64bit. After following the instructions, ensure you run jdev64.exe. Also, if the embedded weblogic still launches in 32bit (you will see the jdk dir outputted by default in the console), you might need to reset weblogic settings (see above post on deleting the DefaultDomain directory)

I was curious to know if the url can be cleaner by removing the adf.ctrl-state attribute, which does not seem to be supported as it is coupled with adfc behavior.

About wesfang

www.linkedin.com/in/wesfang/ https://twitter.com/wesleyfang
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s