Hi Ben, 

Check 
http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Form.html
 autofocus parameter. 


Thanks, 
Peter 

----- Original Message -----

From: "Peter Hvass" <p.hv...@albourne.com> 
To: "Tapestry users" <users@tapestry.apache.org> 
Sent: Monday, 20 May, 2013 5:56:47 PM 
Subject: Re: Annoying scroll when a zone is updated 

Hi Ben, 


Do you have any form fields in the zone? Those will steal focus (causing a 
'jump' in scroll location) unless you specify autofocus="false" on the form. 


Thanks, 
Peter 

----- Original Message ----- 

From: "Ben Titmarsh" <ben.titma...@hotmail.co.uk> 
To: users@tapestry.apache.org 
Sent: Monday, 20 May, 2013 4:41:11 PM 
Subject: Annoying scroll when a zone is updated 

Hi All, 

I have a grid and a form inside a zone. The grid can contain hundreds of rows 
and values can be updated with Ajax resulting in a zone refresh. I have a bit 
of a UX problem in that when the user changes a value in the grid, the zone is 
refreshed and the browser scrolls back up to the top of the zone. Clearly if 
you want to update lots of rows, losing the context of where you were in the 
grid is a real frustration. 

Any suggestions on a solution for this? 

Thanks, 
Ben. 




Reply via email to