You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2008/03/20 00:00:28 UTC

[jira] Commented: (TAPESTRY-1757) HTML Button component with Form support

    [ https://issues.apache.org/jira/browse/TAPESTRY-1757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12580602#action_12580602 ] 

Howard M. Lewis Ship commented on TAPESTRY-1757:
------------------------------------------------

I'm going to have to think about this patch for a bit.

I don't think that a <button> element is quite a field, though it does have a control name as well as a client id.  I may introduce an additional interface for this distinction.

A fuller solution would provide something people have wanted; a way to submit a form but cancel the form submission i.e., bypass client and server side validation and trigger a different event on the server.

Since <button>s are most often used for client-side logic, making it easier to associate JavaScript with the Button seems worthwhile.

> HTML Button component with Form support
> ---------------------------------------
>
>                 Key: TAPESTRY-1757
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1757
>             Project: Tapestry
>          Issue Type: New Feature
>          Components: tapestry-core
>    Affects Versions: 5.0.6
>         Environment: Anyone
>            Reporter: Massimo Lusetti
>            Assignee: Howard M. Lewis Ship
>         Attachments: patch
>
>
> This patch supply the component for HTML 4 button element (<button>) with Form support when the button type is "submit" which is the default and act as the Submit component.
> Button elements are preferable over Submit in terms of flexibility and CSS-awarness.
> The code needs to be cleaned an i happily do that if there's enough interest in it.
> The patch contain unit and integration tests.

-- 
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