简体   繁体   English

使用弹出面板编辑JSF数据表

[英]JSF Datatable Edit Using Popup Panel

I am using JSF 1.1 with Icefaces 1.8.2 我正在使用JSF 1.1和Icefaces 1.8.2

I have datatables which displays my database records.Currently when user wishes to insert or edit a record, edit button is clicked and edit form or creating form is either displayed at the bottom of datatable or in a separate page. 我有数据表显示我的数据库记录。目前,当用户希望插入或编辑记录时,单击编辑按钮并编辑表单或创建表单显示在数据表的底部或单独的页面中。 Ideally I would like to display in the edit form or create form just on top of datatable like a panel popup like in the following URL. 理想情况下,我想在编辑表单中显示或在数据表顶部创建表单,如下面的URL中的面板弹出窗口。 http://postimage.org/image/pglvdcck/ http://postimage.org/image/pglvdcck/

How can I do this using JSF or with icefaces? 我怎么能用JSF或icefaces做到这一点?

Any insight into this is highly appreciable. 对此的任何见解都是非常值得注意的。

Thanks 谢谢

You need to use ICEFaces component ice:panelPopup. 你需要使用ICEFaces组件ice:panelPopup。 Look it up in ICEFaces Demos - Layout panels - Popup panel. ICEFaces演示 - 布局面板 - 弹出面板中查找。

Example - add this to your source (anywhere in the page really, even in a separate included file): 示例 - 将此添加到您的源(页面中的任何位置,即使在单独的包含文件中):

<ice:panelPopup modal="true" visible="#{myBean.editPopupVisible}">
  <ice:form>
    <ice:input...> some inputs...
    ... Save/Cancel button
  </ice:form>
</ice:panelPopup>

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

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