Skip to main content

Posts

Showing posts with the label Oracle ADF

Oracle ADF - Table pagination problem from JDeveloper 11.1.1.7

Most of us would have tried to implement pagination on af:table From Jdeveloper 11.1.1.7, pagination feature is directly available for af:table with a property called "scrollPolicy". We need to have two properties in af:table scrollPolicy="page" autoHeightRows="0" Once this is set the pagination feature should be shown.But table pagination does not show up, until unless we have a floating layout around the table. When we try this, we will get a message in the log saying below falling back to scrolling mode since we need parent component to flow and authHeightRows=0 Logs looks as below This is because of the layout around the table. The table should be in a container in flow mode. For example panelGroupLayout or showDetailHeader. So the af:table should be surrounded with a panelGroupLayout When you surround table with panelGroupLayout, set the layout to "horizontal",or "vertical",or "scroll" . Because w...

Oracle ADF - Menu Skinning

Let's see how to style menu in oracle adf I assume that you have a page with menus like below The default style for the menu with alta ui theme looks like below If you want to change the look and feel of the menu, then we need to add few component level style selectors. I assume that you have a css file ready to put the custom styles that we are going to use.With the below seectors you can play around to change the look and feel /*menu hover*/ af|menu:hover{ border : 1px solid rgb(0,198,198) ; background-color: white; } /*menu hover --> menu text hover*/ af|menu:hover af|menu::bar-item-text:hover{     color: rgb(0,205,205);   } /*menu pressed*/ af|menu:depressed{ border : 1px solid rgb(0,198,198) ; background-color: rgb(0,205,205); color: White; } /*menu pressed and hover --> menu text hover, menu pressed --> menu text*/ af|menu:depressed:hover-target af|menu::bar-item-text, af|menu:depressed af|menu::bar...

Custom Typeahead / autosuggest Search in ADF

For custom type ahead search there are many different solutions available out there. We can choose depending on what we are looking for. Let me first describe my use case. My autosuggest/typeahead search should show the filtered list of items once I entered the search text(This is the basic requirement, that can be achieved easily with the readily available autosuggest in ADF). When I select one item from the list, I should be able to get the selected item along with all additional information like id,name,date etc, instead of getting only id or name. The normal autosuggest solution given by Frank Nimphius available here http://www.oracle.com/technetwork/developer-tools/jdev/autosuggest-090094.html This one can do the basic autosuggest which can give the selected item's id and label. But what If you need to have access to addition information, while selecting one of the item from the list, like city ,country,department..etc. So I have customized the solution provided by Fr...

ADF - Redirect to Another Page/task-flow on page load and can parse and hide query parameters

This article is to show you how to do auto-redirect to another page/taskflow on load of a page. Using this technique, we can achieve the below also, when an external application tries to call an adf application page using url with query parameters (visible in the url), and if we do not want those parameters to be visible explicitly in the url, then we can use this approach, where on load of a page we can capture those query parameters and we can redirect to the actual page. Redirect to a task-flow To achieve our requirement, we need a page on load of which, it should redirect to a task-flow. Redirect.jspx Employee_task-flow Onload of Redirect.jspx , it should redirect to Employee_task-flow. This task-flow contains a page(employee.jspx) as default activity. Step1: Create a class OnPageLoadBackingBean which implements PagePhaseListener Step2 : Create a backing bean scoped class for Redirect.jspx page. It should extend the...