You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Dilip Parihar (JIRA)" <ji...@apache.org> on 2008/08/21 00:03:24 UTC

[jira] Assigned: (WW-2777) Button in Struts 2

     [ https://issues.apache.org/struts/browse/WW-2777?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dilip Parihar reassigned WW-2777:
---------------------------------

    Assignee: Bill Kratzer

> Button in Struts 2
> ------------------
>
>                 Key: WW-2777
>                 URL: https://issues.apache.org/struts/browse/WW-2777
>             Project: Struts 2
>          Issue Type: Bug
>         Environment: Microsoft Windows 2002
>            Reporter: Dilip Parihar
>            Assignee: Bill Kratzer
>
> There is no separate tag for Button in struts 2 and it is created by struts-tag using <s:submit type="button" value="%{getText('myapp.myvalue')}" onclick="do_something();" />. This results in generating a <button type="submit" ..../> in HTML. This button is always associated with <s:form action="myaction.action" />.
> When such button is clicked it submit the form calling action="myaction.action", although I don't want action to be called on clicking the button.
> The Bug in Struts 2 with button is that <s:submit type="button" .../> is link with <s:form ..../>, and If i do not use struts-tags and simply use <input type="button" ....> then I can't use value="%{getText('myapp.myvalue')}", because <input type="button" ..> do not work for i18n.
> I need a simple button which just calls 'do_something() on clicking it and in no way should call 'action', I do not need a button which is of 'type=submit' in HTML. I need a simple button something like <s:button value="i18n value" />
> thanks,
> Dilip Parihar

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