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)" <ta...@jakarta.apache.org> on 2005/10/29 22:40:00 UTC

[jira] Resolved: (TAPESTRY-706) Button component should deprecate "label" parameter, and use informal "value" instead

     [ http://issues.apache.org/jira/browse/TAPESTRY-706?page=all ]
     
Howard M. Lewis Ship resolved TAPESTRY-706:
-------------------------------------------

    Resolution: Invalid

There's a difference between an HTML <input type='submit"> and an HTML <button>.  I believe what Button is doing is correct; the point of Button is that you can wrap it around arbitrary text and markup and all of that becomes the button ... but you need to add JavaScript for that button to actually do anything (as opposed to a submit, which will submit the enclosing form).

> Button component should deprecate "label" parameter, and use informal "value" instead
> -------------------------------------------------------------------------------------
>
>          Key: TAPESTRY-706
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-706
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>  Environment: 4.0-beta-11
>     Reporter: Vjeran Marcinko
>     Assignee: Howard M. Lewis Ship

>
> Button component should deprecate "label" parameter, and use informal "value" instead. Same as Submit component.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


Re: [jira] Resolved: (TAPESTRY-706) Button component should deprecate "label" parameter, and use informal "value" instead

Posted by Oliver Lietz <ta...@oliverlietz.de>.
Am Samstag, 29. Oktober 2005 22:40 schrieb Howard M. Lewis Ship (JIRA):
>      [ http://issues.apache.org/jira/browse/TAPESTRY-706?page=all ]
>
> Howard M. Lewis Ship resolved TAPESTRY-706:
> -------------------------------------------
>
>     Resolution: Invalid
>
> There's a difference between an HTML <input type='submit"> and an HTML
> <button>.  I believe what Button is doing is correct; the point of Button
> is that you can wrap it around arbitrary text and markup and all of that
> becomes the button ... but you need to add JavaScript for that button to
> actually do anything (as opposed to a submit, which will submit the
> enclosing form).

You can set button's type attribute to "submit" or "reset" instead of "button" 
- so you don't need JavaScript.

Oliver



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org