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
I am not sure if this is some thing you looking for SOME table here or some fields Cancel I like using anchors.. you can use submit as well. important things here are the formId which shud be the same as in the form tag showloadingText =false by default its true and there is a problem in IE

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

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