Mitkees & Webcenter

Into the charm of Oracle Webcenter and ADF

Category Archives: Java

ADF vs. Oracle Jet? is ADF Dead ?


How to architect my applications ?

Is ADF Dead ?

When should i use Oracle Jet?

 

These three questions are running in the head of devlopers & Service delivery managers.

Devlopers want to know what they should learn for the future are they out dated or no.

SDMs wants to work with the least effort to achive the requriments  .

So let me take you through a quick journey to find answers for these questions.

 

Both ADF & JET are Free to use.

ADF is a server side J2EE framework based on JSF.

Jet is amodular light weight toolkit for JavaScript development to helping developers build engaging user interfaces.

 

So ADF != JET

WE CANNOT COMPRARE THEM.

tatatatatan

 

On the other hand most of current implemntations tends to use JS and light weight client side code for user interfaces.

So it is preferbly to use JET but what about the back end?

You can still use ADF business components on the backend specially that you can simply expose it as a service with multiple clicks.

NOW we came to the important question what should i use ?

  • if you are implmenting something from scrach … Use JET and choose your backend to be ADF or any other Technology; specially because Jet build mobile reusable views
  • if you already enhancing the UI of already made ADF  .. expose your backend (model )as REST services and use JET
  • if you are implmenting internal appllications for limited number of users , ADF won’t heart you 🙂 as long as you have the capabilities to implement  it with minimual piece of code.

 

So is ADF Dead ?

NO NO NO , ADF is the building block of webcenter portal which is currently a cloud offering ; also Oracle itself still use ADF to build some products.

When should i use JET?

All the time.

 

 

 

 

Getting selected time in ADF calendar


It took me about 6 hrs to know how ADF calendar component set the time in the popup form the project posted here.

But it didn’t satisfy the implementation needs as it passes the time automatically through the calendarModel behind the scene,after some investigations , i found that there are some events associated with the calendar that can helps.

I used the Calendar event  listener property and created a method that takes CalendarEvent as a parameter and used the CalendarEvent object to get the triggered time as below.

 

 

    public void calEvent(CalendarEvent ce){
       System.out.println(ce.getTriggerDate().clone());
        
    }

    <af:calendar value="#{bindings.CalendarView1.calendarModel}" id="c1" availableViews="all"
                         view="month" startDayOfWeek="mon" startHour="9"
                         listCount="356"
                         calendarActivityListener="#{Business.activityListener}"
               calendarListener="#{Business.calEvent}"/>