-
1. Re: dataTable sorting and form inputs
eicki May 13, 2008 3:07 PM (in response to andrei_123)Try a4j:region around your datatable.
-
2. Re: dataTable sorting and form inputs
ilya_shaikovsky May 14, 2008 3:45 AM (in response to andrei_123)build your own sorting (external sorting example)
Yes out-of-the-box version has this behaviour. -
3. Re: dataTable sorting and form inputs
brachie Nov 11, 2008 6:59 AM (in response to andrei_123)Hi,
we have a serious problem with this out-of-the-box behaviour (the values of the input-fields in the table-rows are submitted when sorting the table).
The problem is: When the user clicks really fast (e.g. double click) on a column header to sort the table, the input fields (combo boxes) are submitted immediately and hibernate updates the data in the database (even though no input field was changed in the table!).
Even worse after the update, the assignments of the input-fields to the table rows are totally messed up!!
Is there really no way to make the sorting ajaxSingle or at least prevent doubleclicking on a column-header? Besides, I think this is a really problem which makes the richfaces:datatable unuseable for us :(
Regards,
Alexander -
4. Re: dataTable sorting and form inputs
ilya_shaikovsky Nov 11, 2008 7:15 AM (in response to andrei_123)Built-in sorting could not satisfy all the developers for sure. Just use external sorting in order to get full control under the sorting. Example at livedemo.
-
5. Re: dataTable sorting and form inputs
brachie Nov 11, 2008 9:11 AM (in response to andrei_123)Hi,
ok thanks. I implemented external sorting now and put the sorting links in the column headers with ajaxSingle="true" :)