开发者

Make editable rows in Datatable

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.

Any suggestions would be appreciated.


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.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜