On Wed, 01 Jun 2005 17:53:49 +0200, Slawek <[EMAIL PROTECTED]> wrote :

> check what is executed first: sort method or checkbox setters...
> 
> btw: im using my_own_client_side_java_script_sort_stuff. on p4 2.8GHz it 
> sorts and rerenders 10x100 table in 1 second. if someone would like to 
> save server power and use client power to perferm sorting on "not big" 
> tables i can share my script (not elegant but works;)
> 
> slawek
> 
> > I have an x:dataTable which presents a row of results from a database 
> > each
> > with a checkbox.  If I sort on a column in the database after selecting a
> > checkbox the checkbox does not also sort relative to the sorted column.  
> > For
> > example, if I check the first checkbox and then sort the column 
> > descending
> > the first checkbox is still checked, not the last.  I guess I need to 
> > link
> > the checkbox with the row somehow but I'm not sure how.   Any 
> > suggestions,
> > tips would be appreciated.
> >
> > Thanks,
> > -Mark
> >
> 


The checkbox setters would get executed first because they have
onchange="submit()" attribute.  I've also noticed that the checkboxes do not
stay checked when paging with a dataScroller, this may be related, though
I'm not quite sure how, just feels like it.  I'm thinking that the arrayList
that backs the dataTable is not being saved before paging and/or sorting?  I
though this was inherit in the component?

Any clarifications on any of this would be appreciated.

Also, I would be interested in seeing your sort script.

Thanks,
-Mark

Reply via email to