You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Musachy Barroso (JIRA)" <ji...@apache.org> on 2007/06/12 17:13:41 UTC

[jira] Commented: (WW-1350) Autofocus first enabled field on a form

    [ https://issues.apache.org/struts/browse/WW-1350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41226 ] 

Musachy Barroso commented on WW-1350:
-------------------------------------

I think adding a "focusElement" attribute to the form tag is enough, that attribute will have the id of the element to be focused, all this will require is executing a simple script when the page loads, am I missing some use case? (I like to keep things simple, sometimes too simple :) )

> Autofocus first enabled field on a form
> ---------------------------------------
>
>                 Key: WW-1350
>                 URL: https://issues.apache.org/struts/browse/WW-1350
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Views
>            Reporter: Ted Husted
>            Assignee: Musachy Barroso
>            Priority: Minor
>             Fix For: 2.1.0
>
>
> The SAF2 UI tags do not support identifying a field to focus. In SAF1, this is done with a little Javascript. For SAF2, we migth consider using a different Javascript [1] that automatically seeks the first enabled field on the first form. Implementing the feature implies access to the body tag. 
> References: 
> [1] http://www.codeproject.com/jscript/FocusFirstInput.asp
> [2] http://forums.opensymphony.com/thread.jspa?messageID=67350&#67350

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.