[
https://issues.apache.org/jira/browse/TAPESTRY-909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12567165#action_12567165
]
Andreas Andreou commented on TAPESTRY-909:
------------------------------------------
I've run into something that - I had a rather big form and when ajax updating a
part of it, the
page would scroll up to the top!
As you describe, the reason was that it would give focus to the first element
of the form - way far
from the updated area...
> Make AbstractFormComponent.getCanTakeFocus() public instead of private
> ----------------------------------------------------------------------
>
> Key: TAPESTRY-909
> URL: https://issues.apache.org/jira/browse/TAPESTRY-909
> Project: Tapestry
> Issue Type: Improvement
> Components: Framework
> Affects Versions: 4.0.1
> Reporter: Leonardo Quijano Vincenzi
> Priority: Minor
> Fix For: 4.1.6
>
>
> For Ajax-style requests or special form focus processing, sometimes it's
> needed to focus an element in a non-standard way. For example, when updating
> a section of the document using ajax semantics, one would like to set the
> focus on the first component in that section.
> Now, a possible solution is to iterate over the components of the parent
> element, and focus on the first "focusable" element of that list. But there's
> no way to tell if a component is capable of receiving focus, so this change
> could allow this and other similar uses.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]