You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org> on 2007/10/04 18:29:50 UTC
[jira] Created: (TAPESTRY-1807) Default buttons for forms
Default buttons for forms
-------------------------
Key: TAPESTRY-1807
URL: https://issues.apache.org/jira/browse/TAPESTRY-1807
Project: Tapestry
Issue Type: New Feature
Components: Core Components, Framework
Affects Versions: 4.1.3
Reporter: Andreas Andreou
Fix For: 4.1.4
This is to simplify handling of the ENTER key and will allow specifying which button
should get 'clicked' - it can even apply to form sub-regions.
Implementation details:
<div onkeydown="return fireDefaultButton(event, 'derfaultButtonId')">...</div>
function fireDefaultButton(event, target) {
if (event.keyCode == 13 && !(event.srcElement && (event.srcElement.tagName.toLowerCase() == "textarea"))) {
// handle button click
}
}
--
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
Re: [jira] Created: (TAPESTRY-1807) Default buttons for forms
Posted by kammerhofer <mi...@kammerhofer.net>.
In your post there´s the
>
> // handle button click
>
>
but I don´t get the correct Java-Path for calling my own methods there...
Please post an example instead of
>
> // handle button click
>
>
where you call your own method in a package and class.
Please.
--
View this message in context: http://tapestry.1045711.n5.nabble.com/jira-Created-TAPESTRY-1807-Default-buttons-for-forms-tp2462467p5071096.html
Sent from the Tapestry - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-1807) Default buttons for forms
Posted by "Marcus Schulte (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marcus Schulte updated TAPESTRY-1807:
-------------------------------------
Fix Version/s: (was: 4.1.6)
4.1.7
> Default buttons for forms
> -------------------------
>
> Key: TAPESTRY-1807
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1807
> Project: Tapestry
> Issue Type: New Feature
> Components: Core Components, Framework
> Affects Versions: 4.1.3
> Reporter: Andreas Andreou
> Fix For: 4.1.7
>
>
> This is to simplify handling of the ENTER key and will allow specifying which button
> should get 'clicked' - it can even apply to form sub-regions.
> Implementation details:
> <div onkeydown="return fireDefaultButton(event, 'derfaultButtonId')">...</div>
> function fireDefaultButton(event, target) {
> if (event.keyCode == 13 && !(event.srcElement && (event.srcElement.tagName.toLowerCase() == "textarea"))) {
> // handle button click
> }
> }
--
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-1807) Default buttons for forms
Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jesse Kuhnert updated TAPESTRY-1807:
------------------------------------
Fix Version/s: (was: 4.1.5)
4.1.6
> Default buttons for forms
> -------------------------
>
> Key: TAPESTRY-1807
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1807
> Project: Tapestry
> Issue Type: New Feature
> Components: Core Components, Framework
> Affects Versions: 4.1.3
> Reporter: Andreas Andreou
> Fix For: 4.1.6
>
>
> This is to simplify handling of the ENTER key and will allow specifying which button
> should get 'clicked' - it can even apply to form sub-regions.
> Implementation details:
> <div onkeydown="return fireDefaultButton(event, 'derfaultButtonId')">...</div>
> function fireDefaultButton(event, target) {
> if (event.keyCode == 13 && !(event.srcElement && (event.srcElement.tagName.toLowerCase() == "textarea"))) {
> // handle button click
> }
> }
--
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-1807) Default buttons for forms
Posted by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Andreou updated TAPESTRY-1807:
--------------------------------------
Fix Version/s: (was: 4.1.4)
4.1.5
> Default buttons for forms
> -------------------------
>
> Key: TAPESTRY-1807
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1807
> Project: Tapestry
> Issue Type: New Feature
> Components: Core Components, Framework
> Affects Versions: 4.1.3
> Reporter: Andreas Andreou
> Fix For: 4.1.5
>
>
> This is to simplify handling of the ENTER key and will allow specifying which button
> should get 'clicked' - it can even apply to form sub-regions.
> Implementation details:
> <div onkeydown="return fireDefaultButton(event, 'derfaultButtonId')">...</div>
> function fireDefaultButton(event, target) {
> if (event.keyCode == 13 && !(event.srcElement && (event.srcElement.tagName.toLowerCase() == "textarea"))) {
> // handle button click
> }
> }
--
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org