Showing posts with label Oracle ADF. Show all posts
Showing posts with label Oracle ADF. Show all posts
Friday, November 9, 2012

Resolve: java.lang.AssertionError: CurrencyKey not preserved error for ADF web application


Hi, I used to dvt:hierarchyViewer component into fragment page. then I depoyed adf web application to IntegratedWeblogicServer(Default Domain) . It's okey. but deploy to custom weblogic domain (You can read here about ADF application deployment to custom weblogic domain) following error:
I resolved the error by follow step.1. open setDomainEnv.cmpd(Windows) or setDomainEnv.sh(Linux).2. -da:org.apache.myfaces.trinidad.component.UIXCollection add to setDomainEnv.sh like a follow pic.
3. execute setDomainEnv.sh4. restart weblogic domain. well done :) thanks juddi
Friday, December 2, 2011

How to JDeveloper memory settings


Before, Did you get warning message the "Low memory warning" on JDeveloper .


I will describe how to fix it. There are two config files on jdeveloper installation directory.
the first one is jdev.conf file. the file located in \jdeveloper\jdev\bin
increase the memory values for the following parameters:
AddVMOption -XX:MaxPermSize=1024M

the second one is ide.conf file on \jdeveloper\ide\bin.

AddVMOption -Xmx1024M
AddVMOption -Xms1024M








For now start JDeveloper. if jdeveloper can not start, decrease memory allocated values and retry to start jdeveloper
Wednesday, November 30, 2011

ADF Query Component Usage with ADF Panel Stretch Layout


There is a very nice layout component in ADF 11g - af:panelStretchLayout (ADF Panel Stretch Layout). This component comes with 5 facets - Bottom, Center, End, Start and Top. It allows to split your page layout in more easy way - you can put menu component into Top facet, functional logic into Center facet.

Everything seems okej and clear, however there is hidden issue when you need to have menu elements in Top facet dependent on ADF Query from Center facet. For example, menu item can be enabled/disabled based on ADF Query results:





click here detail read post





project workspace download :PanelStretchLayoutADFQuery.zip

JDeveloper 11g and ADF Task Flow Parameters


Developed sample application - TaskFlowParamaters.zip is based on standard HR schema, Departments and Employees entities. Unbounded task flow contains selectDepartments page and call to separate bounded task flow. Bounded task flow contains employees page and Task Flow Return component, this component allow to return to calling ADF Task Flow.



When I was creating this application, I have used Fusion Web Application (ADF) as a template for developed sample application. Empty unbounded task flow was created automatically - adfc-config.xml. My next step was to create bounded task flow - task-flow-definition.xml:
click here detail read post




project workspace download :TaskFlowParamaters.zip

Create, Edit and Delete operations in ADF Faces af:table component


Developed sample application EditableTable11.zip, provides read-only table with those actions - Delete, Create, Edit, Save, Cancel. Row selected for editing is shown in editable mode and can be updated. Application is based on HR schema that comes with Oracle XE database. Application logic is based on Jobs entity from HR schema.
This sample is developed using the same principle as described in my previous post. I will describe what are the differences in implementation:
click here detail read post







project workspace download :EditableTable11.zip
Monday, November 28, 2011

Install Oracle JDevevoper


In this post, I will explain how to install oracle jdeveloper tools on windows and linux os. which is almost same way.
1. first of all you must download jdeveloper installer from here.
2. click the exe installer file




3. click next.

4. choose oracle middleware home. if you have already oracle home which is show on and didn't have select create new middleware home.

5. click next

6. Installation process will install the following software products
JDeveloper and ADF
Weblogic Server




7. choose JDK


If you had already installed jdk, you can set the jdk location. if not new jdk will install on your oracle home.
8. click next

9. click next.


here you can insert Node manager port. Default value is 5556. if select YES nodemanager automatically runs when start OS

10. starting install
11. Installation Summary

that's finish
Tuesday, October 25, 2011

Passing Parameters from ADF Task Flow with Fragments into ADF Bounded Task Flow


It is a common use case to pass parameters from ADF Task Flow with fragments into another ADF Task Flow without fragments. I got this question for my previous blog post - Parent Action Activity in ADF Task Flow. The use case:http://www.blogger.com/img/blank.gif

1. We have ADF Bounded Task Flow, it contains two main elements - page P1 and another ADF Task Flow call - C1
2. Page P1 included ADF region, this region comes from ADF Task Flow with Fragments
3. We need to pass parameter from ADF region available in P1 into ADF Task Flow call C1


click here detail read post





project workspace download :ADFRegionNavigation2.zip

MySQL Unicode Datasource Problem


recently, I had problem about mysql database unicode on adf web application. In my table on mysql database table row is inserted to fine by unicode utf8 . but when insert new row to database from adf web application , unicode utf8 is not working. so i added follow connection string .



jdbc:mysql://localhost:3306/dbname?useUnicode=yes&characterEncoding=UTF8




and you need to check follow steps.
1. go to menu Tools->Preferences Encoding select UTF8
2. check encoding of all type page

ADF Task Flow in JDeveloper 11g


In JDeveloper 10g there is only one possibility to design application page flow structure - using JSF navigation flows. But sometimes, use cases require to implement complex page flow, that is not supported by JSF navigation flows. JDeveloper 11g brings ADF task flows in addition to JSF navigation flows. From Oracle JDeveloper 11g Technology Preview, Fusion Developer's Guide for ADF:



Task flows provide a more modular and transactional approach to navigation and application control. Like standard JSF navigation flows, task flows mostly contain pages that will be viewed. However, instead of describing navigation between pages, task flows facilitate transitions between activities. Aside from navigation, task flow activities can also call methods on managed beans, evaluate an EL expression, or call another task flow, all without invoking a particular page. This facilitates reuse, as business logic can be invoked independently of the page being displayed.

click here detail read post





In developed sample application - ADFTaskFlow.zip
Thursday, October 20, 2011

Communicating Between ADF Regions Without Contextual Events Framework


Download sample application - RegionCommunicationPPR.zip. This sample is based on two ADF Regions - one brings Employees table data, another - Employes form data. User can select data in the table, form in the second ADF Region will be refreshed automatically and will show synchronized data



PopUpFetch Option for Property Listener


With previous JDeveloper/ADF 11g releases it was quite complicated to catch popup fetch event, we were overriding popup fetch listener inside managed bean and processing it. Its a good hint, things are simpler now - there is popupFetch property with Set Property Listener component:click here detail read post




Download sample application - PopUpFetchListener.zip

Database Connection in ADF BC 11g


I started to dig more and I saw that Number type is displayed as oracle.jbo.domain.Number, usually it is shown just as Number:click here detail read post





project workspace download:DatabaseConnectionADFBC.zip

Parent Action Activity in ADF Task Flow


The problem is, that I have bounded ADF Task Flow, however main page is using region and this region can't see declared navigations from this ADF Task Flow: click here detail read post





project workspace download : ADFRegionNavigation.zip

Yes-No Check Box in Query Criteria


visit to here and show detail post.




Project workspace download here: YesNoSearchBox.zip

Default Value for Date Field in Query Criteria


the post will show how to search by date variable and set default date value into search input field.



you can read original post on http://andrejusb.blogspot.com/2010/02/default-value-for-date-field-in-query.html



Project workspace download link: DateSearch.zip

Navigation Between ADF Task Flow Template and Consuming ADF Task Flow


My first video turorial topic is: Navigation Between ADF Task Flow Template and Consuming ADF Task Flow. please visit original blog post on http://andrejusb.blogspot.com/2010/11/navigation-between-adf-task-http://www.blogger.com/img/blank.gifflow.html





Project workspace download: TaskFlowTemplate.zip
http://www.blogger.com/img/blank.gif