Thats all for your input. I'll use them when extending my library and specially the Autocompleter.
As for the MaxResults, really the best way would be in the database query or equivalent. No use getting thousands of rows just to truncate them in the component listener as we all agree. I would like to add this feature to my own Autocompleter since I added a service parameter wich when passed gives a Hivemind service to a DAO witch always implement key methods with the Autocompleter can use to get it's data. So in this calling mode the listener is the Autocompleter itself that provides it, so it will pick up the parameter and issue the apropriate call to the persistence layer to retrive just the MaxResults first rows!
Sorry
On 5/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
There's also
http://tacoscomponents.jot.com/BugReporter/Bug98
describing exactly that. It'll probably make it in beta-3.
As for the button that makes autocompleter show-up the
available options, i think that triggering (in _javascript_)
the onchange event of the autocompleter will work.
We did something similar to make the selenium tests work
(we triggered key-events there).
The autocompleter can use of several other enhancments.
I recently added a clientOnly parameter = all options are added
in the original html
We need a cache parameter. It will optionally cache responses
for the given input string - no need to redo them, i.e. when user hits
backspace. This cache may also be shared across multiple autocompleter.
I had built such an autocompleter a year ago using DWR - so i'll
eventually add such capabilities. If only i could quit sleeping :)
From Ben Dotte <[EMAIL PROTECTED] >:
> That's what we have done for maxResults (truncate in the search
> listener)--search lists with > 250 items are particularly unresponsive
> in IE6. Still, a maxResults parameter that automatically truncates the
> list would be nice, if not quite as performant (our search
> short-circuits itself at the truncate limit).
>
> Ben
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of
> [EMAIL PROTECTED]
> Sent: Monday, May 01, 2006 2:31 PM
> To: [email protected]
> Subject: Re: [Tacos-devel] Autocompleter Question
>
> I'd add the maxResults logic in the listener.
> Also for minSearchCharacters, see
> http://wiki.script.aculo.us/scriptaculous/show/Ajax.Autocompleter
> and tacos Autocompleter 'options' parameter.
> You can have options="literal:{minChars:3}" added
>
>
> From Pedro Viegas <[EMAIL PROTECTED]>:
>
> > Guess so, but it's a little scary. Not to use all the time at least,
> if it
> > was a large list, it would be very expensive and slow to pull all the
> items
> > to show.
> > I think this would be of interest but some security features would
> have to
> > be in place.
> > I'm building a little component library of my own, and the
> Autocompleter
> > shold indeed be extended witch I plan to do.
> > I think a MaxResults is very handy. Is this situation there would be
> no
> > problem with result size. It would be truncated to the MaxResults.
> > Also a MinSearchCharacters would be helpfull. In say a large client
> list
> > finding something with the letter "a" would probably return 90% of the
> > results. Normally someone trying to select a record types at least 2
> or 3
> > characters and this way a large and not needed search would be
> avoided.
> >
> > The MaxResults could be added in the listener.
> > The button you mention, could also be improvised by invoking the JS
> that the
> > onChange is associated to.
> > The MinSearchCharacters would also mean intercepting the OnChange or
> > providing our own.
> >
> > I will look into this soon. If someone does not post some light here I
> could
> > post what I can find here later on.
> >
> > I'm not an experienced Tapestry developer, but have been building
> components
> > for some weeks now so I'll try.
> >
> > On 5/1/06, Chris Chiappone <[EMAIL PROTECTED]> wrote:
> > >
> > > The reason I would like to have a button show the full list is if
> the user
> > > wants to know all of the possibilities in the selection list without
> > having
> > > to type anything. Does that make sense?
> > >
> > > On 5/1/06, Chris Chiappone < [EMAIL PROTECTED]> wrote:
> > >
> > > > One other question I had is that I notice if the autocompete is
> wrapped
> > > > in a conditional it doesn't seem to work. Have others experienced
> this?
> > > >
> > > >
> > > > On 5/1/06, Chris Chiappone <[EMAIL PROTECTED]> wrote:
> > > >
> > > > > I have been using the Tacos autocompter with success for some
> time now
> > > > > and wanted to know how I could add functionality. What I
> basically want
> > is
> > > > > the ability to press a button next to the textfield that would
> autofill
> > all
> > > > > values in the completion list. Would this be something easy to
> > implement?
> > > > > Any thoughts or advice would be great. Thanks
> > > > >
> > > > > --
> > > > > ~chris
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > ~chris
> > > >
> > >
> > >
> > >
> > > --
> > > ~chris
> > >
> >
> >
> >
> > --
> > Pedro Viegas
> >
>
>
> --
>
>
>
>
> -------------------------------------------------------
> 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_______________________________________________
> 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
--
Pedro Viegas
