Skip to main content

Posts

Showing posts with the label makeCurrent

ADF 11g : Even Fancier ! Multi Master Multi Detail and how to highlight related detail records

A few weeks ago I wrote about how to highlight related detail records. That solution worked very well, but turned out to be not as fancy as expected. I needed to be able to implement multiple selection in the master as well. That turned out to be not very simple but I managed to end up with having a multi-master / multi-detail implementation. In this post I show you how I did that. First I had to enable multiple selection on the master table (Countries). To achieve this I had to remove the selectionListener and the selectedRowKeys. I also set rowSelection="multiple". The JSF code for the table now is : 1: <af:table rows="#{bindings.CountriesView2.rangeSize}" 2: fetchSize="#{bindings.CountriesView2.rangeSize}" 3: emptyText="#{bindings.CountriesView2.viewable ? 'No data to display.' : 'Access Denied.'}" 4: var="row" 5: value="#{bindings.CountriesView2.collectionModel}"...

ADF 11g : Using the ActiveRowKey property

In ADF 11g Release 2, the ADF Table component has a property called 'ActiveRowKey'. According to documentation, this represents the row that is currently active on the client. In click-to-edit mode, the active row will be made editable and is brought into view (if not already visible). Upon initial display, the click-to-edit component defaults the active row to the first visible row. In this post I will show you how to use the activeRowKey programmatic. Use Case. Imagine the following use case: I have a 'click-to-edit' table and I added a 'filter' field with a button in the surrounding panel collection. User enters (in this case) a last name and pushes the button. The table scrolls to the first row that matches the criteria, and the row is active to edit. Implementation. I create an ADF table based on ADF business components for the Employees table. It's a clickToEdit table with singleSelection. After creating it I bind it to a bean. I'...