Re: two forms, two submits
Hello I was able to configure it to keep both separate. However now the error is when I submit on a very simple form with the code below it states: No getter method available for property value for bean under name dropDown dropDown is just a collection of LabelValueBean. I just expected on submit for the option value to be the value of the filter and be delivered filter/value to the action. Do I need to create dropDown as a two member object with a value member and an array of LabelValueBean? Thanks to all who responded/viewed. struts table tr td html:select property=filter onchange= option value=All PendingAll Pending/option html:options collection=dropDown property=value labelProperty=label / option value=AllAll/option /html:select tdhtml:submit property=FilterSubmit value=Filter Submit onclick=this.form.submit() //td td/td /tr /table with this html table tr td select name=filter onchange=option value=All PendingAll Pending/option option value=0Option One/option option value=1Option Two/option option value=AllAll/option/select --- On Mon, 9/22/08, Piero Sartini [EMAIL PROTECTED] wrote: From: Piero Sartini [EMAIL PROTECTED] Subject: Re: two forms, two submits To: Struts Users Mailing List user@struts.apache.org Date: Monday, September 22, 2008, 4:26 PM He mentioned html:submit - I guess we are talking about Struts 1, so there are no themes involved. Piero On Monday 22 September 2008 22:14:50 Kawczynski, David wrote: FYI, a theme can be specified in a s:form tag or any of its s: form elements via theme=simple|xhtml|ajax attribute. If you didn't specify one it's using the xhtml theme. Do your forms submit to the same event handler? It would be helpful if we could see the struts.xml and the web pages that house the forms. -Original Message- From: cpanon [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2008 3:57 PM To: Struts Users Mailing List Subject: Re: two forms, two submits Hi Pascal I dont understand the use of the word theme. This is a very simplistic jsp that has two forms, each with a different action and a html:submit button that does not work for one of the two forms. I hope I am clearer. It is almost too simple to further describe. tia. Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: two forms, two submits
Try this: http://wiki.apache.org/struts/StrutsWidgets#head-d413131b40091e2337eb036c8a7ce9e43f428aec On Tue, Sep 23, 2008 at 7:47 AM, cpanon [EMAIL PROTECTED] wrote: now the error is when I submit on a very simple form with the code below it states: No getter method available for property value for bean under name dropDown dropDown is just a collection of LabelValueBean. I just expected on submit for the option value to be the value of the filter and be delivered filter/value to the action. Do I need to create dropDown as a two member object with a value member and an array of LabelValueBean? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
two forms, two submits
Hello I have two non-nested forms, each with their own submit button and separate action destinations. The problem is when I click the second form the first form always fires. Should this, primitive, design work as intuitive with each only submitting to the action on the specific form that the submit button is clicked? tia.
Re: two forms, two submits
I guess you should be more specific about the problem, what is the theme you are using ? The answer to your question is yes, it is working intuitively, as I use it in my own projects. - Pascal http://www.cameleon-sporting.com cpanon wrote: Hello I have two non-nested forms, each with their own submit button and separate action destinations. The problem is when I click the second form the first form always fires. Should this, primitive, design work as intuitive with each only submitting to the action on the specific form that the submit button is clicked? tia. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: two forms, two submits
FYI, a theme can be specified in a s:form tag or any of its s: form elements via theme=simple|xhtml|ajax attribute. If you didn't specify one it's using the xhtml theme. Do your forms submit to the same event handler? It would be helpful if we could see the struts.xml and the web pages that house the forms. -Original Message- From: cpanon [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2008 3:57 PM To: Struts Users Mailing List Subject: Re: two forms, two submits Hi Pascal I dont understand the use of the word theme. This is a very simplistic jsp that has two forms, each with a different action and a html:submit button that does not work for one of the two forms. I hope I am clearer. It is almost too simple to further describe. tia. Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: two forms, two submits
He mentioned html:submit - I guess we are talking about Struts 1, so there are no themes involved. Piero On Monday 22 September 2008 22:14:50 Kawczynski, David wrote: FYI, a theme can be specified in a s:form tag or any of its s: form elements via theme=simple|xhtml|ajax attribute. If you didn't specify one it's using the xhtml theme. Do your forms submit to the same event handler? It would be helpful if we could see the struts.xml and the web pages that house the forms. -Original Message- From: cpanon [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2008 3:57 PM To: Struts Users Mailing List Subject: Re: two forms, two submits Hi Pascal I dont understand the use of the word theme. This is a very simplistic jsp that has two forms, each with a different action and a html:submit button that does not work for one of the two forms. I hope I am clearer. It is almost too simple to further describe. tia. Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]