Tablet support in ADF Faces with 12c

I blogged before about the support for tablet and touch device rendering with ADF Faces. Release 12c brings together features that were introduced in previous patches (such as 11.1.1.7) into a single line of code and even adds more features in this area.

To show you what ADF Faces does automatically for you, I re-recorded the interaction with the houses demo that I showed here, but this time on an iPad.

Things to note:

  • Switching from stretch to flow layout (eliminates scroll bars and allow swipe scroll)
  • Table pagination instead of scroll bars
  • HTML5 rendering for data visualization components instead of Flash
  • Drag and drop and tap and hold support on device
  • Swipe support on objects such as cards in a hierarchy viewer
  • Maximize area support
  • New tablet style UI components (Springboard and list view for example)

 It's a single application that runs on both the regular and mobile browser.

The only thing I needed to do is use an EL for two properties (maximize and dimensionsFrom) on the top containers in the page that will switch the whole page to do flow layout on touch devices. You would usually use this in your page template for the application.

The code I use is:

    <af:document title="index.jsf" id="d1"
                 maximize="#{adfFacesContext.agent.capabilities['touchScreen'] eq 'none' ? true : false}">
        <af:form id="f1">
            <af:panelStretchLayout id="psl1"
                                   dimensionsFrom="#{adfFacesContext.agent.capabilities['touchScreen'] eq 'none'  ?'parent' : 'children'  }">

Here's the video:


Comments:

Hi Shay,

We have Webcenter portal application that uses the out of the box Blog taskflow (without any customization).

While trying to access the application in iPad, whenever i try to create a new blog post, it does not show me the content editing area which is essentially the <rte:editor> component in the jsff.

I have read about incompatibilities between rte and iPad.

Do we have any solution for this?

we are using 11.1.1.6

Posted by guest on October 24, 2013 at 01:58 AM PDT #

guest - I'm not sure what the rte editor is, the ADF Faces rich text editor works fine on iPad - see this:
http://jdevadf.oracle.com/adf-richclient-demo/faces/components/richTextEditor.jspx

Posted by Shay on October 24, 2013 at 10:13 AM PDT #

Hi,

i am working on the Cloud environment of oracle Fusion, i am having issues
of scroll bars, i want content should fit to the ipad screen.

any solution to this?

Posted by guest on May 07, 2014 at 03:32 AM PDT #

guest - you should be using flow layout instead of stretch layout for your pages if you are targeting iPads.
In addition you should size your pages to the appropriate width/resolution of the device you are targeting.
See these seminars:
https://www.youtube.com/watch?v=4iSmKghGOTU&list=PLEn4egIzXHXVrPOqkaS4akOPNlQrxxzW1

http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/layouts/layouts.html

Posted by Shay on May 07, 2014 at 10:26 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

me
I'm a Director of Product Management for the Oracle Mobile and Development Tools.
Follow me:
Search

Archives
« March 2015
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
    
       
Today