使用 jsf 的网格表单布局(Jdeveloper 和 ADF)
我正在尝试构建 6x6 网格布局。在每个单元格中,都会有一个输入复选框。我想以“连续方式”将复选框绑定到我的支持 bean...意思是,我希望能够迭代复选框以查看它们是否被选中。基本上,必须有一个底层数据模型。例如,您可以将数据控制面板中的任何项目作为表格拖放。然后在我的应用程序模块中,我可以在保存到数据库之前根据需要修改视图对象。现在,如果我有一个包含 36 行和两列的表(一列是 Id,一列是数字(1 或 0))。我想拖动该表并作为网格放置,这将使用户能够通过选择或“取消选择”复选框来更新每一行。
I am trying to build a 6x6 grid layout. In each cell, there will be an input check box. I want to bind the checkboxes to my backing bean in a "consecutive fashion"...meaning, I would like to be able to iterate over the checkboxes to see whether they are checked or not. Basically, there must be an underlying data model. For example, you can drag over and drop off as a table, any item in the data control palette. Then in my application module, I can modify the view object as I wish before I save to the database. Now if I have a table with 36 rows and two columns (one is Id, one is Numeric (1 or 0)). I would like to drag over that table and drop off as a Grid that will enable a user to update each of the rows by selecting or 'un-selecting' a checkbox.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用 for 或 Iterator 组件。它们迭代一些数组/集合并重复这些组件中包含的元素。您可以检查Oracle如何做动态表(当您将视图对象实例从应用程序模块拖到页面时,选择动态表选项)来了解和了解。
尝试 :
http://jobinesh.blogspot.com/2010/06 /model-driven-approach-for-building.html
http://blogs.oracle.com/shay/2010/10/adf_faces_dynamic_tags_-_for_a.html
也尝试使用“动态表单adf”进行谷歌
Try to use for each or Iterator component. They iterate over some array/collection and repeat elements enclosed within those components. You can check how Oracle does Dynamic Table (when you drag view object instance from application module to a page, choose dynamic table option) to get and idea.
try :
http://jobinesh.blogspot.com/2010/06/model-driven-approach-for-building.html
http://blogs.oracle.com/shay/2010/10/adf_faces_dynamic_tags_-_for_a.html
also try google with "dynamic form adf"