Posts

I love this Symfony

I love this  Symfony. But I do not know what is its name!

Deploying Oracle ADF Essentials Applications to Glassfish

Image
Oracle Introduces Free Version of Oracle Application Development Framework New Oracle ADF Essentials Brings ADF Benefits to the Broader Developer Community Redwood Shores, Calif. – September 24, 2012 News Facts Oracle today released  Oracle Application Development Framework (ADF) Essentials . Oracle ADF Essentials enables the global developer community to leverage the core capabilities of  Oracle Application Development Framework  free of cost. Oracle ADF Essentials is standards-based and deploys on  GlassFish Server Open Source Edition , giving developers the ability to adopt and extend Oracle ADF functionality to new environments. To simplify the developer experience and deliver rich functionality,  Oracle JDeveloper provides visual and declarative development capabilities for Oracle ADF Essentials. Oracle Enterprise Pack for Eclipse  is intended to support Oracle ADF Essentials in a future release.    for more information...

How to get a value form the resource bundle file in ADF

Image
Hi So many times we need to show message to the users. The problem is that we do not want to pass the message text as hard coded. We sometimes need to read this message from the resource bundle. In this discussion , I will show how to achieve this task within both the ViewController and Model project. 1- How to achieve this in the ViewController Project. The following method accepts a String parameter which is the KEY and return the text for this key in the resource bundle. String resourceBundle is variable represents the class name of the resource bundle file. In order to now the resource bundle for the project , Just go to the project property,Resource Bundle /** * added by tarek fathy  * oct 02 2012  * use this method to return a value from the ViewControllerBundle file  * just pass the key  * @param identifier  * @return String  * this method will work only if the rec...

ADF sample projects

http://java.net/projects/smuenchadf/pages/ADFSamples

How to change the content language according to the page locale

Image
Hi Suppose you have "Employee" table which contains many attributes. Some of these attributes are :EmpNameArabic,EmpNameEnglish,StatusArabic,StatusEnglish. The problem is how to query the "EmpNameArabic" attribute in case of the locale is "ar" and how to query"EmpNameEnglish" in case of the local is "en". Solution 1- In the EmployeeVO view object , click on the query tab and edit the query as following: Edit the query to add "Decode(:p_lang,'en',EmpNameEnglishmEmpNameArabic) Emp_name" then click ok 2- Add the  bind  variable Select expression and write : " adf.context.locale.language" click ok and test the page and change the direction to test.

setDomainEnv file in weblogic

@ECHO OFF @REM WARNING: This file is created by the Configuration Wizard. @REM Any changes to this script may be lost when adding extensions to this configuration. @REM ************************************************************************* @REM This script is used to setup the needed environment to be able to start Weblogic Server in this domain. @REM @REM This script initializes the following variables before calling commEnv to set other variables: @REM @REM WL_HOME         - The BEA home directory of your WebLogic installation. @REM JAVA_VM         - The desired Java VM to use. You can set this environment variable before calling @REM                   this script to switch between Sun or BEA or just have the default be set. @REM JAVA_HOME       - Location of the version of Java used to start WebLogic @REM                   ...

how To get the current row index and the rows count

To get the current row index and the rows count  value="[#{bindings.AdmMissionReqHdrVO1Iterator.rangeStart + bindings.AdmMissionReqHdrVO1Iterator.currentRowIndexInRange +1}/#{bindings.AdmMissionReqHdrVO1Iterator.estimatedRowCount}] "/>