Posts

Open wikipedia in a modal popup.

Image
This post was more or less inspired by the  noteWindow  example on Oracles tag demo site. When hovering the highlighted text in this example the user gets extra information about the subject. I wanted to give the end user the opportunity to get even more information, for instance by invoking a wikipedia page about the subject. The catch here is that I wanted this information to be shown in a modal popup, and one that is not prohibited by popup blockers. Luckily ADF 11g provides javascript popups that can also be made modal, so the user has to close the popup before returning to the application. This post describes how I used an  in a  to open the correct wikipedia in a modal popup. Step 1: Create the plain text that invokes the noteWindow. This is taken directly from the mentioned Oracle example. Vultures are scavenging birds, feeding mostly on the carcasses of dead animals. Vultures are found in every continent except ...

How to launch LOV and Date dialogs using the keyboard

How to launch LOV and Date dialogs using the keyboard By frank.nimphius on February 26, 2011 9:13 AM Using the ADF Faces JavaScript API, developers can listen for user keyboard input in input components to filter or respond to specific characters or key combination. The JavaScript shown below can be used with an af:clientListener  tag on  af:inputListOfValues  or  af:inputDate . At runtime, the JavaScript code determines the component type it is executed on and either opens the LOV dialog or the input Date popup.    < af:resource  type="javascript">       /**       * function to launch dialog if cursor is in LOV or        * input date field        * @param evt argument to capture the AdfUIInputEvent object      */    function launchPopUpUsingF8( evt ) {       var component = evt.getSource();    ...

Dynamically add region at runtime

1-       Create a .jspx page based on your template as usual   and leave it blank until this time 2-       Create   all the bounded taskflows   that you wants and create the page fragments as usual. 3-       Create a java bean class called"DhamanJavaBean" Package org.dhaman import oracle.adf.controller.TaskFlowId; public class DhamanJavaBean {     private String taskFlowId = "/WEB-INF/emp-flow.xml#emp-flow";     public DhamanJavaBean () {         super();     }      public TaskFlowId getDynamicTaskFlowId() {       return TaskFlowId.parse(taskFlowId);   } }  At this moment the calss contains only one attribute " taskFlowId" and only one method " getDynamicTaskFlowId()" 1-       Double click the "adfc-conf.xml" unbound taskflow and click on ...

Useful links

1- how to make dynamic credential http://www.oracle.com/technetwork/developer-tools/jdev/dynamicjdbchowto-101755.html 2- lynn blog http://radalcove.com/blog/ 3- some handy backing bean http://biemond.blogspot.com/2009/03/some-handy-code-for-backing-beans-adf.html

Introduction To Task Flows

Image
فى بدايتنا مع ال jsf  لما كنا بنعمل plan  للمشروع بتاعنا كان شغلنا بيبقى عبارة عن pages  و بينها flows  و كان كل ما نحتاج function  جديدة او متطلب جديد كنا بنعمله page  و نربط الصفحة دى ب flow  و ن control ال flow دة من خلال managed-bean  او حتى backing-bean  طيب تخيل معايا لو الموضوع كبر مننا و لقينا نفسنا بعد سنتين بقى عندنا 25 او 30 صفحة على اقل تقدير تخيل منظر ال flows و ال pages  هيبقى عامل ازاى تخيل ال maintenance  هيبقى ازاى طبعا الموضوع هيكون صعب جدا طيب اية الحل؟ لو روحنا لل system analyst  و قولناله الحقنا دورلنا على حل اكيد اول حاجة هيقولهانا " قسمو شغلكم ل modules"  و هو دة الحل فعلا بس نطبقه ازاى؟ هنا تيجى اوراكل و تقدملنا حل الحل فى ال task flows ال task flows  هو انك تفكر باسلوب المديولات .  هو انك تقسم شغلك لمديولات .  مجموعه الصفحات دى اللى ليها علاقة بالمبيعات فى مدويول المبيعات و مجموعه الصفحات دى اللى ليها علاقة بالمخازن فى مديول المخازن مثلا اقرا معايا ال paragraph  اللى جاى دة من ك...

Installing developer 6i on window 7

اكيد فى ناس لسة شغال 6i و طبعا قابلو مشكلة انهم يشتغلو على ويندوز 7 الحل ان فى ملفين dll فى الفولدر bin هما اللى عاميلن المشكلة دى شوف الخظات التالية Installing Oracle Developer (forms & reports 6i) on Windows 7 64bit Oracle developer 6i (forms & reports) Installation tips. Including me, many of you out there must be still using the developer 6i and getting this stuff work under Windows 7 64bit environment could be quite tricky. Run the installer normally (without changing the compatibility mode) and finish the installation for both forms and reports. Go to this  link  and download the files suggested. Now go to your developer installation folder, browse to BIN directory and make backups for these files NN60.DLL NNB60.DLL Now copy the extracted files from the downloads you already have, to \BIN directory. This should deal with forms developer not responding to the “Run” button click or ‘Ctrl+R’ shortcut key. Hope this post is useful Oracle develop...

ADF chapter 3 summary

Getting Started The important  notes are: Generic VS strong typed API: generic is to use only one method that accepts column name as string strongly typed is to use getter method for the attribute or column name Example Row row = ordersVO.getCurrentRow(); Date shippedDate = (Date)row.getAttribute("OrderShippedDate"); OrdersRow row = (OrdersRow)ordersVO.getCurrentRow(); Date shippedDate = row.getOrderShippedDate(); 2. interfaces accessible for the client: 1- Application Module 2- View objects, representing the query components 3-View rows, representing each row in a given query component's results 3-Custom Client Interfaces for Components you can create your own custom interface that contains your custom business services required to be exposed to some clients. so, you can create your java class that extends the super interface . for example StoreServiceAM extends ApplicationModule :  Custom application module interface OrderItemsInfo extends ViewObj...