Ok, I see now in the docs that the Direct service should not be used if the Autocompleter is in a loop. So maybe the only real problem here is that the Tapestry @FieldLabel component throws that error on every search. I have a workaround where I am using a regular <label> HTML element with the @Any component. But, at least I working autocompleters in a loop!
Ben -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Dotte Sent: Friday, August 25, 2006 12:52 PM To: Tacos Developers Subject: Re: [Tacos-devel] Autocompleter in a Loop Interesting, I have always used direct="ognl:true" on Autocompleters to speed things up but I tried turning that off as in your example and now both dropdowns work. But now it spits out a stack trace in the console every time a search gets run: "Field [EMAIL PROTECTED]/autocompleteField] has already been pre-rendered. This exception may indicate that a FieldLabel rendered, but the corresponding field did not." I wonder if your example would work with the Direct service? In any case, thanks for your quick response, this gets me one step closer to getting this working. Ben -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of andyhot Sent: Friday, August 25, 2006 12:32 PM To: Tacos Developers Subject: Re: [Tacos-devel] Autocompleter in a Loop Doesn't this work? http://opencomponentry.com:8080/tacos/bugs/Bug58.html It has 2 autocompleters in a loop (of 2 iterations) Here's the source: https://svn.sourceforge.net/svnroot/tacos/tacos-4.0/trunk/demo/docroot/W EB-INF/bugs/Bug58.html https://svn.sourceforge.net/svnroot/tacos/tacos-4.0/trunk/demo/docroot/W EB-INF/bugs/Bug58.page Ben Dotte wrote: > I just tried upgrading our app to Tacos 4.0 final. I'm glad to see the > new 'parameters' parameter for the Autocompleter, this makes it much > easier to use in a loop. The problem I'm running across now though is > that I have two Autocompleters being rendered in a loop and drop-down > values only appear for the first one rendered when the user enters a > search. I've tried switching which one gets rendered first but either > way only the first one works. I have verified that the search listener > gets called by both of them and that the search list page property is > being populated in both cases. > > > > The only thing I can think of is that I have both Autocompleters pointed > to the same search list page property since the user can only search one > at a time anyway. But I can't have separate page properties for each > once since it is in a loop and I don't know how many I would need. I > even tried using a Map whose values were the search lists for each > autocompleter but again only the first one rendered the dropdown. > > > > Any ideas? > > > > Thanks, > > Ben > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > ------------------------------------------------------------------------ > > _______________________________________________ > Tacos-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/tacos-devel > -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / J2EE Consulting ------------------------------------------------------------------------ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Tacos-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tacos-devel ------------------------------------------------------------------------ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Tacos-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tacos-devel ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Tacos-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tacos-devel
