Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 98830 invoked from network); 13 Apr 2007 19:05:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Apr 2007 19:05:15 -0000 Received: (qmail 22191 invoked by uid 500); 13 Apr 2007 19:05:11 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 22167 invoked by uid 500); 13 Apr 2007 19:05:11 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 22156 invoked by uid 99); 13 Apr 2007 19:05:11 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2007 12:05:11 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of musachy@gmail.com designates 209.85.132.250 as permitted sender) Received: from [209.85.132.250] (HELO an-out-0708.google.com) (209.85.132.250) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2007 12:05:04 -0700 Received: by an-out-0708.google.com with SMTP id c34so987212anc for ; Fri, 13 Apr 2007 12:04:43 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=OyLBt7w0j+D2zW7xvA621szWBC9/TeBrwnusxDLbElJQ/reXciiC/b8hM9H8TWj/pfxZgw2k2iB0rC2NBLJe6dz2GDq5ilKxP0kbxYKxfyr7DMfuSm5OUyyuY5EZ1THQQhBywm6iZAkZLxREKHBKEeu0ep3T13Cdx5MyCtjjPOk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=LVPG22er3CkpwCg6Ta+1CIKY8VenQctAALYDEB9fmJaI48AgWFg8ryBKvububvEi40f2Ky6AJaWcnMBPCfY1j3yrbPw3bNaQSspCi8YiXhKpck/jUgmfwIibFIuEWBt4RNhC1vjqdJr0hboC7QPAX1xytXuO2F3K8IN202Ref74= Received: by 10.100.31.2 with SMTP id e2mr2741642ane.1176491083092; Fri, 13 Apr 2007 12:04:43 -0700 (PDT) Received: by 10.100.232.1 with HTTP; Fri, 13 Apr 2007 12:04:43 -0700 (PDT) Message-ID: Date: Fri, 13 Apr 2007 15:04:43 -0400 From: "Musachy Barroso" To: "Struts Users Mailing List" Subject: Re: Problem passing form fields with autocompleter In-Reply-To: <538060.13404.qm@web33506.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_18163_7273340.1176491083020" References: <538060.13404.qm@web33506.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_18163_7273340.1176491083020 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Actually now that you mention it, yeah, it should use the outer form by default, I will fix it for 2.1 regards musachy On 4/13/07, Scott Nesbitt wrote: > > > That did it! > > Thank you, thank you. Not sure why I have to specify > a form I am already in, but I don't care. It works! > > Thanks again, > > Scott > > --- Musachy Barroso wrote: > > > Ooops sorry, now I got it, you need to put sportsOrg > > inside a form, and > > point to it from the other autocopleter, using > > "formId" > > > > musachy > > > > On 4/13/07, Scott Nesbitt > > wrote: > > > > > > > > > Well, there is not submit per se, the action is > > > getting called when the user types the second char > > in > > > the lookup editor. > > > > > > Here is the log when the user types zz: > > > > > > DEBUG interceptor.FileUploadInterceptor - > > Bypassing > > > /html/ LookupSportsTeam > > > DEBUG interceptor.StaticParametersInterceptor - > > > Setting static parameters {} > > > DEBUG interceptor.ParametersInterceptor - Setting > > > params sportsTeam => [ zz ] > > > DEBUG util.XWorkConverter - Property: sportsTeam > > > DEBUG util.XWorkConverter - Class: > > > > > > com.nielsenmedia.lrs.enames2.view.lineup.LookupSportsTeamAction > > > DEBUG util.XWorkConverter - field-level type > > > converter for property [sportsTeam] = none found > > > DEBUG util.XWorkConverter - global-level type > > > converter for property [sportsTeam] = none found > > > DEBUG util.XWorkConverter - falling back to > > > default type converter > > > > > > [com.opensymphony.xwork2.util.XWorkBasicConverter@17e4c97] > > > DEBUG validation.AnnotationValidationInterceptor > > - > > > Validating /html/LookupSportsTeam with method > > execute. > > > > > > No mention of sportsOrg. > > > > > > Scott > > > > > > --- Musachy Barroso wrote: > > > > > > > When you click submit, are they getting > > submitted to > > > > the action (with > > > > values)? > > > > > > > > musachy > > > > > > > > On 4/13/07, Scott Nesbitt > > > > > > wrote: > > > > > > > > > > > > > > > Well, it is great that we are both right but > > it is > > > > > still not working. > > > > > > > > > > I don't care about "foo", I was just trying to > > > > make my > > > > > code simpler in the email. The actual code > > has > > > > two > > > > > autocompleters like this: > > > > > > > > > > > > > validate="false"> > > > > > > > > > action="LookupSportsTeam"/> > > > > > > > > > action="LookupSportsOrg"/> > > > > >
> > > > > > > > > id="sportsTeam" > > > > > > > keyName="sportsTeamKey" > > > > > theme="ajax" > > > > > > > > > href="%{#autosportsteam}" > > > > > cssStyle="width: > > 500px;" > > > > > > > dropdownHeight="180"; > > > > > loadMinimumCount="2" > > > > > > > loadOnTextChange="true" > > > > > autoComplete="false" > > > > > > > showDownArrow="false" > > > > > delay="100" > > > > > > > searchType="substring" > > > > > > > > > forceValidOption="true"/> > > > > > > > > > id="sportsOrg" > > > > > > > keyName="sportsOrgKey" > > > > > theme="ajax" > > > > > > > href="%{#autosportsorg}" > > > > > cssStyle="width: > > 450px;" > > > > > > > dropdownHeight="170"; > > > > > loadMinimumCount="2" > > > > > > > loadOnTextChange="true" > > > > > autoComplete="false" > > > > > > > showDownArrow="false" > > > > > > > searchType="substring" > > > > > > > > > forceValidOption="true"/> > > > > >
> > > > >
> > > > > > > > > > In LookupSportsTeamAction I need the value of > > what > > > > was > > > > > looked up in the sportsOrg field, but I can't > > seem > > > > to > > > > > get it. My sportsOrg and sportsOrgKey > > variables > > > > are > > > > > always null. > > > > > > > > > > Scott > > > > > > > > > > --- Dave Newton wrote: > > > > > > > > > > > --- Scott Nesbitt > > > > wrote: > > > > > > > Not sure why it should be getBar(). The > > name > > > > of > > > > > > the > > > > > > > hidden field is foo, so shouldn't that be > > the > > > > > > > variable that has the getter and setter? > > > > > > > > > > > > You guys are both right. > > > > > > > > > > > > The argument to the 'value' attribute is an > > > > object: > > > > > > > > > > > > > > > > > > > > > > > > > > > *is* looking for a getBar(), and you also > > need a > > > > > > get/setFoo() to get the value back to the > > > > action. > > > > > > > > > > > > If you wanted a hardcoded string value, for > > > > example, > > > > > > you'd have to say value="%{'bar'}" (or > > something > > > > > > like > > > > > > that) etc. > > > > > > > > > > > > d. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > > > > Looking for earth-friendly autos? > > > > > > Browse Top Cars by "Green Rating" at Yahoo! > > > > Autos' > > > > > > Green Center. > > > > > > http://autos.yahoo.com/green_center/ > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > To unsubscribe, e-mail: > > > > > > user-unsubscribe@struts.apache.org > > > > > > For additional commands, e-mail: > > > > > > user-help@struts.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > > __________________________________________________ > > > === message truncated === > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd ------=_Part_18163_7273340.1176491083020--