Krishna
Krishna

Reputation: 7294

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.

Upvotes: 3

Views: 10397

Answers (1)

Aravind Yarram
Aravind Yarram

Reputation: 80176

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.

Upvotes: 3

Related Questions