Showing posts with label ADF Java Code. Show all posts
Showing posts with label ADF Java Code. Show all posts
Friday, December 30, 2016
Wednesday, February 18, 2015
Get Old or New value from any item Oracle ADF
Wednesday, January 7, 2015
Some Important Code for backing beans ADF & JSF
Tuesday, January 6, 2015
Write JavaScript To Client Oracle ADF Programmatic
Sunday, December 7, 2014
Oracle ADF Swing Application
Tuesday, December 2, 2014
Oracle JDeveloper 12c Tutorials and New Features
بسم الله الرحمن الرحيم
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا يا رب العالمين
---------------
موضوعنا اليوم عن Oracle JDeveloper 12c Tutorials ...
Check New Features Oracle JDeveloper 12c New Feature
Time to Complete 6 Hours
Check this link Click Oracle JDeveloper 12c Tutorials
والسلام عليكم ورحمته الله وبركاته
<< سبحانك اللهم وبحمدك أشهد أن لا اله الا أنت أستغفرك وأتوب اليك >>
Labels:
ADF 12c
,
ADF BC
,
ADF Faces
,
ADF Java Code
Tuesday, March 4, 2014
Oracle ADF Custom JSF validator
Monday, November 11, 2013
Calling ADF Action Binding Programmatically
بسم الله الرحمن الرحيم
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا يا رب العالمين
---------------
1- انشاء صفحة jspx وداخلها ضيف oracle adf table or form
2- ضيف button واضغط عليه مرتين هيطلب منك انشاء كلاس انشاه
3- وهذا هو كود استدعاء CURD
Calling ADF Action Binding Programmatically
استدعاء Insert , Update , Delete , Commit ... ect بشكل برمجي
1- انشاء صفحة jspx وداخلها ضيف oracle adf table or form
2- ضيف button واضغط عليه مرتين هيطلب منك انشاء كلاس انشاه
3- وهذا هو كود استدعاء CURD
1: public String insertAction()
2: {
3: BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
4: OperationBinding operationBinding = bindings.getOperationBinding("CreateInsert");
5: Object result = operationBinding.execute();
6: // do not forget to handle the errors here.
7: if (!operationBinding.getErrors().isEmpty())
8: {
9: return null;
10: }
11: return null;
12: }
Sunday, October 6, 2013
Navigate ADF Pages Programmatically
Thursday, July 4, 2013
Oracle ADF Java Data Types and Groovy Type
Thursday, June 27, 2013
How to set default values for Entity object attributes
بسم الله الرحمن الرحيم
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا يا رب العالمين
---------------
In this demo I am going to set default value of hire date of employees to today's date
There are 3 ways to set default values:-
1.) In the overridden create() method of the Entity object class:-
Generate EmployeesImpl.java class of EmployeesEO Entity Object.
Add the following code to create() immediately after the call to super.create() .
this.setHireDate((Date)Date.getCurrentDate());
There are 3 ways to set default values:-
1.) In the overridden create() method of the Entity object class:-
Generate EmployeesImpl.java class of EmployeesEO Entity Object.
Add the following code to create() immediately after the call to super.create() .
this.setHireDate((Date)Date.getCurrentDate());
Saturday, June 15, 2013
Create Backing Bean or Remove it
بسم الله الرحمن الرحيم
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا يا رب العالمين
---------------
انشاء Backing Bean مع الصفحة
وكثير بنسي نعملها انشاء في حالة انك نسي هتعمل اي
او في حاله تم انشائه وانت لا تريد استخدمها فماذا تفعل
Sometimes we may forgate to enable the radio button to create/enable the Backing bean automatically.
but later developer decide to create the backing bean.
but later developer decide to create the backing bean.
Monday, June 3, 2013
Some Important Code in ADF
بسم الله الرحمن الرحيم
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا يا رب العالمين
---------------
Code to get AppModule in Java Bean class
To implement resolvEDIC method
public Object resolvElDC(String data) {
FacesContext fc = FacesContext.getCurrentInstance();
Application app = fc.getApplication();
ExpressionFactory elFactory = app.getExpressionFactory();
ELContext elContext = fc.getELContext();
ValueExpression valueExp =
elFactory.createValueExpression(elContext, "#{data." + data + ".dataProvider}",
Object.class);
return valueExp.getValue(elContext);
return valueExp.getValue(elContext);
}
Use this in code to get Application Module Impl class
AppModuleAMImpl am =
(AppModuleAMImpl)resolvElDC("AppModuleAMDataControl");
Code to show FacesMessege in page
FacesMessage message = new FacesMessage("Record Saved Successfully!");
message.setSeverity(FacesMessage.SEVERITY_INFO);
FacesContext fc = FacesContext.getCurrentInstance();
fc.addMessage(null, message);
message.setSeverity(FacesMessage.SEVERITY_INFO);
FacesContext fc = FacesContext.getCurrentInstance();
fc.addMessage(null, message);
Code to show error msg in page
throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR,”msg”,null));
Saturday, June 1, 2013
Wednesday, May 29, 2013
Subscribe to:
Posts
(
Atom
)













