[ 
https://issues.apache.org/jira/browse/TAP5-650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13084718#comment-13084718
 ] 

Hudson commented on TAP5-650:
-----------------------------

Integrated in tapestry-trunk-freestyle #479 (See 
[https://builds.apache.org/job/tapestry-trunk-freestyle/479/])
    TAP5-650 Enhance form autofocus to accept fieldname as a value

Actually a new mixin is used to bind to the Field from the Form which will 
receive the focus
The most difficult part was to find a reliable way for Selenium to get the 
current focused HTML element

mlusetti : 
http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1157371
Files : 
* 
/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/mixins/FormFieldFocus.java
* 
/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/Index.java
* /tapestry/tapestry5/trunk/tapestry-core/src/test/app1/FormFieldFocusDemo.tml
* 
/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/FormFieldFocusDemo.java
* 
/tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/FormFieldFocusTest.groovy


> Enhance form autofocus to accept fieldname as a value
> -----------------------------------------------------
>
>                 Key: TAP5-650
>                 URL: https://issues.apache.org/jira/browse/TAP5-650
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.1.0.3
>            Reporter: Kalle Korhonen
>            Assignee: Massimo Lusetti
>            Priority: Minor
>             Fix For: 5.3
>
>
> It's not difficult to set autofocus=false and add $('myField').activate(); 
> yourself, but I think it would address many of the issues people are having 
> with autofocus if the parameter would also accept a field name instead of 
> simply a boolean value so you can set the focus to field you like.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to