Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
8Activity
0 of .
Results for:
No results containing your search query
P. 1
Oracle Adf Calendar Step by Step Implementation

Oracle Adf Calendar Step by Step Implementation

Ratings: (0)|Views: 1,809 |Likes:
Published by Maria
Como crear un componente calendario en ADF
Como crear un componente calendario en ADF

More info:

Published by: Maria on Sep 30, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

08/07/2013

pdf

text

original

 
You are here:Blog»Oracle ADF» ADF Calendar step-by-step implementation
Search in blog 
GO
 ADF Calendar step-by-step implementation
 August 27th, 2010 | Posted by Bogdan Petridean in Oracle ADF | No Comments
In what follows we shall provide an implementation for the af:calendar component.
 ADFCalendar 
sample application – implemented using JDeveloper IDE version 11.1.1.3.0 – can bedownloaded fromhere.The application uses an extended version of the
HR 
database(contains a new table calledCALENDAR) which has been packed as a .sql script –
 AdfCalendarHRscript.sql 
– and stored withinthe
 ADFCalendar 
application.The script alone canbe downloaded fromhere.
Database
If you want to use the script to create the database follow the steps below:1. Download
 AdfCalendarHRscript.sql 2. D
rag & drop it into your JDevelopper IDE3. Open a new SQL Worksheet4. Copy the content of the script and paste it into the worksheet5. Press F5 to run the script.If you want to extend an existing database use the code below to create the CALENDAR table:
Bogdan Petridean
View all articles by this author (8)
CategoriesCategories
Oracle ADF(33)
AuthorsAuthors
 Anca Capatana(3)Bogdan Petridean(8)Delia Coman(2)Dorin Simina(6)Eniko Zsido(2)Florian Leonard Gozman(4)Ioana Goga(3)Pompei Avram(5)
HomeServicesClientsCaeersNewsBlogContact
01CREATE TABLE CALENDAR02(
 
PDFmyURL.com
 
You can also choose to extend an existing table. In this case you need to add 5 new attributes: 3strings – for the
 Activity Id 
,
 Activity Provide
r and
 Activity Title
and 2 dates – for the
Start Time
and
End Time
of the activity; the names are not important, only the data types are.Next, create a new FMW application or use an existing one and follow the steps below:
Model implementation
Create a connection with the database and use it to create the CALENDAR Entity and View Object:
New -> Business Tier -> ADF Business Components -> Business Components from Tables ->CALENDAR – > Entity 
and
Updatable VO
Open the Calendar entity and set the default value for 
StartDate
attribute, as an expression, to
adf.currentDateTime
and for 
EndDate
to
adf.currentDate+1.
 Also, the
EndDate
should allways be greater than the
StartDate;
this is done by adding a newvalidator for the
EndDate
attribute:
Tag CloudTag Cloud
adf calendar 
 
 ADF mapsautosuggest
 
basicauthentication
 
best practicesblock ui
 
calendar clientListener 
 
combo box
 
crudbounded task flow
 
customsearch
 
digital certificate
drag and drop
dynamic page include
 
e-conomic
 
enterprise manager exception handler 
 
filters
geographic map
 
glass paneGoogle Maps
 
Jasper 
 
 jobschedule
 
keytool
 
lov
 
mapsMDS
 
menu
 
Metadatamultiple choice
 
ofm progressindicator 
 
page security
 
popupprogress indicato
 
RCUreports
 
repository
 
RESTsearch
 
selection
SelectOneChoice
serverListener 
 
simple searchstatus
 
status indicato
table
 
table filter 
 
task flowssecurity
 
Timer task
 
upload file
03ID VARCHAR2(20CHAR) NOT NULL 04, PROVIDER VARCHAR2(100CHAR) NOT NULL 05, START_DATE DATE NOT NULL06, END_DATE DATE NOT NULL07, DESCRIPTION VARCHAR2(200CHAR) NOT NULL 08, CONSTRAINT CALENDAR_PK PRIMARY KEY09(10ID11)12ENABLE13)
 
PDFmyURL.com
 
Open the Calendar VO and add 3 new bind variables as in the image below(only the data types areimportant):
View Controller implementation
Business
Create a new java class, name it
Business–
contains the calendar business. Each methodimplemented within this bean will be presented with respect to the visual component for which itprovides service.Now, open
adfc-config.xml 
->
Overview 
->
Managed Beans
and set
Business
bean scope to
request 
as presented in the below image
:
User Interface
Create a new .jspx web page, name it ”calendar” and follow the steps below:Open
Data Controls -> AppModuleDataControl 
and drag&drop the
CalendarView 
as a
Calendar 
ontothe newly created .jspx page:
 
PDFmyURL.com

Activity (8)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Joana Pereira liked this
Joana Pereira liked this
Edgar Claudio liked this
Edgar Claudio liked this
swayamji liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->