Oracle Application Framework Development FAQ Release 12.docx
《Oracle Application Framework Development FAQ Release 12.docx》由会员分享,可在线阅读,更多相关《Oracle Application Framework Development FAQ Release 12.docx(36页珍藏版)》请在冰豆网上搜索。
![Oracle Application Framework Development FAQ Release 12.docx](https://file1.bdocx.com/fileroot1/2023-1/4/664f8bb2-3b36-4a01-946d-79edd2b5d59d/664f8bb2-3b36-4a01-946d-79edd2b5d59d1.gif)
OracleApplicationFrameworkDevelopmentFAQRelease12
OracleApplicationFrameworkDevelopmentFAQRelease12[ID395437.1]
修改时间 21-OCT-2010 类型 REFERENCE 状态 PUBLISHED
OAFrameworkDevelopmentFrequentlyAskedQuestions(FAQ)
Overview
ThisdocumentdescribescommonproblemsandsolutionsrelatedtoongoingdevelopmentusingtheOAFramework.
See OracleApplicationFrameworkInstallationTroubleshooting (MetalinkNote395446.1)forcommonproblemsandquestionsrelatedtotheinstallationandconfigurationoftheOAFramework,andthedeploymentofOAFramework-basedapplications.
Contents
Thisdocumentisorganizedintothefollowingbroadcategories:
∙DevelopmentEnvironment(General)
∙WhatVersionofJdevtousewithOAF
∙Oracle9iJDeveloperOAExtension
∙BC4J
∙ErrorHandling
∙UIFeatures
oButtons(Action/Navigation&Links)
oFlexfields
oHeadersandSubheaders
oHGrid
oHTML
oListofValues(LOV)
oPoplist
oTabs/Navigation
oTables(ClassicandAdvanced)
▪Sorting
▪AddingRows
▪Navigation
▪Selection
▪Others
∙StateManagement
∙Other/General
∙Debugging
DevelopmentEnvironment
Questions
1.TheperformanceoftheTutorialJSPsispoorwhenusingNetscape. HowcanIswitchfromNetscapetoInternetExplorerwhenIrunthedemo?
(SeeAnswer)
2.WhatJavamethodshouldIusetosetaprofilevalueonthemiddletier?
(SeeAnswer)
3.WhatisthelistoflocalessupportedbyUIX?
(SeeAnswer)
Answers
1. TheperformanceoftheTutorialJSPsispoorwhenusingNetscape. HowcanIswitchfromNetscapetoInternetExplorerwhenIrunthedemo?
TherearetwoknownproblemswithNetscape:
∙NetscapeconsumessomuchavailableCPUtimepollingforserverresponse,thattheserveractuallydoesn'tgetenoughCPUtimetodotheserver-sideprocessing.
∙Netscapetakesaverylongtimetodealwithembeddedtables,whichareusedabundantlyinUIX.
OAFrameworkiscertifiedagainstNetscape,butfornow,westronglyrecommendtheusageofMicrosoftInternetExplorer(IE)insteadofNetscape.
IfMicrosoftInternetExplorerisyourdefaultbrowser,launchInternetExplorer(IE),thenselectTools/InternetOptions...fromthemenu.SelecttheProgramstabandcheck"InternetExplorershouldchecktoseeifitisthedefaultbrowser".CloseandrestartIE.(BacktoQuestion)
2. WhatJavamethodshouldIusetosetaprofilevalueonthemiddletier?
Youcanusethecall:
webappscontext.getProfileStore().setProfile(name,value);
(BacktoQuestion)
3. WhatisthelistoflocalessupportedbyUIX?
ThelistoflocalessupportedbyUIX,andhenceOAFramework,are:
ar
ar_AE
ar_BH
ar_DZ
ar_EG
ar_IQ
ar_JO
ar_KW
ar_LB
ar_LY
ar_MA
ar_OM
ar_QA
ar_SA
ar_SD
ar_SY
ar_TN
ar_YE
be
be_BY
bg
bg_BG
ca
ca_ES
ca_ES_EURO
cs
cs_CZ
da
da_DK
de
de_AT
de_AT_EURO
de_CH
de_DE
de_DE_EURO
de_LU
de_LU_EURO
el
el_GR
en
en_AU
en_CA
en_GB
en_IE
en_IE_EURO
en_NZ
en_US
en_ZA
es
es_AR
es_BO
es_CL
es_CO
es_CR
es_DO
es_EC
es_ES
es_ES_EURO
es_GT
es_HN
es_MX
es_NI
es_PA
es_PE
es_PR
es_PY
es_SV
es_UY
es_VE
et
et_EE
fi
fi_FI
fi_FI_EURO
fr
fr_BE
fr_BE_EURO
fr_CA
fr_CH
fr_FR
fr_FR_EURO
fr_LU
fr_LU_EURO
hr
hr_HR
hu
hu_HU
is
is_IS
it
it_CH
it_IT
it_IT_EURO
iw
iw_IL
ja
ja_JP
ko
ko_KR
lt
lt_LT
lv
lv_LV
mk
mk_MK
nl
nl_BE
nl_BE_EURO
nl_NL
nl_NL_EURO
no
no_NO
no_NO_NY
pl
pl_PL
pt
pt_BR
pt_PT
pt_PT_EURO
ro
ro_RO
ru
ru_RU
sh
sh_YU
sk
sk_SK
sl
sl_SI
sq
sq_AL
sr
sr_YU
sv
sv_SE
th
th_TH
tr
tr_TR
uk
uk_UA
zh
zh_CN
zh_HK
zh_TW
(BacktoQuestion)
WhatVersionofJdevtousewithOAF
SeeMetalinknote 787209.1
(BacktoQuestion)
Oracle9iJDeveloperandOracle9iJDeveloperOAExtension
Attention:
ThefilesmentionedinsomeoftheseFAQsandanswersrefertodocumentsonWindowsNT.Forexample,T:
\users\fwk\...IfyouareusingLinux,thefilereferencesaredifferent.Forexample,/jdevhome/users/fwk/...FollowingaresomecommondrivelettertranslationsfromNTtoLinux:
J:
=/jdevbin
T:
=/jdevhome
H:
=/home/
Questions
1.Whendebuggingmyproject,mysourcecodeandmyclassesseemtobeoutofsync. (SeeAnswer)
2.WhatisthedifferencebetweenJDEV_HOMEvsJDEV_USER_HOME?
(SeeAnswer)
3.HowdoIenableOAExtensiontorunagainsttheoldAKrepository?
(SeeAnswer)
4.HowdoIenableOAExtensiontorunagainstthenewMDSrepository(xmlfilesonly)?
(SeeAnswer)
5.HowdoIenableOAExtensiontorunagainstthenewMDSrepository(databaserepositoryonly)?
(SeeAnswer)
6.HowdoIenableOAExtensiontorunagainstthenewMDSrepository(xmlfilesanddatabaserepository)?
(SeeAnswer)
7.IsthereastandarddirectoryhierarchytofollowwhensettingupoursourcecodeandJdeveloperprojects?
(SeeAnswer)
8.HowcanItellfromwhichsourceOAExtensionisgettingmyregiondata?
(SeeAnswer)
9.OAExtensionPreviewdoesnotwork.Thelaststatusmessageis"startingpreview"andthelogmessagedisplays"[241]AMPoolMessageBundle(languagebase)beinginitialized". (SeeAnswer)
10.Whycan'tIgetmypagestorendercorrectlyusingNetscapeasmybrowser?
(SeeAnswer)
11.MyJDevelopereditinglayoutisallmessedup.Forexample,thePropertyInspectorisafloatingwindowthatwillnotdock.HowcanIfixthis?
(SeeAnswer)
12.ThescreenpaintinginJDeveloperisveryslowintheTarantellaenvironment.HowcanIimprovetheperformance?
(SeeAnswer)
Answers
1. Whendebuggingmyproject,mysourcecodeandclassesseemtobeoutofsync.
Firstsimplytrytorebuildallyourprojects.Alwaysdosostepbystepandmakesurethefirstprojectcompilescompletelybeforeyoustartcompilingthenextone.Ifthisdoesn'thelp,thentrydeletingallclassesfromyour ..\jdev\myclasses folderandallsubfolders.Afterthat,rebuildallyourprojectsagain.Yoursourcecodeandclassesshouldbeinsyncagain.(BacktoQuestion)
2. WhatisthedifferencebetweenJDEV_HOMEvsJDEV_USER_HOME?
JDEV_HOMEisanenvironmentvariableusedbyJDeveloper3.2.3andprior.JDEV_USER_HOMEisanewenvironmentvariableusedbyJDeveloper9i.YoumustdefineaJDEV_USER_HOMEinordertorunJDeveloper9iproperly.JDEV_USER_HOMEshouldpointto:
T:
\users\\jdev
(BacktoQuestion)
3. HowdoIenableOAExtensiontorunagainsttheoldAKrepository?
Modifyingyourenv.txtfiletohaveonlythefollowingline:
FND_TOP=T:
\\users\\dbc_files
Alternatively,youcanhavethefollowingthreelines,wheretheapplicationyouwanttorunagainstAKislistedintheJRAD_APPSlineprecededbyaminussign(-),asshownfortheFNDapplicationbelow:
FND_TOP=T:
\\users\\dbc_files
JRAD_XML_PATH=T:
\\users\\\\jdev\\myprojects
JRAD_APPS=ak;-fnd;dem;icx
TheminussignforcesJDevelopertorunagainsttheAKrepositoryforthatapplication.(BacktoQuestion)
4. HowdoIenableOAExtensiontorunagainstthenewMDSrepository(xmlfilesonly)?
Thiscannolongerbedone.NowOAExtensionsearchesfortheregionXMLfileonyourharddriveasdefinedbytheexistenceofMDSXMLPATH=in Project->ProjectSettings->OracleApplications.IfOAExtensionfailstolocatetheregionXMLfileasdefinedby MDSXMLPATH thenOAExtensionproceedstolookfortheregionsintheMDSrepository.TheMDSrepositoryexistsinthedatabasewhichisdefinedbyyourdbcfilein Project->ProjectSettings->OracleApplications->RuntimeConnection.ThismeansthatthereisnowaytosearchforregionXMLfilesexclusivelyfromyourharddrive.(BacktoQuestion)
5. HowdoIenableOAExtensiontorunagainstthenewMDSrepository(databaserepositoryonly)?
IfOAExtensionfailstolocatetheregionXMLfileasdefinedby MDSXMLPATH in Project->ProjectSettings->OracleApplications,thenOAExtensionproceedstolookfortheregionsintheMDSrepository.TheMDSrepositoryexistsinthedatabasewhichisdefinedbyyourdbcfilein Project->ProjectSettings->OracleApplications->RuntimeConnection.
AddingyourapplicationshortnameforcesOAExtensiontousetheMDSrepositoryinsteadoftheAKrepository.(BacktoQuestion)
6. HowdoIenableOAExtensiontorunagainstthenewMDSrepository(xmlfilesanddatabaserepository)?
ThesettingsthatdefinewhatOAExtensionrunsagainstaredefinedin Project->ProjectSettings->OracleApplications andProject->ProjectSettings->OracleApplications->RuntimeConnection.OAExtensionfirstchecksthatyourapplicationshortnameislisted.Ifitis,OAExtensionattemptstolocatetheregionXMLfileinthedirectorylocationspecifiedby MDS XMLPATH.IftheregionXMLfilecannotbefoundinthatlocationthenOAExtensionfailsovertotheMDSrepository.TheMDSrepositoryexistsinthedatabasedefinedbyyourdbcfile.(BacktoQuestion)
7. IsthereastandarddirectoryhierarchytofollowwhensettingupmysourcecodeandJDeveloperprojects?
Yes,makesuretofollowthestandarddirectoryhierarchyforsettingupyourworkingdirectory:
T:
\users\\jdev\myprojects|myhtml|myclasses|system<#>
(BacktoQuestion)
8. HowcanItellfromwhichsourceOAExtensionisgettingmyregiondata?
IfyourregionsareobtainedfromOAExtensionXMLfiles,youshouldseemessagesofthefollowingformatinyouroutputwindow:
AccessingFileSystemfor/oracle/apps///
(BacktoQuestion)
9. OAExtensionPreviewdoesnotwork.Thelaststatusmessageis"startingpreview"andthelogmessagedisplays"[241]AMPoolMessageBundle(languagebase)beinginitialized".
Removeyourclassesandperformacleanrebuild.IfOAExtensioncannotfindaBC4JmodulelikeAM/VO,thiserroristhrown.(BacktoQuestion)
10. Whycan'tIgetmypagestorendercorrectly