You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Shrinivas Parashar <Sh...@symantec.com> on 2012/02/28 04:41:35 UTC
Struts 2: Non Submittable button
Hi,
When we create a button using s:button, Struts 2 always renders button of type submit.
If we specify the type as button Struts 2 renders as below
<button type="submit"...... />
If we specify type as submit Struts 2 renders as below
<input type="submit" ... />
In both the cases the button is of type submit even if we want non-submittable button.
Does anyone know how can we get output as below
<button type="button".. />
Regards,
Shrinivas
Re: Struts 2: Non Submittable button
Posted by Jeffrey Black <je...@gmail.com>.
Shrinivas: Dave Newton addressed this some time ago. Give it a look.
https://issues.apache.org/jira/browse/WW-2777
jb
On Feb 27, 2012, at 9:41 PM, Shrinivas Parashar <Sh...@symantec.com> wrote:
> Hi,
> When we create a button using s:button, Struts 2 always renders button of type submit.
> If we specify the type as button Struts 2 renders as below
> <button type="submit"...... />
> If we specify type as submit Struts 2 renders as below
> <input type="submit" ... />
>
> In both the cases the button is of type submit even if we want non-submittable button.
>
> Does anyone know how can we get output as below
> <button type="button".. />
>
> Regards,
> Shrinivas
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts 2: Non Submittable button
Posted by Steven Benitez <st...@gmail.com>.
Just use HTML?
On Mon, Feb 27, 2012 at 10:59 PM, Umesh Awasthi <um...@gmail.com>wrote:
> It work as a submit button and will associate the form with your button.If
> you want to use simple button, i suggest you to go with
> <input type=button/>
>
> As a side note the best place to ask such question is user mailing list <*
> user@struts.apache.org*>
>
> On Tue, Feb 28, 2012 at 9:11 AM, Shrinivas Parashar <
> Shrinivas_Parashar@symantec.com> wrote:
>
> > Hi,
> > When we create a button using s:button, Struts 2 always renders button of
> > type submit.
> > If we specify the type as button Struts 2 renders as below
> > <button type="submit"...... />
> > If we specify type as submit Struts 2 renders as below
> > <input type="submit" ... />
> >
> > In both the cases the button is of type submit even if we want
> > non-submittable button.
> >
> > Does anyone know how can we get output as below
> > <button type="button".. />
> >
> > Regards,
> > Shrinivas
> >
>
>
>
> --
> With Regards
> Umesh Awasthi
> http://www.travellingrants.com/
>
Re: Struts 2: Non Submittable button
Posted by Umesh Awasthi <um...@gmail.com>.
It work as a submit button and will associate the form with your button.If
you want to use simple button, i suggest you to go with
<input type=button/>
As a side note the best place to ask such question is user mailing list <*
user@struts.apache.org*>
On Tue, Feb 28, 2012 at 9:11 AM, Shrinivas Parashar <
Shrinivas_Parashar@symantec.com> wrote:
> Hi,
> When we create a button using s:button, Struts 2 always renders button of
> type submit.
> If we specify the type as button Struts 2 renders as below
> <button type="submit"...... />
> If we specify type as submit Struts 2 renders as below
> <input type="submit" ... />
>
> In both the cases the button is of type submit even if we want
> non-submittable button.
>
> Does anyone know how can we get output as below
> <button type="button".. />
>
> Regards,
> Shrinivas
>
--
With Regards
Umesh Awasthi
http://www.travellingrants.com/