Re: submit button

2009-09-15 Thread Dale Newfield
fea jabi wrote: may I know what the javascript will be? add an onclick on the button that adds the parameter you want. Or just set a name on the submit button so that "Add+Employee" will be sent if that button is pressed, and teach the action to decipher all the i18n versions of that string.

RE: submit button

2009-09-15 Thread fea jabi
may I know what the javascript will be? > Date: Tue, 15 Sep 2009 11:59:20 -0400 > From: d...@newfield.org > To: user@struts.apache.org > Subject: Re: submit button > > fea jabi wrote: > > have a submit button which has the value of "Add Employee" &

Re: submit button

2009-09-15 Thread Dale Newfield
fea jabi wrote: have a submit button which has the value of "Add Employee" Add Employee but when submitted I want the property to be set to another value "add" in the request action="add" How can this be done? Without javascript it cannot. -Dale --

Re: Submit button with no form

2008-09-12 Thread oscar perez
another alternative would be to use a normal anchor tag and via CSS to make it look like a button.. On Wed, Sep 10, 2008 at 3:47 PM, Dan <[EMAIL PROTECTED]> wrote: > Lukasz Lenart escribió: > >> As Don said, implement small form, only with submit button and you >> wouldn't have to use JavaScript.

Re: Submit button with no form

2008-09-10 Thread Dan
Lukasz Lenart escribió: As Don said, implement small form, only with submit button and you wouldn't have to use JavaScript. Regards OK, I´ll try to do it Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Submit button with no form

2008-09-08 Thread Lukasz Lenart
As Don said, implement small form, only with submit button and you wouldn't have to use JavaScript. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Submit button with no form

2008-09-08 Thread paul wisehart
Dan wrote: Is there any other option instead of using Javascript? I have googled but didnt find any answers. flash ? maybe some applet trickery? what's wrong with a form? --paul - To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: Submit button with no form

2008-09-08 Thread Dan
Lukasz Lenart escribió: Hi, You can use JavaScript and onclick event: Regards Hi, Is there any other option instead of using Javascript? I have googled but didnt find any answers. Thanks in advance, - To unsubscrib

Re: Submit button with no form

2008-09-07 Thread Lukasz Lenart
Hi, You can use JavaScript and onclick event: Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Submit button property in ajax not sends value to action.

2007-11-01 Thread Musachy Barroso
Fixed on 2.1: https://issues.apache.org/struts/browse/WW-1930 musachy On 11/1/07, Vinicius Medeiros Peretti <[EMAIL PROTECTED]> wrote: > Thanks very much, this is the way! > But I think that the property of submit button should be posted. > > Thanks, > > Vinicius > > Jeromy Evans wrote: > > I've

Re: Submit button property in ajax not sends value to action.

2007-11-01 Thread Vinicius Medeiros Peretti
Thanks very much, this is the way! But I think that the property of submit button should be posted. Thanks, Vinicius Jeromy Evans wrote: I've read somewhere, but can't find the reference, that you're correct that dojo doesn't post the value of the submit button with XHR. Instead, I always po

Re: Submit button property in ajax not sends value to action.

2007-10-31 Thread Jeromy Evans
I've read somewhere, but can't find the reference, that you're correct that dojo doesn't post the value of the submit button with XHR. Instead, I always post to different methods in the action - one for each submit button. eg. action="SomeActionMethodA" value="some"/> action="SomeActionMethod

Re: Submit Button Tag passing an expression to onclik attribute

2006-09-20 Thread Laurie Harper
The problem is a little more fundamental than that :-) the onclick attribute would need to be specified as onclick="<%="hilightButton2('"+myval+"')"%>" or something equally ganky. L. Paul Benedict wrote: myval must be a server side Java variable. Do you have this value declared and with a va

Re: Submit Button Tag passing an expression to onclik attribute

2006-09-19 Thread Paul Benedict
myval must be a server side Java variable. Do you have this value declared and with a value? Check by printing it out onto the JSP normally, it should be there; if it is not, you have another problem. chamal desilva wrote: Hi, Can we pass an expression to onclick handler of struts html:submit

Re: submit button value vs displayed text

2006-01-21 Thread Niall Pemberton
ROFL Niall - Original Message - From: "Jakota Dack" <[EMAIL PROTECTED]> To: Sent: Saturday, January 21, 2006 9:06 PM Subject: Re: submit button value vs displayed text > > McGrady uses a processes that automatically makes gif buttons and is both > > capabl

Re: submit button value vs displayed text

2006-01-21 Thread Jakota Dack
> McGrady uses a processes that automatically makes gif buttons and is both > capable of i18n and change of font and color. He has a special taglib for > doing > that. Ask him and he might give it to you. Might He? Why are you talking about yourself in the third person? Does that creep out you

Re: submit button value vs displayed text

2006-01-21 Thread Dakota Jack
Checkout www.michaelmcgrady.com and click on the button ideas link. All the code for each option is there. I would suggest the so-called "(new) LOOKUP DISPATCH ACTION SOLUTION". With this solution internationalizing your button is easy. McGrady uses a processes that automatically makes gif butt

Re: submit button value vs displayed text

2006-01-20 Thread Michael Jouravlev
On 1/20/06, David Thielen <[EMAIL PROTECTED]> wrote: > Hi; > > When I create a button I would like for the value="add" to always have the > text add - for my programming that uses that value to determine which button > was pressed. > > However, I want the displayed text to come from a resource so i

Re: Submit button and MyAction

2005-02-12 Thread Dakota Jack
Check: http://www.michaelmcgrady.com/button/ On Sat, 12 Feb 2005 00:22:41 -0800, Sab <[EMAIL PROTECTED]> wrote: > I have a jsp with 2 buttons. (Update and Cancel buttons.) > When 1 is clicked I want to check which button is clicked. If Update is > clicked I want to forward to another jsp. > How d