Saturday, February 6, 2010

JDev/ADF sample - Custom Attribute to Pass ADF Button Key

    Download - TableDialogEdit3.zip

Thursday, February 4, 2010

JDev/ADF sample - Default Value for Date Field in Query Criteria

  • Default Value for Date Field in Query Criteria. I got a question about how to assign default value for Date type field available in Query Criteria. Developer had a requirement to initialize Date type query field with date equal to 10 days before current date. This requirement is very simple for ADF and can be implemented in 5 minutes without writing any code.
    Download - DateSearch.zip

Monday, January 25, 2010

JDev/ADF sample - Conditional Activation for ADF Regions and Application Availability

  • Conditional Activation for ADF Regions and Application Availability. In ADF applications, in that case if database is down, user will get error message and site will be broken. If user will open site, when database was already down, user will see 'Loading' message and nothing else. If database will go down, during user activity - most likely NullPointerException will be raised and user will see broken site. Such behavior is not acceptable, enterprise services should be available even when database is not working. Ideally, database related content should be disabled and static content still should be loaded and available.
    Download - ApplicationAvailability.zip

Friday, January 22, 2010

JDev/ADF sample - Demystifying ADF BC Passivation and Activation

  • Demystifying ADF BC Passivation and Activation. It happens to face exceptions in production environment, even if during development and testing everything was working good. In most of the cases, this strange behavior will be related to wrong transient attribute usage, transient attribute which value is not passivated and then its lost after activation. You can test your code, if it contains any bad practice implementations, by disabling application module pooling. Most of ADF developers know this, however only few really understand what is happening. Today I will present sample case, where bad practice is demonstrated practically.
    Download - AppModulePooling.zip

Monday, January 18, 2010

JDev/ADF sample - Storing/Accessing Objects in ADF BC UserData Map

  • Storing/Accessing Objects in ADF BC UserData Map. While implementing one of the requirements for View Criteria, I faced an issue when there was a request to filter View Criteria Item based on user language. Well, its trivial when you want to filter choice list defined for attribute - just specify bind variable value in View Accessor. Its a bit more tricky for View Criteria Item choice list, mainly because View Criteria can't access value from VO row. This means, if we want to filter View Criteria Item choice list, we need to use Groovy language script in order to retrieve value for View Accessor bind variable. In my case it was user language. What I did - I have read Example #154 from Steve Muench blog - Not Yet Documented ADF Sample Applications, and decided to store user language in UserData map, in order to access it from View Accessor Groovy.
    Download - UserDataGroovy.zip

Tuesday, January 12, 2010

JDev/ADF sample - Auto Commit Use Case in Oracle ADF 11g Table Component

  • Auto Commit Use Case in Oracle ADF 11g Table Component. It happens to develop such screens, where users can browse through table rows, select any row and using related form update selected row data. Thinking from pure end-user approach, when data table contains many columns, sometimes its easier to edit row data in separate form. Everything is fine with this approach, however there is one thing that can be confusing to the end-user. Let's say, user is editing row data and then suddenly selects another row from the table, without saving changes from previous row. In such way, user can end up with changes in many rows and will loose track what should be saved and what reverted. This use case is from real life. In order to avoid user confusion with changes in multiple rows, I have developed sample application. This application implements read-only table and editable form, which brings data from currently selected row. Main trick - if user will edit data from selected row and will select another row without saving or reverting his changes, changes will be saved automatically - this will allow end-user to keep track of his changes easier.
    Download - TableAutoCommit.zip

Sunday, January 3, 2010

JDev/ADF sample - WebCenter 11g Discussion Service in Oracle ADF

    Download - WebCenterDiscussions.zip

Wednesday, December 30, 2009

JDev/ADF sample - Conditionally Required Fields in Oracle ADF Faces Rich Client

    Download - ConditionalMandatory.zip

Wednesday, December 23, 2009

JDev/ADF sample - View Criteria Inside ADF Library

  • View Criteria Inside ADF Library. I got a question from blog reader, if its possible to include VO with View Criteria into ADF Library and later reuse this View Criteria from another ADF BC project. Reader was facing problems, so as usual I developed sample working application and now posting it here.
    Download - ViewCriteriaReuse.zip

JDev/ADF sample - Database Connection in ADF BC 11g

  • Database Connection in ADF BC 11g. My colleague was facing ADF BC development question and asked me to help. He sent me whole application, so I was able to open it directly with my local JDeveloper 11g. While investigating actual question, I noticed strange behavior in ADF BC. For example, attribute types were not recognized and I was getting log messages - oracle.jbo.domain.Number not found. Check this blog post for solution.
    Download - DatabaseConnectionADFBC.zip

Sunday, December 20, 2009

JDev/ADF sample - Producing JSR 168 Portlets Directly From ADF Task Flows with Oracle WebCenter 11g

  • Producing JSR 168 Portlets Directly From ADF Task Flows with Oracle WebCenter 11g. While working with different customers, I'm getting questions about how to expose ADF Task Flows to third party Portals. Its especially important for those companies who are developing their own products based on Oracle Fusion Middleware 11g. You need to ensure that your product will be pluggable and compatible with different environment. Just imagine, in Oracle ADF 11g with WebCenter 11g you can expose your ADF Task Flows through portlet bridge as standard JSR 168 portlets and plug them into different Portals.
    Download - ADFIntegration7.zip

Thursday, December 17, 2009

JDev/ADF sample - Reusing Resource Bundles from Different Projects in ADF 11g

  • Reusing Resource Bundles from Different Projects in ADF 11g. I got a question from blog reader about how to reuse Resource Bundles from different ADF BC projects. Actually its quite common requirement, when we were starting with JDeveloper 11g Tech Preview 3 we also wanted to reuse Resource Bundles, however it wasn't working. But good news, it works now perfectly.
    Download - MessageBundlesApp.zip

Tuesday, December 8, 2009

JDev/ADF sample - Solving Error 403--Forbidden in ADF Security

  • Solving Error 403--Forbidden in ADF Security. While developing new prototype application, it happened to me to get Error 403--Forbidden, while trying to login into application protected by ADF Security. Error itself is logical, but in my case I was providing correct username/password, security permissions were defined correctly as well. I did a bit of research and found that weblogic.xml file was generated incorrectly.
    Download - ADFSecurityValidUsers.zip

Sunday, December 6, 2009

JDev/ADF sample - Overriding IsAttributeUpdateable Method for Conditional Rendering

  • Overriding IsAttributeUpdateable Method for Conditional Rendering. While working on customer side during last week, we got a requirement to render table records and conditionally prevent editing based on history column. Its quite common requirement, and there are many ways in ADF to implement it. You can generate separate button for each row and conditionally disable it, but from user perspective it is far from the best approach. Don't forget that ADF allows to override standard methods, where we can customize behavior. One of those methods - isAttributeUpdateable(), you can override it in EO implementation class, use this method to enable conditional disable property rendering.
    Download - IsUpdateableByDate.zip

Wednesday, November 25, 2009

JDev/ADF sample - CRUD Operations in Oracle ADF 11g Table Using PopUp Component

  • CRUD Operations in Oracle ADF 11g Table Using PopUp Component. I was blogging on previous week about how to implement CRUD operations in table component using external dialog framework (new feature in JDeveloper 11g R1 PS1) - CRUD Operations in JDeveloper/ADF 11g R1 PS1 Table Component. I got several questions from my readers about how to catch dialog Cancel event when using inline windows through external dialog framework. However, there is no Cancel Listener available for external dialog framework in this release, so its not possible to catch Cancel event. In some specific use cases it can create problems, because we want to execute Rollback when user is closing dialog by pressing Cancel button. On other hand, af:popup component have Cancel Listener, today I will show how you can use af:popup for CRUD operations in Oracle ADF 11g table.
    Download - TableDialogEdit2.zip

Tuesday, November 24, 2009

JDev/ADF sample - Integration in Oracle ADF with ADF Task Flows and ADF BC Imports

    Download - ADFIntegration6.zip

Monday, November 23, 2009

JDev/ADF sample - Tree Table Component in Oracle ADF

  • Tree Table Component in Oracle ADF. I want to share today, how we are using Tree Table components in Oracle ADF. Sure, you can implement Tree or Tree Table just by reading Oracle JDeveloper 11g documentation. However, I will try aggregate different information and to put all pieces together, in order to help those developers who are just starting to use Tree components and are curious how things work. My today post is based on information from Frank Nimphius article available on ADF Code Corner - How-to access the selected row data in a TreeTable or Tree.
    Download - TreeComponents.zip

Thursday, November 19, 2009

JDev/ADF sample - Building and Integrating Oracle ADF 11g Applications with OjDeploy Utility

  • Building and Integrating Oracle ADF 11g Applications with OjDeploy Utility. While attending Steve Muench session on OOW'09 I learned about Oracle Fusion Applications Teams' Best Practices. One of the things I was very interested - ojdeploy utility usage in automatic builds. In our project, we are building and maintaining custom Ant scripts to generate EAR file and to deploy it to WLS. However, it creates a lot of extra work, especially while migrating from one Oracle ADF release to another. Some customers are considering to use Maven Integration in JDeveloper 11g R1 PS1 (see article) for integration builds. But, while designing your integration build architecture, you should not forget about powerful ojdeploy utility offered by Oracle and shipped together with JDeveloper 11g.
    Download - ADFIntegration5.zip

Tuesday, November 17, 2009

JDev/ADF sample - CRUD Operations in JDeveloper/ADF 11g R1 PS1 Table Component

  • CRUD Operations in JDeveloper/ADF 11g R1 PS1 Table Component. While working on the customer side during last week, we have discussed a use case where user works with read-only tables and performs data editing through inline popup. In ADF 11g you can use clickToEdit editing mode for a table component in order to improve rendering performance. With this mode table will be rendered as read-only, but user will be able to edit rows by double clicking on current row. However this case was not suitable for the client, they wanted to edit and insert new rows in inline popup, mainly because there will be additional editable columns. We have tried to implement this requirement in JDeveloper/ADF 11g R1, using af:popup component, but it was not working for insert mode. Same week we got new Oracle JDeveloper release - JDeveloper 11g R1 PS1, and new functionality that allows to open ADF Task Flows as inline popups (read Frank Nimphius blog post - JDeveloper 11g R1 PS1 New Feature: Launching DHTML popup dialogs using the external dialog framework). In this blog post I will describe how you can enable CRUD operations in table component using ADF Faces external dialog framework.
    Download - TableDialogEdit.zip

Friday, November 6, 2009

JDev/ADF sample - Defining the LOV on a Reference Attribute in Oracle ADF 11g

  • Defining the LOV on a Reference Attribute in Oracle ADF 11g. Yesterday I got a question from my blog post reader about LOV components, about how to use LOV components on a reference attributes. Actually, its quite common requirement to have reference attribute shown in LOV, and not its code. I knew it from before, this functional requirement can be implemented in ADF 11g, Steve Muench described it in Oracle Magazine article year ago. However, I decided to implement sample application for this requirement and to give more light on this topic.
    Download - LOVByName.zip

Thursday, November 5, 2009

JDev/ADF sample - Calling Custom Entity Method From View Object Implementation Class

  • Calling Custom Entity Method From View Object Implementation Class. Few days ago I got a question from one of my colleagues about how to call custom method from EO implementation class. Colleague wanted to call this method from VO implementation class. I would not recommend you to follow this approach, because instead calling method in EO, you can invoke same code in VO row implementation class. But yes, exist different use cases and sometimes you may need to call EO from VO. In this post I will describe how you can do this .
    Download - CallingEntityMethodFromView.zip

Wednesday, November 4, 2009

JDev/ADF sample - Groovy Validation Hint in Oracle ADF 11g

  • Groovy Validation Hint in Oracle ADF 11g. There is one very powerful option for Groovy validation in Oracle ADF 11g. This option is somehow hidden from developers and quite often not used. I decided to blog about it, in order to put some light on it. This option is about how to get old and new values for edited attribute. Groovy provides two reserved keywords - oldValue and newValue, you can use those keywords while writing Groovy validation script.
    Download - GroovyValidation.zip

Tuesday, November 3, 2009

JDev/ADF sample - Business Logic Groups in Oracle ADF 11g

  • Business Logic Groups in Oracle ADF 11g. I was reviewing Business Logic Groups functionality in Oracle ADF BC and was getting problems - correct Business Logic Unit wasn't invoked when needed. Its because I misunderstood documentation, and was trying to configure discriminator property for attribute. Its seems everything much more simple, you just need to specify discriminator value in Business Logic Unit name. Thanks to Steve Muench for this pointer. Actually, there is a tip in documentation as well, which I skipped while reading - 4.8.2 How to Create a Business Logic Unit. Download sample application with working Business Logic Group defined for Employees EO.
    Download - BusinessGroups.zip

Monday, October 26, 2009

JDev/ADF sample - Integration in Oracle ADF with ADF Task Flows and Shared Java Classes

    Download - ADFIntegration4.zip

Friday, October 23, 2009

JDev/ADF sample - Integration in Oracle ADF with ADF Task Flows and Common Files

    Download - ADFIntegration3.zip

Friday, October 2, 2009

JDev/ADF sample - Custom Declarative Components in ADF Faces Rich Client

  • Custom Declarative Components in ADF Faces Rich Client. There is one not well advertised, but great feature in Oracle ADF framework - Custom Declarative Components development for ADF Faces Rich Client. Its really powerful thing, because it allows to build your own components based on groups of standard ADF Faces Rich Client components. There is an article on OTN written by Frank Nimphius, where he describes how you can build, deploy and use this type of components - How-to bind Custom Declarative ADF Faces Components to ADF. In my post, I will give you an example of practical usage, and will describe how Custom Declarative Components can be applied.
    Download - AdvancedLOVComponent.zip

Wednesday, September 30, 2009

JDev/ADF sample - Persisting Query Criteria Results Across Sessions with Oracle MDS

  • Persisting Query Criteria Results Across Sessions with Oracle MDS. For my previous blog post I got interesting comment from one of my readers - Husain. He was asking, how he can save search results across multiple sessions in Oracle ADF application. Actually, while asking he found solution by himself and updated my sample application from my previous post. Today I'll describe this updated application and will cover MDS topic for persisting query criteria results.
    Download - UserCustomizationsSession2.zip

Sunday, September 27, 2009

JDev/ADF sample - User Customizations for Duration of Session in Oracle ADF 11g

  • User Customizations for Duration of Session in Oracle ADF 11g. In Januray, I was blogging about very useful component in ADF Faces Rich Client - Panel Collection. However I got a comment, where user was saying that provided features most likely will not be accepted by the end users (mostly because UI changes were not persisted). That's true, in our project we also were hearing similar complains. Good news today, ADF 11g R1 provides User Customization per Duration of Session, and also its possible to configure persistence Across Sessions using MDS. Today I will quickly show how user changes are stored during active session, without MDS.
    Download - UserCustomizationsSession.zip

Saturday, September 26, 2009

JDev/ADF sample - Human Tasks in Oracle Fusion 11g

    Download - SalaryManagement3.zip

Sunday, September 20, 2009

JDev/ADF sample - Manual Oracle ADF Application Deployment on WLS with JDBC DataSource

  • Manual Oracle ADF Application Deployment on WLS with JDBC DataSource. In Oracle Fusion 11g R1 we can deploy Oracle ADF applications on Oracle WebLogic server directly from JDeveloper 11g - and it works perfectly. However, sometimes we need to deploy EAR file manually from WLS console. If you'll deploy your application to EAR file and later will try to deploy on WebLogic server through console, you will get deployment error related to database connection: No credential mapper entry found for password indirection. I have solved deployment error after reading Steve Muench blog post.
    Download - DSDeployment.zip

Thursday, September 17, 2009

JDev/ADF sample - PropertyNotFoundException in Query Criteria LOV Component

  • PropertyNotFoundException in Query Criteria LOV Component. Recently I have noticed strange errors while using LOV components in Query Criteria. Well, its known issue that you can't have two or more return elements in LOV component present in Query Criteria. But, in my case I was returning only one element - key attribute, and still I was getting error. This error was - javax.el.PropertyNotFoundException. Lucky me - I found the reason for this error, now my LOV is working properly in Query Criteria as well. I will describe what was a trick.
    Download - LOVQueryCriteriaWorkaround.zip
Spanish Summary:

En este post se describe como solucionar un bug de la herramienta que se produce cuando se intenta crear LOV (Lista de Valores) con 2 valores de retorno.

Thursday, September 10, 2009

JDev/ADF sample - Business Rules in Oracle Fusion 11g

  • Business Rules in Oracle Fusion 11g. Today I'm writing my fourth post in Oracle SOA series and will cover Business Rules functionality. I recommend to check my previous post - Business Events and ADF Business Components in Oracle Fusion 11g, sample application I'm describing today is extended version of application from my previous post. What Business Rule means? Simply speaking, its a container that encapsulates specific functionality logic. In Oracle SOA Suite 11g, Business Rule accepts inputs and returns outputs. This means we can understand Business Rule as a black box in general process flow. This black box can be reused and updated at any point of time, without affecting other components in the flow.
    Download - SalaryManagement2.zip
Spanish Summary:

Este post Andrejus nos explica lo que es un Business Rule (Regla de Negocio) y como lo podemos desarrollar con Jdeveloper. Este post es parte de la coleccion de temas SOA que andrejus ha escrito y que recomienda leerlos antes de revisar este post.

Sunday, September 6, 2009

JDev/ADF sample - Programmatical Reset for Query Results

  • Programmatical Reset for Query Results. If you are using ADF Faces Rich Client af:query component in your application, probably you have noticed that if View Criteria is declared not to query automatically, query results are not cleared when Reset button is pressed. There is no bug in this, its how framework works by default, however what to do if customer wants to have it differently. Today I will describe how you can use executeEmptyRowSet() method in order to clear query results.
    Download - QueryReset.zip

Monday, August 31, 2009

JDev/ADF sample - Oracle ADF Tuning: Preventing SQL Query Execution on Page Load

    Download - ADFPageOpening.zip
Spanish Summary:

En este artículo se explora una carateristica de ADF Business Componentes que permite evitar realizar consultas innecesarias a la base de datos mejorando la performance de las aplicaciones.

Tuesday, August 25, 2009

JDev/ADF sample - Integration in Oracle ADF with ADF Task Flows and ADF Security Configuration

    Download - ADFIntegration2.zip

Saturday, August 22, 2009

JDev/ADF sample - Business Events and ADF Business Components in Oracle Fusion 11g

    Download - SalaryManagement.zip, SalaryUpdateRemote2.zip
Spanish Summary:

Este post muestra una carateristica de integración entre Jdeveloper 11g and SOA Suite. En esta oportunidad se muestra el uso de los Business Events, para intercambiar y almacenar información de los salarios de los empleado usando SOA y los ADF Entity Objects.

Thursday, August 13, 2009

JDev/ADF sample - Service-Enabled Entity Objects in Oracle Fusion 11g

  • Service-Enabled Entity Objects in Oracle Fusion 11g. In Oracle Fusion 11g, JDeveloper provides great support for Application Integration Architecture (AIA) through Service-Enabled Entity Objects. It allows to build Enterprise Composite Applications (ECA) in Oracle ADF. Developer now can implement Entity Objects directly based on View Objects from remote application, exposed through Web Service. This means we can expose and consume Web Services on Model level using ADF Business Components, this gives more centralized integration approach. Its especially important for AIA, when building ECA. For more info, please read Section 11.3 Accessing Remote Data Over the Service-Enabled Application Module from Oracle Fusion Developer Guide. In this post I will describe some tips and tricks from my experience.
    Download - SalaryUpdateRemote.zip, SalaryControlService2.zip
Spanish Summary:

Este post ofrece un ejemplo de una nueva caracteristica que ofrece Jdeveloper para permtir la creacion de entidades en base a ViewObjects que pertenecen a aplicaciones remotas, las cuales son accedidas por medio de WEB Services. De esta manera nuestras aplicaciones pueden implementar rápidamente Enterprise Composite Applications (ECA) usando ADF.

Saturday, August 1, 2009

JDev/ADF sample - Web Service Interface for ADF BC Application Module in Oracle Fusion 11g

  • Web Service Interface for ADF BC Application Module in Oracle Fusion 11g. I'm starting series of posts where I will describe how you can orchestrate and connect various services in your infrastructure with Oracle Fusion/SOA 11g. I will follow such plan during my infrastructure implementation: (1) Will create Web Service interface for Application Module and expose custom method. (2) Will create second application, where will raise Business Event. (3) Will create BPEL composite, this composite will be subscribed to raised event and will route process according Human Task outcome. Today I will cover first step from my plan and will define Web Service interface for custom methods based on ADF BC Application Module. You can download sample application and deploy it in your standalone Oracle WebLogic environment.
    Download - SalaryControlService.zip

Saturday, July 25, 2009

JDev/ADF sample - Integration in Oracle ADF Through ADF Libraries and ADF Task Flows

  • Integration in Oracle ADF Through ADF Libraries and ADF Task Flows. Last year June, I was blogging about how to use ADF Libraries for calling remote ADF Task Flows - How To Call Remote Task Flow in JDeveloper 11g. Recently in our project we decided to split one big application into smaller ones and to create separate ViewController projects per each module implemented by Model projects. Splitting was divided into two steps - extract modules into separate ADF applications and then integrate all those applications back. Key requirement is to have one deployment archive, centralized security and at the same time to work on separate applications without any interruption. In order to implement this task, I decided to revisit ADF Libraries topic and actually I saw that in new JDeveloper 11g release integration can be implemented much easier than before. I will not focus in this post on ADF Libraries and ADF Task Flows description, you can check my older post for this. I will describe today how integration could be done now and one problem I faced (with solution of course :).
    Download - ADFIntegration.zip

JDev/ADF sample - TrackQueryPerformed Property Usage and ADF Task Flows

  • TrackQueryPerformed Property Usage and ADF Task Flows. I will describe following scenario - two ADF Task Flows, second ADF Task Flow is opened as Isolated. First ADF Task Flow provides query functionality implemented as View Criteria, and second ADF Task Flow accepts current row key value and allows to edit data. Scenario is pretty simple, and can be implemented in Oracle ADF very fast. However, there is one trick if you open second ADF Task Flow as Isolated. I will describe it and provide solution.
    Download - TrackQueryPerformed.zip

JDev/ADF sample - LOV Query Validation in Query Criteria

  • LOV Query Validation in Query Criteria. I have noticed in latest JDeveloper 11g release, LOV components present in Query Criteria are not validated by default. In order to make it work correctly, you need to change attribute property in View Object. Here I'm describing how to validate LOV components in Query Criteria.
    Download - LOVQueryValidation.zip

Friday, July 17, 2009

JDev/ADF sample - Oracle ADF BC Deployment and Imported Libraries

  • Oracle ADF BC Deployment and Imported Libraries. Last year July, I was writing about ADF BC sharing through JAR libraries across entire application. It works the same in current JDeveloper 11g release, however during deployment on standalone WebLogic server I have noticed some problems. When application with imported ADF BC libraries was deployed, shared ADF BC components were not found on the classpath and page wasn't loaded. For more info about importing shared ADF BC libraries you can find in my previous post - Import Functionality in Oracle ADF BC.
    Download - ADFBC_Import_Deploy.zip
Spanish Summary:

En anteriores post, se mostró como hacer uso de una libreria ADF BC en otros proyectos usando Jdeveloper 10g. Sin embargo, en la actual versión de la herramienta 11g existen algunos inconvenientes que son resueltos en el siguiente post.

Sunday, July 5, 2009

JDev/ADF sample - Improving Performance in ADF Applications - Page Load Time in CRUD Forms

    Download - CRUDPerformance.zip

Spanish Summary:

Andrejus en esta entrega, nos brinda un tip para mejorar la performance de los mantenimientos con ADF. Para ello, realiza configuraciones a nivel de View Objects que evitan un acceso innecesario a la base de datos en los procesos de Creación, Actualización y Eliminación de datos.

Friday, June 26, 2009

JDev/ADF sample - Oracle ADF and International Characters

  • Oracle ADF and International Characters. My team is developing application in Oracle ADF with internationalization support. When we did preliminary tests, we have noticed that we can't save local characters to database, entered characters simply were transformed to code representation. Our database character set is not UTF-8, but local. We were lucky to find very elegant solution - just to change content type charset of our pages. We have changed it to UTF-8, inside our JSPX pages, and ADF automatically transforms it to database character set. This means, same approach works when we have UTF-8 charset in database, or any local charset as well.
    Download - ADFInternationalChars.zip

Saturday, June 13, 2009

JDev/ADF sample - Working with View Criteria Items

  • Working with View Criteria Items. I will describe how you can work with view criteria items in easy way. Often when you will use Oracle search component - af:query, you may face requirement to access entered criteria items and perform one or another action based on the result. I would like to recommend always base view criteria items on Bind Variables, this will greatly help you while working with query pages.
    Download - QueryCriteriaParams.zip

Saturday, June 6, 2009

JDev/ADF sample - JDeveloper 11g IDE Performance Problem - Reproduced

  • JDeveloper 11g IDE Performance Problem - Reproduced. Our team have reproduced performance problem in JDeveloper 11g IDE while developing ADF applications. This problems seems so big, that it can crash JDeveloper 11g in 5 minutes by returning 'Low Memory Message'. In this post I will describe how to reproduce IDE performance problem and will provide sample application as test case. You can reproduce bug in latest JDeveloper 11g release - Build JDEVADF_MAIN.BOXER_GENERIC_090328.0229.5205. It was logged on Metalink in November 2008, but not fixed still (BUG 7601410).
    Download - ViewControllerPerformance.zip
Spanish Summary:

En este capitulo, Andrejus identifica un problema de rendimiento en la herramienta Jdeveloper 11g. Se muestra un ejemplo que al ser ejecutada con la herramienta tiene un alto consumo de memoria. Afortunadamente, Andrejus ha enviado a ORACLE sus descubrimientos para una pronta solución del problema.

Sunday, May 17, 2009

JDev/ADF sample - Parent Action Activity in ADF Task Flow

  • Parent Action Activity in ADF Task Flow. Recently I have faced a problem, when was trying to navigate to ADF Task Flow Call activity. The problem was, that I was initiating navigation from inside the region and navigation flow was defined not in bounded region ADF Task Flow, but inside parent bounded page ADF Task Flow. This means, navigation outcome from parent ADF Task Flow was simply invisible for button I have created inside region. But as usual in most of the cases, ADF provides very elegant solution to solve problem of external navigation from inside the region. I will describe it in this post.
    Download - ADFRegionNavigation.zip

Saturday, May 16, 2009

JDev/ADF sample - Inheritance Feature in Oracle ADF BC - Part 2

    Download - ADFBCInheritance2.zip
Spanish Summary:

El post anterior, mostró como aplicar el concepto de Herencia en las Entidades. Sin embargo el mismo principio puede ser aplicacion a los componentes View Object. En este post, Andrejus nos muestrá, de manera práctica como aplicar herencia entre Vistas.

Sunday, April 26, 2009

JDev/ADF sample - Inheritance Feature in Oracle ADF BC - Part 1

  • Inheritance Feature in Oracle ADF BC - Part 1. When building large applications with Oracle ADF, you can consider to use inheritance in Oracle ADF BC layer. This can reduce Model complexity in terms of size and relationship. I will split inheritance topic into two parts - today I will describe inheritance with ADF BC Entities, and in my next post with ADF BC View Objects. I recommend to read Oracle ADF Developer guide related topic - 34.7 Using Inheritance in Your Business Domain Layer. In ADF BC you can implement inheritance layer for Entities and create View Objects with polymorphic Entity usages. This means Oracle ADF supports abstraction on both - components and data.
    Download - ADFBCInheritance.zip
Spanish Summary:

En este post, Andrejus nos entrega un ejemplo de como aplicar mecanismos de herencia entre entidades de Business Components. En una entrega posterior nos mostrará la manera de implementar herencia entre View Objects.

Tuesday, April 14, 2009

JDev/ADF sample - Workaround for LOV on Primary Key Attribute in Create Mode

    Download - LOVPrimaryKeyCreate.zip
Spanish Summary:

Este post es una actualización de un post anterior en el que Andrejus muestra como evitar un bug que se produce cuando queremos trabajar con una Lista de Valores (LOV) sobre un campo de una tabla. El post anterior solo consideraba el uso de LOV cuando la tabla estaba en modo de consulta, sin embargo esta actualización considera las tablas en modo creacion y lectura.