Thursday, August 30, 2012

Set Default editor for file type

Set default editor for different file type

We all face issue while opening jspx/jsff page JDeveloper hang couple of time. We have to wait jdeveloper to respond or even sometime we have to restart  JDeveloper.

Here I am explaining way you can set default editor for different type of page. Opening any file in source mode will take less amount of memory as compare to design mode. Using these steps developer can set default mode as source editor for jspx, jsff, taskflow and many more.....

Steps to set default editor are as follows:
  • Open the JDeveloper 
  • Click on the tool menu 
  • Select the Preferences option
  • Select the File Types
  • Select the default editor tab click on the any file type in below table
  • There is a dropdown below file type table select source from that dropdown.

  • Click on ok button to save you settings.
  • Next time when you double click on the file it will open in selected editor.




Thursday, August 23, 2012

How to define default action/button for ADF

How to define default action/button for ADF page

There are many use cases where user wants the functionality to submit page at anytime not just click on the specific button.

This is very common requirement where user filling the data and they want to form to be submit on "Enter Key Press" without moving the cursor to button and click on it.

Oracle ADF faces provide us the facility to define the default action for form. This functionality can be achieved using the .
Find below subform implementation:

In this above code defaultCommand="cb1"  represent the default action for the form.

af:subform  can be used multiple time to provide default action/command for different areas in single page.











Saturday, August 18, 2012

Adf Dynamic Tab Shell: Tab selection using the keyboard

Adf Dynamic Tab Shell: Tab selection using the keyboard

It seem that many of desktop application migrating to ADF UI. Desktop user or end user are much familiar with keyboard use rather then mouse use. Oracle ADF provide the facility to define the hot-keys for fast access of tab selection but it has the limitation of using 10 (0 - 9) key combination. 

There are few limitation:
  • Oracle ADF DynamicTabShell supports 15 tabs, there is a big question what to do with 5 other tabs.
  • User have to remember tab number which he/she want to select. 
Here I am presenting a mechanism using this approach developer can overcome both limitation.
Idea is simple, I am using the key combination for moving next and previous tab.

Key combination are :
Ctrl +1 = Move next tab (If there is not more next tab first tab will get selected)
Ctrl +2 = Move previous tab(If there is not more previous tab last tab will get selected ) 

Below are the details of tab how it will works (Please pardon me for poor layout design.)



  References :

please find the attached application : Sample Application