RE: Help needed on question regarding html:select and html:options...cannot turn off validator

2004-11-11 Thread t t
. > the one that submits the > page). > > Regards, > David > > -Original Message- > From: t t [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 10, 2004 8:05 PM > To: Struts Users Mailing List > Subject: RE: Help needed on question regarding > html:select a

RE: Help needed on question regarding html:select and html:options...cannot turn off validator

2004-11-10 Thread David G. Friedman
l:form and html:javascript tags from your invoking page? (i.e. the one that submits the page). Regards, David -Original Message- From: t t [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 10, 2004 8:05 PM To: Struts Users Mailing List Subject: RE: Help needed on question regarding html:select and ht

RE: Help needed on question regarding html:select and html:options...cannot turn off validator

2004-11-10 Thread t t
ct item, then add > each new item. Creative > use of the iterate tag plus javascript can do it, or > you could find good > examples if you google - that's how I learned how to > do it. > > Regards, > David > > -Original Message- > From: t t [mailto:[EMAIL

Re: Help needed on question regarding html:select and html:options...but...

2004-11-10 Thread t t
Thanks, Erik. I did set it to false. But it's still been validated when submitted. confusing... --- Erik Weber <[EMAIL PROTECTED]> wrote: > There is a "validate" attribute to the "action" > element in > struts-config.xml. You set it to true or false. > > http://struts.apache.org/userGuide/dev_va

RE: Help needed on question regarding html:select and html:options...cannot turn off validator

2004-11-10 Thread David G. Friedman
u google - that's how I learned how to do it. Regards, David -Original Message- From: t t [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 10, 2004 6:41 PM To: Struts Users Mailing List Subject: Re: Help needed on question regarding html:select and html:options...cannot turn off

Re: Help needed on question regarding html:select and html:options...cannot turn off validator

2004-11-10 Thread Erik Weber
There is a "validate" attribute to the "action" element in struts-config.xml. You set it to true or false. http://struts.apache.org/userGuide/dev_validator.html Erik t t wrote: How can I turn off validator? THanks. --- t t <[EMAIL PROTECTED]> wrote: Or I can set a parameter before executing th

Re: Help needed on question regarding html:select and html:options...cannot turn off validator

2004-11-10 Thread t t
How can I turn off validator? THanks. --- t t <[EMAIL PROTECTED]> wrote: > Or I can set a parameter before executing the added > action. > --- t t <[EMAIL PROTECTED]> wrote: > > > Hi, Erik, > > I got an idea. I can insert another action before > > the actual action be executed. And use javascrip

Re: Help needed on question regarding html:select and html:options... I got an idea.

2004-11-10 Thread t t
Or I can set a parameter before executing the added action. --- t t <[EMAIL PROTECTED]> wrote: > Hi, Erik, > I got an idea. I can insert another action before > the actual action be executed. And use javascript > change a hidden property before executing the added > action, then I can do what i

Re: Help needed on question regarding html:select and html:options... I got an idea.

2004-11-10 Thread t t
Hi, Erik, I got an idea. I can insert another action before the actual action be executed. And use javascript change a hidden property before executing the added action, then I can do what i want to do in the added action. What do you think? I will try it later. Thanks for your help! Tong Eri

Re: Help needed on question regarding html:select and html:options... A problem

2004-11-10 Thread Erik Weber
JavaScript can change the action URL on the fly. For example: http://www.willmaster.com/possibilities/archives/wmp20030527001.shtml However, I'm not sure how compatible this type of thing will be with the Struts form tag. I've never tried it. I'm surprised others aren't speaking up because the "m

Re: Help needed on question regarding html:select and html:options... A problem

2004-11-10 Thread t t
Hi,Erik, I think that helps. I have another question. Besides the "action" attribute in html:form, is anywhere else we can specify another "action" corresponding the submission of javascript? Thanks. Tong Erik Weber <[EMAIL PROTECTED]> wrote: There may be other ways or better ways, but one thing

Re: Help needed on question regarding html:select and html:options... A problem

2004-11-10 Thread Erik Weber
There may be other ways or better ways, but one thing you could do is vary the action URL. You could have the same action class serving slightly different action mappings, some with validation set to true and some with validation set to false. I did what you are trying to do in a non-Struts Ser

Re: Help needed on question regarding html:select and html:options... A problem

2004-11-10 Thread t t
The problem is, when the form is submitted, it will be validated according to the validator. then error will occur since the user didn't intend to submit and he/she didn't fill other required fields. And in my "acion" program, I don't know how to tell whether it was submitted by "javascript" or

Re: Help needed on question regarding html:select and html:options...

2004-11-10 Thread t t
Thank you for the hint. I will try. Erik Weber <[EMAIL PROTECTED]> wrote:I don't know exactly how do it using JavaScript. However, I know there's a way to do it. But, you'd have to have all list data downloaded to the client's browser (could be undesirable depending on list size), so you may w

Re: Help needed on question regarding html:select and html:options...

2004-11-10 Thread Erik Weber
I don't know exactly how do it using JavaScript. However, I know there's a way to do it. But, you'd have to have all list data downloaded to the client's browser (could be undesirable depending on list size), so you may want to rethink that approach once you figure out how to do it. Obviously i