简体   繁体   English

在Oracle ADF中自定义业务组件

[英]Customize a Business Component in Oracle ADF

Is it possible to customize a Business Component (jpx) in oracle ADF ? 是否可以在oracle ADF自定义Business Component (jpx)

My problem is: 我的问题是:

I'm doing a customization project and I need to access a view object from another project. 我正在做一个customization project ,我需要从另一个项目访问一个view object

What I was trying was to customize the Business Component , importing my Reusable jar into it so I could access the other Business Component . 我尝试的是自定义Business Component ,将我的Reusable jar导入其中,以便我可以访问其他Business Component

Whenever I do this I get the following error: 每当我这样做时,我会收到以下错误:

Error saving XML files - testUiModel

JBO-29000: Unexpected exception caught:
oracle.bali.xml.model.XmlDomCommitException, msg=MDS-00017:
Customization instruction generated for
"adf/test/testUiModel.jpx" uses local reference(s):
"(xmlns(mds_n1=http://xmlns.oracle.com/bc4j))
/mds_ns1:JboProject/mds_ns1:AppContainee[3]/mds_ns1:DesignTime" which is not upgrade safe.

Exception: oracle.jbo.JboException

I am not 100% on this one, but I would say this is not possible. 我不是100%在这一个,但我会说这是不可能的。

But if you use the SAME EO and VO packages as the original JPX, you won't be needing this customisation. 但是,如果您使用SAME EO和VO包作为原始JPX,则不需要此自定义。 Customisation of the application module should be able to pick up your components automatically. 应用程序模块的自定义应该能够自动获取组件。

You, the person receiving the shared jar file, cannot edit BC components that are shared via JAR files. 您(接收共享jar文件的人)无法编辑通过JAR文件共享的BC组件。 You can build new BC components based on the shared jar contents, but the user of the shared jar cannot edit it. 可以根据共享jar内容构建新的BC组件,但共享jar的用户无法对其进行编辑。 I second Florin's comment, and add:Consider putting all the EOs into one project and share that, then have the individual developers responsible for designing/developing a given use case used that shared EO library to build the specific VOs and Ams for their use case. 我对Florin的评论进行了第二次评论,并补充一点:考虑将所有EO放入一个项目并分享,然后让负责设计/开发给定用例的各个开发人员使用共享EO库来为他们的用例构建特定的VO和Ams 。 Also, Common VOs - like LOVs can be shared as well. 此外,也可以共享常见的VO(如LOV)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM