3

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.

Krishna
  • 7,154
  • 16
  • 68
  • 80

1 Answers1

3

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.

Aravind Yarram
  • 78,777
  • 46
  • 231
  • 327
  • Thank you for the answer. Is PrimeFaces good. I want to know if it is better than RichFaces and IceFaces. Please let me know. – Krishna Dec 26 '10 at 12:40
  • 1
    I have worked with rich faces, trinidad etc but not icefaces. PrimeFaces is the winner. – Aravind Yarram Dec 26 '10 at 12:43
  • What inspire you to suggest the prime faces. Can you please put down few points. – Krishna Dec 26 '10 at 13:10
  • Very good out of the box component and theme support, fast, frequent releases, good support in the forum, i believe 1st one to implement jsf 2, check here for more: http://stackoverflow.com/questions/3402952/richfaces-vs-primefaces – Aravind Yarram Dec 26 '10 at 18:25