Re: Finding an object in a dataTable

2006-12-08 Thread Steve S
David Chandler learnjsf.com> writes: > > > Steve, thanks for posting the JS. I don't do much of it, but what you said about walking the DOM to compute the offset seems most plausible. You could use a hidden field to hold the unique ID of the selected item (perhaps the bank name?), put an id att

Re: Finding an object in a dataTable

2006-12-08 Thread Steve S
David Chandler learnjsf.com> writes: > > > Sounds like you need the id in the hidden field to be consistent both before and after sort, which it isn't if you're using a row index (1,2,3...) Could you instead put in the hidden field a unique property of the object in each row so that it would

Finding an object in a dataTable

2006-12-06 Thread Steve S
I have a dataTable with many rows. Using CSS, I've made a scrolling table. I have a hidden field that contains the index of the currently selected object, and when the page loads, it scrols down to that item if it isn't in the visible part of the scrolling table. I would like to have myfaces com