Re: Struts 2 Buttons

2008-09-03 Thread Dave Newton
--- On Wed, 9/3/08, Alberto Flors wrote: > If you need a button "X" that is outside of form "Y", and button "X" > needs to submit form "Y", then such thing could be done with > javascript only (whereas through struts2 Dojo's plugin or other). The submit tag already support this; no need to write

Re: Struts 2 Buttons

2008-09-03 Thread Alberto Flors
Ok, so let's go back for a second and try to understand your question: You have a form mapped to an action (struts.xml or via annotations) and you would like to have a button (one or many) to execute behavior on a method within that action instance? Answer: Yes. Add the "method" attribute to t

Re: Struts 2 Buttons

2008-09-02 Thread dynamicd
- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Struts-2-Buttons-tp19275424p19279838.ht

Re: Struts 2 Buttons

2008-09-02 Thread Roger
On Tuesday 02 September 2008 21:11:00 Dave Newton wrote: > --- On Tue, 9/2/08, Roger wrote: > > Is it possible to define a button ( in such a > > way that, instead of of calling a method in the action > > defined in the tag, it calls a completely different > > action.method. Is it possible to jus

Struts 2 Buttons

2008-09-02 Thread Roger
Is it possible to define a button ( in such a way that, instead of of calling a method in the action defined in the tag, it calls a completely different action.method. Is it possible to just add a button that calls an action on the jsp. Alternatively, I know I can style a link to look like a b

Re: Struts 2 Buttons

2008-09-02 Thread Dave Newton
--- On Tue, 9/2/08, Roger wrote: > Is it possible to define a button ( in such a > way that, instead of of calling a method in the action > defined in the tag, it calls a completely different > action.method. Is it possible to just add a button that > calls an action on the jsp. http://struts