在数据表中创建可编辑的行 [英] Make editable rows in Datatable

查看:95
本文介绍了在数据表中创建可编辑的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在屏幕上显示了行列表.这些行使用JSF数据表组件进行迭代.现在,我的要求是编辑用户单击的任何特定行.

I have list of rows displayed on the screen. These rows are iterated using the JSF datatable component. Now my requirement is to edit any particular row which user clicked.

在用户单击行时,是否有任何方法可以使字段可编辑.然后,用户将填写详细信息并保存.

Is there any way to make the fields editable while user clicking the row. Then user will fill the details and save it.

任何建议将不胜感激.

推荐答案

使用jsf创建可编辑数据表非常容易. 这是一个很好的教程.但是,开箱即用不支持在用户单击时使其可编辑".这就是JSF的亮点,您只需找到与您的JSF(1.x或2.x)版本兼容的JSF组件(开放源代码或商业版本)并开始使用它即可.

Creating editable data tables is very easy with jsf. Here is a good tutorial on this. But "making it editable when user clicks on it" is not supported out of the box. And this is where JSF shines, you just need to find for a JSF component (open source or commercial) compatible with your JSF (1.x or 2.x) version and start using it.

我对您的第一个建议是检查并查看PrimeFaces是否提供此类组件. 此处是您要查找的组件.

My first suggestion for you is to check and see if PrimeFaces provides this kind of component. Here is the component you are looking for.

这篇关于在数据表中创建可编辑的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆