|
From: <tri...@us...> - 2008-12-01 14:56:10
|
Revision: 877
http://equanda.svn.sourceforge.net/equanda/?rev=877&view=rev
Author: triathlon98
Date: 2008-12-01 14:56:06 +0000 (Mon, 01 Dec 2008)
Log Message:
-----------
EQ-298 assure focus is set by formtraversal and not tapestry form
Modified Paths:
--------------
trunk/equanda-maven-plugin/src/main/resources/archetype-resources/gui/src/main/resources/components/Layout.tml
trunk/equanda-tapestry5/src/site/wiki/formtraversal.wiki
Modified: trunk/equanda-maven-plugin/src/main/resources/archetype-resources/gui/src/main/resources/components/Layout.tml
===================================================================
--- trunk/equanda-maven-plugin/src/main/resources/archetype-resources/gui/src/main/resources/components/Layout.tml 2008-11-26 15:16:09 UTC (rev 876)
+++ trunk/equanda-maven-plugin/src/main/resources/archetype-resources/gui/src/main/resources/components/Layout.tml 2008-12-01 14:56:06 UTC (rev 877)
@@ -50,7 +50,7 @@
<div id="layout-info"><t:delegate to="sidebar"/></div>
<div>
- <t:form><div t:id="formSupport">
+ <t:form autofocus="false"><div t:id="formSupport">
<div id="layout-main">
<t:equanda.ValidationTrackerDelegate/>
<t:errors/>
Modified: trunk/equanda-tapestry5/src/site/wiki/formtraversal.wiki
===================================================================
--- trunk/equanda-tapestry5/src/site/wiki/formtraversal.wiki 2008-11-26 15:16:09 UTC (rev 876)
+++ trunk/equanda-tapestry5/src/site/wiki/formtraversal.wiki 2008-12-01 14:56:06 UTC (rev 877)
@@ -13,6 +13,14 @@
<span t:type="equanda/FormTraversal"/>
{code}
+To assure the first item on the focus receives focus (as controlled by this component), you need to turn off the tapestry built-in autofocus behaviour.
+This can be done by definint your form like this.
+{code}
+<t:form autofocus="false">
+ ....
+</t:form>
+{code}
+
The exact behaviour is influenced by the class on the elements.
- defaultSubmit : the first element which can be found with this class is "clicked on" when the user presses ctrl-enter.
- eqTravSkip : any element marked with this class never receives focus (skip)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|