Make editable strings in datatable

I have a list of lines displayed on the screen. These lines are repeated using the JSF datatable component. Now my requirement is to edit any specific line that the user clicked.

Is there a way to make editable fields when the user clicks on a row. Then the user will fill in the details and save them.

Any suggestions would be appreciated.

+3
source share
1 answer

Creating editable data tables is very easy with jsf. Here is a good tutorial about this. But “making it editable when the user clicks on it” is not supported out of the box. And here the JSF shines, you just need to find a JSF component (open or commercial) that is compatible with your version of JSF (1.x or 2.x) 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.

+3
source

Source: https://habr.com/ru/post/1782158/


All Articles