RE: Array of submit buttons

2019-02-16 Thread Yasser Zamani
>From: Prasanth >Sent: Friday, February 15, 2019 3:02 AM >To: Struts Users Mailing List >Subject: Array of submit buttons > >Hi, > >I have a form with tabular data and need to have delete buttons for each row. >So >have a ArrayList in the action and the form

Array of submit buttons

2019-02-14 Thread Prasanth
Hi, I have a form with tabular data and need to have delete buttons for each row. So have a ArrayList in the action and the form has inside an iterator. When the user clicks on the Delete button the ArrayList was not populated. So changed the ArrayList to a Map. Interestingly the map is popula

Re: Multiple Submit Buttons in Same Form using Jquery/Ajax

2016-06-27 Thread Guilherme Bisconcini
it 2" > indicator="indicator" > button="true" > /> > > > > > Best Regards > > Johannes > > ##### &

Re: Multiple Submit Buttons in Same Form using Jquery/Ajax

2016-06-24 Thread Johannes Geppert
2016-06-23 22:11 GMT+02:00 Guilherme Bisconcini < guilherme.bisconc...@sefisa.com.br>: > Hi, > > I have spent about 3 hours trying to do Multiple Submit Buttons in same > form using Jquery/Ajax. I have tried > https://struts.apache.org/docs/multiple-submit-buttons.html witho

Multiple Submit Buttons in Same Form using Jquery/Ajax

2016-06-23 Thread Guilherme Bisconcini
Hi, I have spent about 3 hours trying to do Multiple Submit Buttons in same form using Jquery/Ajax. I have tried https://struts.apache.org/docs/multiple-submit-buttons.html without success. I'm using Jquery with struts, so I think thats why it doens't work? because my Struts is: 2.

Re: Struts2 multiple submit buttons in One action class

2014-03-25 Thread struts2problems
----- > If you reply to this email, your message will be added to the discussion > below: > > http://struts.1045723.n5.nabble.com/Struts2-multiple-submit-buttons-in-One-action-class-tp5715568p5715574.html > To unsubscribe from Struts2

Re: Struts2 multiple submit buttons in One action class

2014-03-24 Thread Dave Newton
On Sat, Mar 22, 2014 at 6:31 AM, struts2problems < charitha.nagell...@gmail.com> wrote: > private static PInfoDTO bean; > Whoa; that can't be a good idea, regardless of anything else. Dave -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton

Struts2 multiple submit buttons in One action class

2014-03-24 Thread struts2problems
I wrote code for multiple submit buttons of one form in one Action class by using java bean. But when I was running the application first time its working fine After that I am getting NullPointerException . Please Help me. Here is My code. *Exception:* *!st time running.* calling bean

Re: Multiple Submit Buttons problem in Struts2

2011-01-04 Thread aum strut
;> > > >> Dave > > >> > > >> On Mon, Jan 3, 2011 at 11:33 AM, Biesbrock, Kevin < > > > biesbrock.ke...@aoins.com > > >>> wrote: > > >> > > >>> Should this be included in documentation as a mo

Re: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Brian Thompson
Biesbrock, Kevin < > > biesbrock.ke...@aoins.com > >>> wrote: > >> > >>> Should this be included in documentation as a more complex example of > >>> Struts2? Maybe an example action as well? Just a thought. > >>> > >>> > >&g

Re: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Maurizio Cucchiara
-Beez >>> >>> -Original Message- >>> From: stanl...@gmail.com [mailto:stanl...@gmail.com] >>> Sent: Sunday, January 02, 2011 5:20 PM >>> To: Struts Users Mailing List >>> Subject: Re: Multiple Submit Buttons problem in Struts2 >>&g

Re: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Brian Thompson
an example action as well? Just a thought. >> >> >> -Beez >> >> -Original Message- >> From: stanl...@gmail.com [mailto:stanl...@gmail.com] >> Sent: Sunday, January 02, 2011 5:20 PM >> To: Struts Users Mailing List >> Subject: Re: Multiple Subm

RE: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Biesbrock, Kevin
Well, I have no CLA but I will contribute what I may. Beez r 5347 -Original Message- From: Dave Newton [mailto:davelnew...@gmail.com] Sent: Monday, January 03, 2011 11:42 AM To: Struts Users Mailing List Subject: Re: Multiple Submit Buttons problem in Struts2 I kind of thought the

Re: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Dave Newton
Struts2? Maybe an example action as well? Just a thought. > > > -Beez > > -Original Message- > From: stanl...@gmail.com [mailto:stanl...@gmail.com] > Sent: Sunday, January 02, 2011 5:20 PM > To: Struts Users Mailing List > Subject: Re: Multiple Submit Buttons

RE: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Biesbrock, Kevin
: Re: Multiple Submit Buttons problem in Struts2 How about something like this? Scott On Sat, Jan 1, 2011 at 8:53 AM, aum strut wrote: > Hi All, > > Trying to work with multiple submit buttons within a single form in > struts2 application but not able to work. her

Re: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread aum strut
11 at 5:20 PM, wrote: > > > How about something like this? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Scott > > > > On S

Re: Multiple Submit Buttons problem in Struts2

2011-01-02 Thread Dave Newton
> > Scott > > On Sat, Jan 1, 2011 at 8:53 AM, aum strut wrote: > > > Hi All, > > > > Trying to work with multiple submit buttons within a single form in > struts2 > > application but not able to work. here is the jsp code i am using > &g

Re: Multiple Submit Buttons problem in Struts2

2011-01-02 Thread stanlick
How about something like this? Scott On Sat, Jan 1, 2011 at 8:53 AM, aum strut wrote: > Hi All, > > Trying to work with multiple submit buttons within a single form in struts2 > application but not able to work. here is the jsp cod

Re: Multiple Submit Buttons problem in Struts2

2011-01-01 Thread Dave Newton
So what might some of those ways be? Dave On Sat, Jan 1, 2011 at 2:33 PM, aum strut wrote: > agree!!! > > On Sat, Jan 1, 2011 at 10:20 PM, Dave Newton > wrote: > > > And *my* point is that perhaps there's another way you can solve your > > problem and eliminate the "tight" coupling between for

Re: Multiple Submit Buttons problem in Struts2

2011-01-01 Thread aum strut
agree!!! On Sat, Jan 1, 2011 at 10:20 PM, Dave Newton wrote: > And *my* point is that perhaps there's another way you can solve your > problem and eliminate the "tight" coupling between form and action. > > Dave > > On Sat, Jan 1, 2011 at 11:16 AM, aum strut wrote: > > > My point was that the b

Re: Multiple Submit Buttons problem in Struts2

2011-01-01 Thread Dave Newton
And *my* point is that perhaps there's another way you can solve your problem and eliminate the "tight" coupling between form and action. Dave On Sat, Jan 1, 2011 at 11:16 AM, aum strut wrote: > My point was that the boolean approach mentioned in the document was in my > opinion is better and s

Re: Multiple Submit Buttons problem in Struts2

2011-01-01 Thread aum strut
My point was that the boolean approach mentioned in the document was in my opinion is better and same was mentioned in the document sinnce it was not coupling the form tightly with action. On Sat, Jan 1, 2011 at 9:44 PM, Dave Newton wrote: > On Sat, Jan 1, 2011 at 11:13 AM, aum strut wrote: >

Re: Multiple Submit Buttons problem in Struts2

2011-01-01 Thread Dave Newton
On Sat, Jan 1, 2011 at 11:13 AM, aum strut wrote: > agree! > but i still believe coupling the form value with action component is never > a > good idea.. so still believe the first approach was was better. > So... is there another way to achieve what you want? Dave

Re: Multiple Submit Buttons problem in Struts2

2011-01-01 Thread aum strut
false value. > > > > > > Dave > > > > > > On Sat, Jan 1, 2011 at 9:53 AM, aum strut > wrote: > > > > > > > Hi All, > > > > > > > > Trying to work with multiple submit buttons within a single form in > > > struts

Re: Multiple Submit Buttons problem in Struts2

2011-01-01 Thread Dave Newton
> > > On Sat, Jan 1, 2011 at 9:53 AM, aum strut wrote: > > > > > Hi All, > > > > > > Trying to work with multiple submit buttons within a single form in > > struts2 > > > application but not able to work. here is the jsp code i am usi

Re: Multiple Submit Buttons problem in Struts2

2011-01-01 Thread Maurizio Cucchiara
I'm not sure at this moment, but using 1 as value should work Maurizio Cucchiara On Jan 1, 2011 4:29 PM, "aum strut" wrote: i was just refreing the following document http://struts.apache.org/2.0.14/docs/multiple-submit-buttons.html since it was mentioned that second approach will make action c

Re: Multiple Submit Buttons problem in Struts2

2011-01-01 Thread aum strut
ert "Import" to a true or false value. > > Dave > > On Sat, Jan 1, 2011 at 9:53 AM, aum strut wrote: > > > Hi All, > > > > Trying to work with multiple submit buttons within a single form in > struts2 > > applicatio

Re: Multiple Submit Buttons problem in Struts2

2011-01-01 Thread Dave Newton
S2 would have no idea how to convert "Import" to a true or false value. Dave On Sat, Jan 1, 2011 at 9:53 AM, aum strut wrote: > Hi All, > > Trying to work with multiple submit buttons within a single form in struts2 > application but not able to work. here is t

Multiple Submit Buttons problem in Struts2

2011-01-01 Thread aum strut
Hi All, Trying to work with multiple submit buttons within a single form in struts2 application but not able to work. here is the jsp code i am using

Re: labelizing submit buttons

2010-12-02 Thread M. Rakowski
maybe it is a little late, but here is a "legal" way to put a label on s:submit: With btn.search defined in .properties file. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h

Re: labelizing submit buttons

2010-11-30 Thread Li Ying
I think your tag has a leak of attribute "method" Your code: will generate HTML likes: When you click this button, there will be a http request parameter like "btn.search=Search". Struts2 will accept this parameter, and try to save it to your action property. So, there will be a property sett

Re: labelizing submit buttons

2010-11-30 Thread webmeiker
There is an easy trick: Define all your buttons in your global.properties starting with word ‘*dojo*’ like this: dojo.btn.eliminar=Borrar dojo.btn.editar=Editar dojo.btn.inscripcion=Inscribirse dojo.btn.buscar=Buscar That way you avoid ParametersInterceptor to search for unimplemented

Re: labelizing submit buttons

2010-11-30 Thread webmeiker
It doesn’t work… Neither putting ‘btn.search=Search’ in: my-global-messages.properties, package.properties, my-action.properties ¿?¿? 2010/11/29 M. Rakowski > > i have exactly the same problem: > > > > with event.name set in the package.properties file: works ok. > > > > with button.creat

Re: labelizing submit buttons

2010-11-29 Thread M. Rakowski
i have exactly the same problem: with event.name set in the package.properties file: works ok. with button.create set in the same .properties-file causes exception. Suggestion: It works only if you use ActionClassName.properties file instead of package.properties?

Re: labelizing submit buttons

2010-11-29 Thread Maurizio Cucchiara
You shouldn't need a setSearch method inside your action: the bEst way to make it work is to verify that your ActionClassName.properties contains a btn.search entry. 2010/11/29 webmeiker : > Hi all, > > Could somebody help me with the next issue? > > > > In a submit button I want to use a customiz

labelizing submit buttons

2010-11-29 Thread webmeiker
Hi all, Could somebody help me with the next issue? In a submit button I want to use a customized label (which is extracted from a .properties file). The problem is that I get the next exception: Error setting expression 'btn.search' with value '[Ljava.lang.String;@1ed56e2' *ognl.OgnlExcep

Re: Forms with Multiple Submit buttons (Bug or Expected?)

2010-05-20 Thread RogerV
eeing "request", "request" and promptly rolls over. I'm currently writing a proxy for the device to serialize access to it - I was just wondering if there was a better alternative. Regards -- View this message in context: http://old.nabble.com/Forms-with-Multiple-Submit-but

Re: Forms with Multiple Submit buttons (Bug or Expected?)

2010-05-19 Thread RogerV
lained it! Thanks -- View this message in context: http://old.nabble.com/Forms-with-Multiple-Submit-buttons-%28Bug-or-Expected-%29-tp28606047p28607804.html Sent from the Struts - User mailing list archive at Nabble.com. - To u

Re: Forms with Multiple Submit buttons (Bug or Expected?)

2010-05-19 Thread Denis Cabasson
return true; } On clicking the submit button, the javascript disabled the button but the performAction was never called and the form was redisplayed. So I tried again, moving the javascript to the submit buttons onclick attribute. Same thing. Looking at the POST through Firebug I see that wi

Forms with Multiple Submit buttons (Bug or Expected?)

2010-05-19 Thread RogerV
vascript to the submit buttons onclick attribute. Same thing. Looking at the POST through Firebug I see that without any javascript handlers it looks like; &action%3performAction=Submit and with the javascript handlers i.e the Struts action information is not being attached. Is this expe

Re: How to correct this syntax for multiple submit buttons?

2009-06-28 Thread Paweł Wielgus
Hi Sam, remove "submit" word. Best greetings, Paweł Wielgus. 2009/6/27 Sam Wun : > Hi, > > here are the offending lines in my jsp file: > > > /> > > > Errors on console: > > org.apache.jasper.JasperException: > /html/portlet/onlinepayment_portlet/sign_in.jsp(110,18) equal symbol > expected > o

How to correct this syntax for multiple submit buttons?

2009-06-27 Thread Sam Wun
Hi, here are the offending lines in my jsp file: Errors on console: org.apache.jasper.JasperException: /html/portlet/onlinepayment_portlet/sign_in.jsp(110,18) equal symbol expected org.apache.jasper.JasperException: /html/portlet/onlinepayment_portlet/sign_in.jsp(110,18) equal symbol expecte

Re: [s2] multiple submit buttons using action and method

2009-04-30 Thread Stephiems
t; >>>> I might just have to make it so the pay isn't a submit button, maybe >>>> have >>>> a >>>> sort of 'shopping cart' running total at the top of the screen where >>>> they >>>> can click on the link to go to the make payment screen.. But, I do &

Re: [s2] multiple submit buttons using action and method

2009-04-30 Thread Dave Newton
*and* configuration. Stephiems wrote: Oh, sorry, I was experimenting and changed the code: Here is what I have for the submits, all the rest is the same: method="save" cssClass="button"/> value="%{getText('button.label.paynow')}" action="ListCustomerData" method="pay" cssClass="button"/> Th

Re: [s2] multiple submit buttons using action and method

2009-04-30 Thread Stephiems
where they >> can click on the link to go to the make payment screen.. But, I do still >> believe that what I'm trying to do should work. > > *and* configuration. > > I only see a method defined for the "pay" submit button; does the > ListCustomerData action conig

Re: [s2] multiple submit buttons using action and method

2009-04-30 Thread Dave Newton
Stephiems wrote: Both submits go to the same action, just different methods, so I can't have different forms. I might have to change how it works. I don't like it as it is, but that is what the client wanted, and as much as I tried to get them to chanage, in the end I have to do what they want.

Re: [s2] multiple submit buttons using action and method

2009-04-30 Thread Stephiems
d to check to make sure I >> haven't done anything wrong before reporting it. > > Can you show the JSP and configuration? I've used the "method" parameter > with the submit tag without any issues. > > Dave > > > -------

RE: [s2] multiple submit buttons using action and method

2009-04-30 Thread Kofford, C Todd
You may want to re-consider the design of having multiple submit buttons on the same page. This can be tricky for users that like to use the "enter" key instead of the mouse click, and make it hard for the user to figure out which submit button was executed. I won't even get into

Re: [s2] multiple submit buttons using action and method

2009-04-30 Thread Dave Newton
Stephiems wrote: I'm having a problem with the action and method values on the s:submit tag. I have a form where I have two submits, Save and Pay Now. Save submits to the actions save() method and Pay Now submits to the actions pay() method. In the pay() method I have some of my own validation,

RE: [s2] multiple submit buttons using action and method

2009-04-30 Thread Kishan G. Chellap Paandy
ve possibly found a bug, but I wanted to check to make sure I haven't done anything wrong before reporting it. Cheers, Stephanie -- View this message in context: http://www.nabble.com/-s2--multiple-submit-buttons-using-action-and-meth od-tp23311584p23311584.html Sent from the Struts - User

[s2] multiple submit buttons using action and method

2009-04-30 Thread Stephiems
but I wanted to check to make sure I haven't done anything wrong before reporting it. Cheers, Stephanie -- View this message in context: http://www.nabble.com/-s2--multiple-submit-buttons-using-action-and-method-tp23311584p23311584.html Sent from the Struts - User

RE: HOWTO implement multiple submit buttons with type = image.

2009-03-10 Thread Martin Gainty
> Subject: HOWTO implement multiple submit buttons with type = image. > Date: Tue, 10 Mar 2009 13:46:25 -0500 > From: ak...@allstate.com > To: user@struts.apache.org > > Hello > > I am implementing a form with two buttons CANCEL and REGISTER. > > I have followe

Re: HOWTO implement multiple submit buttons with type = image.

2009-03-10 Thread Jim Kiley
; '[Ljava.lang.String;@7cf47cf4' > > > In struts 1, we can use an ImagebuttonBean type to provide the > getter/setter in the action class. (See > http://www.java-samples.com/showtutorial.php?tutorialid=518) > > I can't see ImagebuttonBean in struts 2. >

HOWTO implement multiple submit buttons with type = image.

2009-03-10 Thread Kra, Aime yao (TEK System)
agebuttonBean type to provide the getter/setter in the action class. (See http://www.java-samples.com/showtutorial.php?tutorialid=518) I can't see ImagebuttonBean in struts 2. Can someone know how to implement these two image type submit buttons and What should be the code in the Execute() m

Re: [S2] Passng a parameter with (multiple) Submit buttons

2009-02-02 Thread Musachy Barroso
y these attributes in a table one per row. >>> >>>> What I would like to do is have a >>> >>>> button >>> >>>> on each row of the table so the user can click on the button to >>> remove >>> >>>> the attribut

Re: [S2] Passng a parameter with (multiple) Submit buttons

2009-02-02 Thread Greg Lindholm
he table so the user can click on the button to >> remove >> >>>> the attribute. >> >>>> In order to make this work I would need to pass the id of the >> attribute >> >>>> with the submit button and I can't find a way to do th

Re: [S2] Passng a parameter with (multiple) Submit buttons

2009-02-02 Thread Jim Kiley
I would need to pass the id of the > attribute > >>>> with the submit button and I can't find a way to do this. > >>>> > >>>> Is there a (struts) way to pass a parameter with a submit button? > >>>> > >>>> I can&#x

Re: [S2] Passng a parameter with (multiple) Submit buttons

2009-02-02 Thread Greg Lindholm
the other form fields to be >>>> posted >>>> with the request. >>>> >>>> The only way I can think of making this work is to add some javascript >>>> to >>>> each button that would set the id in a hidden field before the submit. >>>

Re: [S2] Passng a parameter with (multiple) Submit buttons

2009-02-02 Thread Musachy Barroso
ink because I need all the other form fields to be posted >>> with the request. >>> >>> The only way I can think of making this work is to add some javascript to >>> each button that would set the id in a hidden field before th

Re: [S2] Passng a parameter with (multiple) Submit buttons

2009-02-02 Thread Greg Lindholm
I need all the other form fields to be posted >> with the request. >> >> The only way I can think of making this work is to add some javascript to >> each button that would set the id in a hidden field before the submit. Is >> there a pure struts or better way to do this? &g

Re: [S2] Passng a parameter with (multiple) Submit buttons

2009-01-30 Thread Miguel
You can use the method attribute in the s:submit button, combined with a method in your action. You could use the different method invocation as an implicit parameter. You may need to use the action wildcard feature in struts.xml Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco

[S2] Passng a parameter with (multiple) Submit buttons

2009-01-30 Thread Greg Lindholm
I have a CRUD action and jsp page for an entity, this entity has a list of attributes. I display these attributes in a table one per row. What I would like to do is have a button on each row of the table so the user can click on the button to remove the attribute. In order to make this work I w

Re: How to two form tags inline(submit buttons of each form to appear next to each other)

2009-01-30 Thread Dave Newton
Use theme="simple" on the tags to they don't generate the table markup, and put them in table markup of your own. Dave Seshagiri V wrote: Hellow All, I have a page with two forms on it. I want the respective submit buttons of each form to appear next to each other, i

Re: How to two form tags inline(submit buttons of each form to appear next to each other)

2009-01-30 Thread Nils-Helge Garli Hegvik
I'm pretty sure that providing some relevant code snippets would improve your odds of getting help... Nils-H On Fri, Jan 30, 2009 at 1:00 PM, Seshagiri V wrote: > Hellow All, > > > > I have a page with two forms on it. I want the respective submit buttons of > each form

How to two form tags inline(submit buttons of each form to appear next to each other)

2009-01-30 Thread Seshagiri V
Hellow All, I have a page with two forms on it. I want the respective submit buttons of each form to appear next to each other, inline, so I set style="display: inline;" on each form but it is not working. Please help me. Thank you, Seshagiri V seshagi...@k

Re: Diff action , same action class and diff submit buttons

2009-01-16 Thread Lukasz Lenart
2009/1/16 Seshagiri V : > > > Is not allowed to put href inside button tag, please read some spec about html and html button [1], if you want to use different action than entire form, use JavaScript and onclick event for that button to do that. [1] http://www.htmlquick.com/reference/tags/butto

Diff action , same action class and diff submit buttons

2009-01-16 Thread Seshagiri V
Hi All, Here is a snippet of my code in the jsp: I have been successful using

Re: [OT] Re: [S2] Problem with list of submit buttons

2008-09-01 Thread Ylva Degerfeldt
THANK you, Laurie!! That worked!! You have no idea how stressed I am about finishing this project so I Really appreciate that kind of help right now! :-) /Ylva > I find myself with a few spare bones, so I'll throw one to Ylva ;-) Try > document.forms.NameOfForm... of document.getElementById('N

Re: [OT] Re: [S2] Problem with list of submit buttons

2008-08-29 Thread Laurie Harper
Dave Newton wrote: x.NameOfForm.NameOfHiddenField.value = INPUTVAL The part that I called "x" is the part that I don't understand. Should it be the name of the JSP or what? Keep searching; this is DOM/JavaScript 101. Personally I'd use a JavaScript library, but it's not really necess

[OT] Re: [S2] Problem with list of submit buttons

2008-08-29 Thread Dave Newton
--- On Fri, 8/29/08, Ylva Degerfeldt wrote: > About the value (Question 3) I just wasn't sure I could > use OGNL when writing JavaScript but Ok. I get it. Just to be precise: you're not really using OGNL "when writing JavaScript". You're embedding OGNL in the "onclick" attribute which, when evalu

Re: [S2] Problem with list of submit buttons

2008-08-29 Thread Ylva Degerfeldt
Thanks again! About the value (Question 3) I just wasn't sure I could use OGNL when writing JavaScript but Ok. I get it. I also found this example: http://www.developertutorials.com/tutorials/javascript/change-form-field-values-050522/page1.html The only thing that's left to fix now (I think) is

Re: [S2] Problem with list of submit buttons

2008-08-29 Thread Dave Newton
--- On Fri, 8/29/08, Ylva Degerfeldt wrote: > Basically, I need to know 3 things: > 1. Does the code have to be in a JS method or can it be > "right under onclick"? Doesn't matter, but since you have to both set the form field and submit the form it's likely to be cleaner to put it in a JavaScrip

Re: [S2] Problem with list of submit buttons

2008-08-29 Thread Ylva Degerfeldt
Thank you Dave! See below.. > The previous suggestion to use JavaScript might be the quickest, by using an > onclick handler to set the value of a hidden form element and have the action > check that to see what element of the iterator to operate on. > > As mentioned on [1] using the "button" ty

Re: [S2] Problem with list of submit buttons

2008-08-29 Thread Dave Newton
--- On Fri, 8/29/08, James Neff wrote: > Yesterday was about goats, and today it's about

Re: [S2] Problem with list of submit buttons

2008-08-29 Thread James Neff
Dave Newton wrote: --- On Fri, 8/29/08, James Neff wrote: action="OriginalAction" theme="simple"> value='button label here'/> In the section: function myJavaScriptMethod() { document.myForm.action = "/myProject/NewAction.action"; document.myForm.submit(); } And

Re: [S2] Problem with list of submit buttons

2008-08-29 Thread Dave Newton
--- On Fri, 8/29/08, Ylva Degerfeldt wrote: > Dave, you seem to know a whole lot about Struts 2. Smoke and mirrors, smoke and mirrors... ask anybody. Submit elements are often a sticky wicket. The previous suggestion to use JavaScript might be the quickest, by using an onclick handler to set th

RE: [S2] Problem with list of submit buttons

2008-08-29 Thread Martin Gainty
[EMAIL PROTECTED] > To: user@struts.apache.org > Subject: Re: [S2] Problem with list of submit buttons > > Thanks all of you for your replies but I'm afraid they're not helping > in this case. > > James, It's not about getting different buttons to do different >

Re: [S2] Problem with list of submit buttons

2008-08-29 Thread Ylva Degerfeldt
MAIL PROTECTED] >> wrote: > >> Hi everyone, >> >> I have a List of POJOs that I've created, and for every POJO in the >> list I'm displaying some UI components corresponding to the properties >> of the POJO (textfields and select fields et.c.). I also h

Re: [S2] Problem with list of submit buttons

2008-08-29 Thread Dave Newton
--- On Fri, 8/29/08, James Neff wrote: > action="OriginalAction" theme="simple"> > value='button label here'/> > > > In the section: > function myJavaScriptMethod() { > document.myForm.action = "/myProject/NewAction.action"; > document.myForm.submit(); > } > > And t

Re: [S2] Problem with list of submit buttons

2008-08-29 Thread Jim Kiley
; > I have a List of POJOs that I've created, and for every POJO in the > list I'm displaying some UI components corresponding to the properties > of the POJO (textfields and select fields et.c.). I also have some > submit buttons that belong to each row (and indirectly to eac

Re: [S2] Problem with list of submit buttons

2008-08-29 Thread James Neff
Ylva Degerfeldt wrote: Hi everyone, ... Maybe I could use the "onclick" attribute of s:submit but I don't know the syntax for sending a value to the Action there. (Isn't that javascript?) Can somebody please help me with this? Thanks in advance! /Ylva Are you asking on how to get differ

[S2] Problem with list of submit buttons

2008-08-29 Thread Ylva Degerfeldt
Hi everyone, I have a List of POJOs that I've created, and for every POJO in the list I'm displaying some UI components corresponding to the properties of the POJO (textfields and select fields et.c.). I also have some submit buttons that belong to each row (and indirectly to each P

Re: ajax layout - how to place 2 submit buttons one after the other?

2008-03-31 Thread Dave Newton
--- Roger Varley <[EMAIL PROTECTED]> wrote: > > There are at least three choices: > > > > (1) Do something via CSS (inline or something) > > (2) Modify the existing Ajax theme > > (3) Create a new theme > > I know I'm probably going to be shot down in flames for this, but why do > the Struts 2 tag

Re: ajax layout - how to place 2 submit buttons one after the other?

2008-03-31 Thread Roger Varley
> > There are at least three choices: > > (1) Do something via CSS (inline or something) > (2) Modify the existing Ajax theme > (3) Create a new theme > I know I'm probably going to be shot down in flames for this, but why do the Struts 2 tags attempt to control any sort of layout? Why is there n

RE: ajax layout - how to place 2 submit buttons one after the other?

2008-03-31 Thread Lalchandra Rampersad
Check to see if your column is wide enough to hold 2 buttons side by side -Original Message- From: xianwinwin [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2008 10:41 AM To: user@struts.apache.org Subject: ajax layout - how to place 2 submit buttons one after the other? Hi guys

Re: ajax layout - how to place 2 submit buttons one after the other?

2008-03-31 Thread Dave Newton
--- xianwinwin <[EMAIL PROTECTED]> wrote: > I've been strugling with this one for a while: How is it possible to > place 2 (or more) buttons one after the other? > > Currently, my buttons looks like this: > > [update] > [test] > > and I wish to have:[update] [test] There are at least t

ajax layout - how to place 2 submit buttons one after the other?

2008-03-31 Thread xianwinwin
ntext: http://www.nabble.com/ajax-layout---how-to-place-2-submit-buttons-one-after-the-other--tp16397732p16397732.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Multiple submit buttons in a single JSP

2008-02-07 Thread Lukasz Lenart
Hi, You can use and Action class with three methods, the same like execute() http://struts.apache.org/2.x/docs/submit.html Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart - To unsubscribe, e-mail: [EMAIL PROTECT

Multiple submit buttons in a single JSP

2008-02-07 Thread Johnson nickel
Hi all, In my JSP, i have three submit buttons, i want to know which button user has clicked. I tried from this site, http://struts.apache.org/2.x/docs/html-form-buttons-howto.html http://struts.apache.org/2.x/docs/html-form-buttons-howto.html It's not working. Gi

RE: Submit buttons

2007-12-31 Thread Al Sutton
iling List Subject: Re: Submit buttons The name of the button is what gets submitted. The value, I believe, is the user display value which doesn't get sent in the submission. On Dec 28, 2007 12:43 PM, Al Sutton <[EMAIL PROTECTED]> wrote: > I've been bashing my head against a b

Re: Submit buttons

2007-12-28 Thread Paul Benedict
The name of the button is what gets submitted. The value, I believe, is the user display value which doesn't get sent in the submission. On Dec 28, 2007 12:43 PM, Al Sutton <[EMAIL PROTECTED]> wrote: > I've been bashing my head against a brick wall on this one so maybe > someone > can help ease t

Submit buttons

2007-12-28 Thread Al Sutton
I've been bashing my head against a brick wall on this one so maybe someone can help ease the pain... Within a single form I have several buttons. Each button has an ID associated with it and a name. What I would like to do is show the name to the user and submit the ID to my action when it's c

Re: Multiple AJAX submit buttons in STRUTS 2

2007-11-07 Thread Jeromy Evans
ahh, sorry, you're right Steve. I just searched through all my code and I've used href="actionUrl" for every ajax submit button that isn't using the form's default action. I've only used action="actionAlias" for non-ajax submit buttons. I think th

Re: Multiple AJAX submit buttons in STRUTS 2

2007-11-07 Thread kingysball
; Don't forget to use s:url to define the URL for your div > Finally, use Firebug or Fiddler to see what each post actually contains. > > Hope that helps, > Jeromy Evans > > kingysball wrote: >> As part of my STRUTS 2 application i'm trying to use the AJAX t

Re: Multiple AJAX submit buttons in STRUTS 2

2007-11-07 Thread Jeromy Evans
X theme to give me 2 submit buttons within a Form that I can use to submit data to either different Actions or different Methods in the same Action. Initially i tried the following - but this code only ever submits to the same Action. Is this posisble??

Multiple AJAX submit buttons in STRUTS 2

2007-11-07 Thread kingysball
As part of my STRUTS 2 application i'm trying to use the AJAX theme to give me 2 submit buttons within a Form that I can use to submit data to either different Actions or different Methods in the same Action. Initially i tried the following -

RE: Multiple submit buttons on form not working

2007-03-01 Thread Neil Aggarwal
your inbox. Visit http://www.spammilter.com for details. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 7:46 AM To: Struts Users Mailing List Subject: Re: Multiple submit buttons on form not working --- Neil Aggarwal <[EMAIL PROTEC

Re: Multiple submit buttons on form not working

2007-03-01 Thread Dave Newton
--- Neil Aggarwal <[EMAIL PROTECTED]> wrote: > > > > > > Any ideas why this is not working? I would guess because it's trying to convert the string value into a true/false boolean and failing? (If I change the value to "true" for the msg1/msg2 buttons it works.) So I guess I'm a little c

Multiple submit buttons on form not working

2007-02-28 Thread Neil Aggarwal
Hello: I am trying to follow this guide: http://struts.apache.org/2.0.6/docs/html-form-buttons-howto.html To create a multiple button form. Unfortuntely, it is not working for me. I created a simple demo page at: https://tweb.retcgroup.com/thymeleweb/test/FormTest.action As you can see, press a

RE: Validation + multiple Submit buttons

2006-11-16 Thread Andrew Martin
Schultz [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 14 november 2006 15:37 Aan: Struts Users Mailing List Onderwerp: Re: Validation + multiple Submit buttons -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Martin wrote: > That would be one solution, but in my case I have 4 sub

  1   2   3   >