[richfaces-issues] [JBoss JIRA] Updated: (RF-6864) a4j:commandButton is "button" instead of "submit" by default

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Tue Apr 21 12:19:22 EDT 2009


     [ https://jira.jboss.org/jira/browse/RF-6864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Belaevski updated RF-6864:
-------------------------------

          Component/s: component
        Fix Version/s: 4.0.0.BETA1
    Affects Version/s: 3.3.1
             Assignee: Alexander Smirnov


I think we should review this issue for 4.0

> a4j:commandButton is "button" instead of "submit" by default
> ------------------------------------------------------------
>
>                 Key: RF-6864
>                 URL: https://jira.jboss.org/jira/browse/RF-6864
>             Project: RichFaces
>          Issue Type: Bug
>          Components: component
>    Affects Versions: 3.3.1
>            Reporter: David Schlotfeldt
>            Assignee: Alexander Smirnov
>             Fix For: 4.0.0.BETA1
>
>
> The documentation here
> http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/tlddoc/index.html
> Says the default value for "type" is "submit". Its actual "button".
> See http://anonsvn.jboss.org/repos/richfaces/trunk/ui/core/src/main/java/org/ajax4jsf/renderkit/AjaxCommandRendererBase.java
> Look at the getType() method.
> The documentation is as it should be. The default should be changed to be "submit" (don't change the documentation). Two reasons:
> - the default for h:commandButton is submit
> - if you have a a4j:commandButton and h:commandButton when you hit enter in a textfield you expect the first submit button to be used. When you use a4j:commandButton curently they are "button" elements not "submit" so they aren't considered. (at least by firefox) it will skip the "button" and use the first "submit".
> Thanks,
> David

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

        



More information about the richfaces-issues mailing list