简体   繁体   English

在Oracle BPM Jdeveloper 12c中的ADF表单中填充下拉列表

[英]Populating drop-down lists in ADF Forms in Oracle BPM Jdeveloper 12c

We're currently in the middle of the migration of a BPM application from Oracle 10g to 12c. 目前,我们正在将BPM应用程序从Oracle 10g迁移到12c。 As we know, some of the 10g libraries were dropped in the newer versions. 众所周知,某些10g库已被删除在较新的版本中。 Unfortunately, our application depends largely on those deprecated features. 不幸的是,我们的应用程序很大程度上取决于那些不推荐使用的功能。

One particular problem were having now is how to populate drop-down lists from an existing payload in the migrated Human Task. 现在存在的一个特殊问题是如何从已迁移的人工任务中现有的有效负载中填充下拉列表。 In the 10g version of the project, AJAX was used to retrieve these values from the database. 在该项目的10g版本中,使用AJAX从数据库中检索这些值。 Once we auto-generated the jspx(including simple components as textboxes and date fields) from the Human Task, we tried using an approach wherein we tried to create JSF managed beans that retrieve the values from the database, then bind that bean to the dropdown component via Expression Builder. 从人工任务自动生成jspx(包括文本框和日期字段等简单组件)后,我们尝试使用一种方法,其中尝试创建JSF托管Bean,该Bean从数据库中检索值,然后将该Bean绑定到下拉列表中。组件通过表达式生成器。 It doesn't seem to work though. 它似乎不起作用。 We were thinking of using the AJAX jsf tag within the generated jspx, but I saw a thread here that discourages doing that. 我们正在考虑在生成的jspx中使用AJAX jsf标记,但是我在这里看到一个不鼓励这样做的线程。

Is there an alternative way of implementing this? 是否有实现此目的的替代方法?

Which type of field are you using? 您使用哪种类型的字段? Specific ADF Faces components might require specific structures for managed beans. 特定的ADF Faces组件可能需要托管bean的特定结构。 I would suggest checking the ADF Faces components demo source code for examples of such beans. 我建议检查ADF Faces组件演示源代码以获取此类bean的示例。 Also if your data for the list is coming from a database - you might find this approach easier: https://blogs.oracle.com/shay/entry/adding_lov_to_non_database 另外,如果列表中的数据来自数据库-您可能会发现此方法更容易: https : //blogs.oracle.com/shay/entry/adding_lov_to_non_database

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

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