You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "ChenShen (JIRA)" <ji...@apache.org> on 2008/05/05 09:49:05 UTC

[jira] Created: (WW-2629) using type="button" can not handle multiple method

<s:submit> using type="button" can not handle multiple method
-------------------------------------------------------------

                 Key: WW-2629
                 URL: https://issues.apache.org/struts/browse/WW-2629
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.0.11
            Reporter: ChenShen


In a from,I use two <s:submit> tag like this:
<s:submit id="ggg1" method="save" value="TestOther" type="button"></s:submit>
<s:submit id="yyy" method="saveother" value="yyy" type="button"></s:submit>
I want to button can call different method of action, but actually the framework can not handle multiple method call in one form,it always call the same method. But if you using default type, it can handle this.
Is it a bug?


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WW-2629) using type="button" can not handle multiple method

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso resolved WW-2629.
---------------------------------

    Resolution: Not A Problem

Please ask this question on the users mailing list.

> <s:submit> using type="button" can not handle multiple method
> -------------------------------------------------------------
>
>                 Key: WW-2629
>                 URL: https://issues.apache.org/struts/browse/WW-2629
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.0.11
>            Reporter: ChenShen
>             Fix For: 2.1.3
>
>
> In a from,I use two <s:submit> tag like this:
> <s:submit id="ggg1" method="save" value="TestOther" type="button"></s:submit>
> <s:submit id="yyy" method="saveother" value="yyy" type="button"></s:submit>
> I want to button can call different method of action, but actually the framework can not handle multiple method call in one form,it always call the same method. But if you using default type, it can handle this.
> Is it a bug?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2629) using type="button" can not handle multiple method

Posted by "ChenShen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ChenShen updated WW-2629:
-------------------------

          Flags: [Patch]
    Component/s: Plugin - Tags

> <s:submit> using type="button" can not handle multiple method
> -------------------------------------------------------------
>
>                 Key: WW-2629
>                 URL: https://issues.apache.org/struts/browse/WW-2629
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.0.11
>            Reporter: ChenShen
>
> In a from,I use two <s:submit> tag like this:
> <s:submit id="ggg1" method="save" value="TestOther" type="button"></s:submit>
> <s:submit id="yyy" method="saveother" value="yyy" type="button"></s:submit>
> I want to button can call different method of action, but actually the framework can not handle multiple method call in one form,it always call the same method. But if you using default type, it can handle this.
> Is it a bug?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2629) using type="button" can not handle multiple method

Posted by "Gabriel Belingueres (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44381#action_44381 ] 

Gabriel Belingueres commented on WW-2629:
-----------------------------------------

I could not reproduce this issue on v.2.1.2, using both theme="simple" and "xhtml" setted on the form.

> <s:submit> using type="button" can not handle multiple method
> -------------------------------------------------------------
>
>                 Key: WW-2629
>                 URL: https://issues.apache.org/struts/browse/WW-2629
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.0.11
>            Reporter: ChenShen
>             Fix For: 2.1.3
>
>
> In a from,I use two <s:submit> tag like this:
> <s:submit id="ggg1" method="save" value="TestOther" type="button"></s:submit>
> <s:submit id="yyy" method="saveother" value="yyy" type="button"></s:submit>
> I want to button can call different method of action, but actually the framework can not handle multiple method call in one form,it always call the same method. But if you using default type, it can handle this.
> Is it a bug?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2629) using type="button" can not handle multiple method

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Don Brown updated WW-2629:
--------------------------

    Fix Version/s: 2.1.3

> <s:submit> using type="button" can not handle multiple method
> -------------------------------------------------------------
>
>                 Key: WW-2629
>                 URL: https://issues.apache.org/struts/browse/WW-2629
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.0.11
>            Reporter: ChenShen
>             Fix For: 2.1.3
>
>
> In a from,I use two <s:submit> tag like this:
> <s:submit id="ggg1" method="save" value="TestOther" type="button"></s:submit>
> <s:submit id="yyy" method="saveother" value="yyy" type="button"></s:submit>
> I want to button can call different method of action, but actually the framework can not handle multiple method call in one form,it always call the same method. But if you using default type, it can handle this.
> Is it a bug?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.