views:

85

answers:

0

Following on from here, I need to have an inline editable grid in my web application using RichFaces 3.3.3, JSF 1.2 and Facelets.

My options are the rich:dataTable RichFaces control, or the jQuery plugin, jQGrid

I have tried both and found the following so far:

  1. jQGrid works really well, but I am not sure what will happen if I try to refresh JSF controls from the grid, if that's possible?
  2. I am hesitant to use or trigger RichFaces modal windows from the jQGrid, can this cause problems? Or should I stick to plain jQuery modals?
  3. to be safe using the jQGrid it looks like I have to do a lot of my own plumbing, losing the benefits of richfaces controls? Am I right?
  4. rich:dataTable does not have a scrollable table with the headers fixed. richfaces has a scrollable table, but making that support inline editing has issues. (Headers dissapear, and editing does not work properly)
  5. rich:dataTable is not very customizable and is missing some very nice to have features that jqGrid has
  6. rich:dataTable has some issues that seem unresolvable or will need js hacking (eg. making a row editable on single click instead of the default double click causes issues if you use a calendar control inside the editable row, one click inside the calendar control fires an edit event again on the row making you lose your changes in other fields).

In addition to some of the questions above, I would like to know what are the pros, cons of each, and what approach would be easier to maintain and extend and complete in the long run.