Re: autocomplete data source

2014-05-18 Thread Ilya Obshadko
Avoiding database operations during onActivate() phase is pretty obvious, but it's not applicable here, because we need to handle database object instantiation result (at least). As a simple example, if user doesn't have access to an object requested, we need to redirect him to a login page. We can

Re: autocomplete data source

2014-05-18 Thread Ilya Obshadko
Caching is definitely possible. But during onActivate() we cannot reliably determine whether it was caused by autocomplete event (thus we can use cached data), or it was caused by any other event (in which case we can't use cached data). So separating suggestions data source completely from the pa

Re: autocomplete data source

2014-05-18 Thread Ilya Obshadko
Most of the page requests are in fact AJAX (page contains a lot of zone updates besides autocomplete events). So distinguishing by isXHR() doesn't help. On Thu, May 15, 2014 at 6:39 PM, Michael Gentry wrote: > Hi Ilya, > > onActivate() gets called for both normal page render requests and AJAX/XH

Re: autocomplete data source

2014-05-18 Thread Geoff Callender
That's why I advise the following: http://jumpstart.doublenegative.com.au/jumpstart7/examples/navigation/onactivateandonpassivate/3 HTH, Geoff On 8 May 2014, at 10:33 pm, Ilya Obshadko wrote: > It turns out that running an event handler (onProvideCompletionsFrom) > in the same co

Re: autocomplete data source

2014-05-16 Thread Michael Gentry
Hi Ilya, onActivate() gets called for both normal page render requests and AJAX/XHR requests (used by the autocomplete). Have you tried: @Inject private Request request; and calling the isXHR() method in request in your onActivate() to determine if the request is normal or AJAX? onActivate() {

Re: autocomplete data source

2014-05-16 Thread John
Could you cache your hibernate results for subsequent calls? - Original Message - From: Ilya Obshadko To: Tapestry users Sent: Thursday, May 08, 2014 1:33 PM Subject: autocomplete data source It turns out that running an event handler (onProvideCompletionsFrom) in the sa

Re: Autocomplete fields in loop

2014-04-30 Thread Geoff Callender
It would seem that Autocomplete needs a context. Please vote here: https://issues.apache.org/jira/browse/TAP5-2329 Cheers, Geoff On 1 May 2014, at 6:59 am, Erich Gormann wrote: > Hi all, > > currently I work with a number of autocomplete fields rendered in a loop. > And thats exactl

Re: Autocomplete exception blank query parameter.

2014-02-27 Thread Barry Books
I get these also. It would be nice if they were logged as a WARN so it would be easy to ignore them in production. On Wed, Feb 26, 2014 at 9:19 AM, Lance Java wrote: > Some serverside actions (eg autocomplete) expect a well formed request > which may require some request parameters to be present

Re: Autocomplete exception blank query parameter.

2014-02-26 Thread Lance Java
Some serverside actions (eg autocomplete) expect a well formed request which may require some request parameters to be present. As you can imagine, a bot can run regular expressions and hit anything the looks like a URL. I think it's fine to ignore crawlers from error logging. It's difficult to do

Re: Autocomplete exception blank query parameter.

2014-02-26 Thread George Christman
Thanks for the reply lance. What does the actual exception mean? Does is it mean a request is being set with a missing parameter to the autocomplete component? I vaguely remember seeing this a long time ago while writing a custom autocomplete component. As far as the logs, I'm hosting the app on

Re: Autocomplete exception blank query parameter.

2014-02-26 Thread Lance Java
Sounds like a webcrawler / bot to me. Do you have the apache logs? You could check the user agent header. As a fix, Google for the list of known bots and their user agent headers and customised tapestry's exception reporting so that exceptions are not logged for crawler user agents.

Re: autocomplete show all button

2013-09-06 Thread Boris Horvat
Your business reason is clear but that doesnt really change my suggestion :) Create a link, assign a event to it, display a test when the link is selected. The test displayed should be the data that you pull form the db Cheers On Fri, Sep 6, 2013 at 10:24 PM, Jan Fryblik wrote: > ** > I unders

Re: autocomplete show all button

2013-09-06 Thread Jan Fryblik
I understand how it works. May be my explanation was a bit vague. So...I want to have text field with predefined options and also possibility to insert custom text. So i looked for like "editable select", but then i create plain textfield with autocomplete. It works fine as i want, but i would lik

Re: autocomplete show all button

2013-09-06 Thread Boris Horvat
So why not create a button that will populate a list of the available options? On Fri, Sep 6, 2013 at 9:04 PM, Jan Fryblik wrote: > ** > Hi guys, > > I'm using Tapestry-JQuery AutoComplete component and i would like to have > small button to show all options next to text field. Does somebody kno

Re: autocomplete show all button

2013-09-06 Thread Boris Horvat
It is not related to the autocomplete. Autocomplete triggers an event on the server side it is up to you to figure out what to return. Usually this should query some db table and return data that matches that. Example You have a filed that would help users to type in a country. When they start to

Re: autocomplete show all button

2013-09-06 Thread Jan Fryblik
That's what i'm trying to do, but i don't know how to force autocomplete to show all options. Or have i missed something? On Fri, 06 Sep 2013 21:12:58 +0200, Boris Horvat wrote: So why not create a button that will populate a list of the available options? On Fri, Sep 6, 2013 at 9:0

Re: Autocomplete Mixin with bootstrap3

2013-09-04 Thread Thiago H de Paula Figueiredo
On Wed, 04 Sep 2013 09:17:32 -0300, Eugen wrote: ups... :P i uploaded the image to: http://imagesup.net/?di=913782968996 Yeah, definitely CSS. Please file a JIRA for that. Meanwhile, you can add some CSS yourself to get it to look good. -- Thiago H. de Paula Figueiredo --

Re: Autocomplete Mixin with bootstrap3

2013-09-04 Thread Eugen
ups... i uploaded the image to: http://imagesup.net/?di=913782968996 Thanks 2013/9/4 Thiago H de Paula Figueiredo > ** > On Wed, 04 Sep 2013 04:57:43 -0300, Eugen wrote: > > Hi all, > > > Hi! > > a have a layout problem with an TextField decorated with Autocomplete > mixin. > The .tml: >

Re: Autocomplete Mixin with bootstrap3

2013-09-04 Thread Thiago H de Paula Figueiredo
On Wed, 04 Sep 2013 04:57:43 -0300, Eugen wrote:Hi all,Hi!a have a layout problem with an TextField decorated with Autocomplete mixin.The .tml:                           State                                          Country                        The mixin is working fine

Re: AutoComplete Mixin issue - Tapestry 5.2.6

2013-08-15 Thread Ilya Obshadko
Same here. Any ideas why does that happen? On Sun, Jun 24, 2012 at 9:24 PM, Simon Raveh wrote: > Hi All, > > We continue getting this error, I can't reproduce it on my dev system. > This only happens on a none ajax requests. > Any help is welcome. > > Thanks, > Simon > > From: Dongmei Cao mail

RE: autocomplete mixin - li.selected event?

2012-08-23 Thread Vladimir Bauer
I've found multiple field autocomplete: https://github.com/argoyle/tapestry-mfautocomplete this one satisfied my needs. -Original Message- From: William Lopes [mailto:williamlopes@gmail.com] Sent: Thursday, August 23, 2012 9:16 PM To: Tapestry users Subject: Re: autocomplete

Re: autocomplete mixin - li.selected event?

2012-08-23 Thread William Lopes
You would can put an onchange event in text input, don't? 2012/8/23 Vladimir Bauer > Good day everybody! > > Does autocomplete mixin fires a server side event after an option was > selected from a popup list? > If not any idea how to fire an event when option was selected? > > Regards, > Vladim

Re: Autocomplete with two parameters

2012-08-14 Thread William Lopes
I achieved, but I don't did with autocomplete, I chose for the input select with SelectModel. Anyway, thank you, in the future will be useful. Hugs. 2012/8/13 Robert Zeigler > Under the hood, tapestry is using the Ajax.Autocompleter from > Scriptaculous (at least for now). One of the parameters

Re: Autocomplete with two parameters

2012-08-13 Thread Robert Zeigler
Under the hood, tapestry is using the Ajax.Autocompleter from Scriptaculous (at least for now). One of the parameters to the javascript is "parameters" (see: http://script.aculo.us/docs/Ajax.Autocompleter.html). Tapestry doesn't allow you set this by default, BUT, you could extend the autocomple

Re: Autocomplete with two parameters

2012-08-13 Thread William Lopes
If someone to have some other idea that can to solve, I'm ready to listen. Thanks. 2012/8/13 William Lopes > Hi guys. > > I'm already for done my project, but now the things are too ugly. > > So, I need make an autocomplete, the default I already did, but don't work > of the way that I need. >

Re: AutoComplete Mixin issue - Tapestry 5.2.6

2012-06-24 Thread Simon Raveh
Hi All, We continue getting this error, I can't reproduce it on my dev system. This only happens on a none ajax requests. Any help is welcome. Thanks, Simon From: Dongmei Cao mailto:dongmei@icann.org>> Reply-To: Tapestry users mailto:users@tapestry.apache.org>> Date: Thursday, June 14, 20

Re: Autocomplete mixin: preserve trailing spaces -- or retrieve whole textfield value?

2012-06-22 Thread Thiago H de Paula Figueiredo
Hi! The JavaScript part of Tapestry's Autocomplete mixin in Tapestry is basically Autocomplete in Scriptaculous. I guess what you need is not supported now, so you can file a JIRA for that. Meanwhile, you can try getting the source for Autocomplete and tweak it for your needs. On Fri, 22

Re: Autocomplete mixin in a beaneditor

2012-06-13 Thread bdm
OK ... I get it working but not completely! Here is the solution working for me: But, in the previous piece of code I can not have my entity field (named 'model') working because of this error: It seems there is a confusion between the field 'model' from the BeanEditForm and mine ... How could

Re: Autocomplete mixin in a beaneditor

2012-06-12 Thread Chris Cureau
The only way I got it to work was to leave the field out of the beaneditor and present it as a normal textfield. If you're using the default template, use a div type of beaneditor-row and it all looks uniform. On Apr 22, 2012 2:21 AM, "Chris Cureau" wrote: > I've been trying to add my own paramet

Re: Autocomplete mixin in a beaneditor

2012-06-12 Thread bdm
Hello, I have got exactly the same pbm. Even the generated html does not contain any reference to autocomplete stuffs ... Seems, I missed something but I don't get it :( have you find a solution ? Thx, BDM. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Autocomplete-mixi

Re: autocomplete mixin - move the box closer to the input field

2012-01-16 Thread Paul Stanton
Sorry to revive an old thread, however I have since come up with something that seems to work 100%. I thought I should share in-case someone else finds it useful. Firstly, you need to override the default CSS for tapestry. It is wrong in some areas eg ul margin and just ugly in others (who use

Re: Autocomplete question

2011-12-28 Thread Taha Hafeez Siddiqi
Or if you are using tapestry-jquery, this might help http://tawus.wordpress.com/2011/12/28/multivalue-autocomplete-for-tapestry/ regards Taha On Dec 28, 2011, at 9:42 PM, bigcache1 wrote: > Thanks, I'm trying it now. > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.c

Re: Autocomplete question

2011-12-28 Thread bigcache1
Thanks, I'm trying it now. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Autocomplete-question-tp5102734p5105561.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e

Re: Autocomplete question

2011-12-27 Thread Joakim Olsson
Thanks for the plug. :-) /Joakim On Tue, Dec 27, 2011 at 12:59 PM, David Canteros wrote: > Maybe "tag-select"? Take a look to > https://github.com/argoyle/tapestry-tagselect > > > -- > David Germán Canteros > > > 2011/12/27 bigcach

Re: Autocomplete question

2011-12-27 Thread David Canteros
Maybe "tag-select"? Take a look to https://github.com/argoyle/tapestry-tagselect -- David Germán Canteros 2011/12/27 bigcache1 > Good day to everyone! > I have textfield where I need multiple input of people credentials, like: >

Re: autocomplete

2011-10-27 Thread Thiago H. de Paula Figueiredo
On Thu, 27 Oct 2011 13:14:34 -0200, csckid wrote: Thank you I was able to do it. How can I change the background color of autocomplete mixin? CSS. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Te

Re: autocomplete

2011-10-27 Thread csckid
Thank you I was able to do it. How can I change the background color of autocomplete mixin? -- View this message in context: http://tapestry.1045711.n5.nabble.com/autocomplete-tp4942541p4943300.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: autocomplete

2011-10-27 Thread Steve Eynon
Try assigning the to a String as oppose to a List. @Property private String matches; As textboxes generally update a String. You'll then have to provide an event handler for "provideCompletions" as described here: http://tapestry.apache.org/5.2/tapestry-core/ref/org/apache/tapestry5/corelib/

Re: Autocomplete mixin - Ajax request path

2010-12-16 Thread Robert Zeigler
You could use the url rewriting functionality introduced in 5.1 (note: the api for this changes between 5.1 and 5.2). It allows you to rewrite incoming urls and links within the application. It's a public api. Robert On Dec 16, 2010, at 12/162:06 AM , Inge Solvoll wrote: > I believe the code

Re: Autocomplete mixin - Ajax request path

2010-12-16 Thread Inge Solvoll
I believe the code that generates the link you're talking about is on line 150 of AutoComplete.java in T5.2.4. Link link = resources.createEventLink(*EVENT_NAME*); By doing a little bit of digging from there, I found that the (internal) service LinkSource does the hard work. I'm not the right p

Re: autocomplete mixin - move the box closer to the input field

2010-05-14 Thread Steve Eynon
Also, it looks like the Autocompleter is a pure script.aculo.us thing, defined in org/apache.tapestry5.scriptaculous_1_8_2.controls.js - maybe worthwhile looking at: http://wiki.github.com/madrobby/scriptaculous/ajax-autocompleter But I guess you would have already found this out... On 14 May 20

Re: autocomplete mixin - move the box closer to the input field

2010-05-14 Thread Thiago H. de Paula Figueiredo
On Fri, 14 May 2010 05:26:51 -0300, Paul Stanton wrote: previously (in tapestry4.1) i've done this by submitting the containing form asynchronously by providing a listener with the following annotation: @EventListener(targets = "myComponent", events = "onValueChanged") public void myListen

Re: autocomplete mixin - move the box closer to the input field

2010-05-14 Thread Paul Stanton
actually, further investigation shows that the value for 'top' cannot be overridden by js at 'onload' or similar, because the 'top' value is set every time the div is displayed. i suppose if i could attach a client side listener for 'menuDisplayed' (or the like) i could change the value. furth

Re: autocomplete mixin - move the box closer to the input field

2010-05-14 Thread Paul Stanton
yes, i was hoping to be able to change the value for 'top' before the component was rendered on the page (if that were possible), but i'm sure i can change the value after the page is rendered. i will try. fyi, changing the definition of the class 't-autocomplete-menu' would not override the i

Re: autocomplete mixin - move the box closer to the input field

2010-05-14 Thread Paul Stanton
sorry, i guess i could have explained that better. my option prividing and selection works just fine, but my use for the autocomplete is such that when an option is selected i would like to trigger an asynchronous server request/response. previously (in tapestry4.1) i've done this by submittin

Re: autocomplete mixin - move the box closer to the input field

2010-05-13 Thread Steve Eynon
Ol' Firebug tells me the autocomplete div looks like this: So I guess you should be looking to CSS style-ise #countryName:menu or .t-autocomplete-menu Steve. On 13 May 2010 23:48, Thiago H. de Paula Figueiredo wrote: > On Fri, 14 May 2010 00:24:12 -0300, Paul Stanton > wrote: > >> i've just

Re: autocomplete mixin - move the box closer to the input field

2010-05-13 Thread Thiago H. de Paula Figueiredo
On Fri, 14 May 2010 00:43:02 -0300, Paul Stanton wrote: just further to that, i'm new to tapestry5 and haven't completed my reading on ajax etc, but how would i listen for the 'something selected from list' event (for the autocomplete mixin), and do some asynchronous server side processi

Re: autocomplete mixin - move the box closer to the input field

2010-05-13 Thread Thiago H. de Paula Figueiredo
On Fri, 14 May 2010 00:24:12 -0300, Paul Stanton wrote: i've just started using the autocomplete mixin after reading this demo: http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/javascript/autocompletemixin one thing i'd like to change is how far away the search result div ap

Re: autocomplete mixin - move the box closer to the input field

2010-05-13 Thread Paul Stanton
just further to that, i'm new to tapestry5 and haven't completed my reading on ajax etc, but how would i listen for the 'something selected from list' event (for the autocomplete mixin), and do some asynchronous server side processing? advice or direction to docs/articles appreciated! thanks

Re: Autocomplete mixin css

2010-03-28 Thread based2
https://addons.mozilla.org/fr/firefox/addon/60 Bryan Lewis-5 wrote: > > http://tapestry.apache.org/tapestry5/guide/css.html > > Basically, you'll look at Tapestry's built-in stylesheet -- default.css in > the org.apache.tapestry5 folder of tapestry-core-5.1.0.5.jar or whatever > version you ha

Re: Autocomplete mixin css

2010-03-27 Thread Bryan Lewis
http://tapestry.apache.org/tapestry5/guide/css.html Basically, you'll look at Tapestry's built-in stylesheet -- default.css in the org.apache.tapestry5 folder of tapestry-core-5.1.0.5.jar or whatever version you have -- and take note of the style names that matter to you. For autocomplete, look fo

RE: autocomplete mixin within zone problem

2009-07-24 Thread De Saint Steban Emmanuel
I have exactly the same problem with form fragment. It is because the javascript which init the component (autocomplete, forma fragment, form validation and other ...) was relaoeded with the zone. You can see the javascript fonction on the bottom of the page. But when the zone was reloeded, thi

Re: Autocomplete problems in IE

2009-03-16 Thread Peter Lundberg
I just wanted to followup with my workaround for others. Firstly one could override assets, or at least this asset, using the classpath. Eg. createing your own src/main/resources/org/apache/tapestry5/corelib/mixins/autocompelte.js would cause it to get loaded instead of tapestrys. However,

Re: Autocomplete problems in IE

2009-03-15 Thread Peter Lundberg
Thanks, yes that would be the way to replace scriptaculous with a patched version. How could one replace or complement the autocomplete.js that is part of tapestry-core? Is creating my own component or tapestry-core.jar the only way? I want as little code for this in my project, I would expect s

Re: Autocomplete problems in IE

2009-03-15 Thread Qingbo Zhou
Hi Peter, You can have a look at this page: http://tapestry.apache.org/tapestry5/guide/conf.html Near the bottom there's a configuration option: tapestry.scriptaculous The path to the embedded copy of script.aculo.us packaged with Tapestry. This value may be overridden to use a different ve

Re: autocomplete, display more info

2009-01-25 Thread Thiago H. de Paula Figueiredo
Em Sun, 25 Jan 2009 11:00:06 -0300, Piero Sartini escreveu: I am facing this problem as well - is there any solution? (what I want to do is to return a Map in my onProvideCompletionFromField event. The key gets submitted by the form, the value is presented to the user) This is a common ne

Re: autocomplete, display more info

2009-01-25 Thread Piero Sartini
I am facing this problem as well - is there any solution? (what I want to do is to return a Map in my onProvideCompletionFromField event. The key gets submitted by the form, the value is presented to the user) Piero Am Montag 29 Dezember 2008 17:33:45 schrieb Joachim Van der Auwera: > I

Re: Autocomplete component

2008-05-21 Thread Marcus
Hi, Using autocomplete mixin, how do we know, if an option of the list provided was selected, or if user has entered another text? Would be great if some event was fired on server side when user select one of option provided by mixin. Thanks, Marcus

Re: Autocomplete component

2008-05-20 Thread Manuel Corrales
Ok, thanks! On Tue, May 20, 2008 at 8:25 PM, Josh Canfield <[EMAIL PROTECTED]> wrote: > The Autocomplete calls toString on each of the objects that you > return, and that is the value that is set into your input box. > > You can check out the source for the component it's pretty short. > > http:/

Re: Autocomplete component

2008-05-20 Thread Josh Canfield
The Autocomplete calls toString on each of the objects that you return, and that is the value that is set into your input box. You can check out the source for the component it's pretty short. http://tapestry.apache.org/tapestry5/apidocs/src-html/org/apache/tapestry/corelib/mixins/Autocomplete.htm

Re: Autocomplete mixin + select event

2008-04-29 Thread Leon Derks
Thanks for the tips! Leon Steven Woolley wrote: I've got it working by overriding the Autocomplete mixin and putting the following in the AfterRender (instead of using a json object). String configS = "{indicator:'" + loaderId + "',frequency:.5,minChars:" + minChars

Re: Autocomplete mixin + select event

2008-04-29 Thread Steven Woolley
I've got it working by overriding the Autocomplete mixin and putting the following in the AfterRender (instead of using a json object). String configS = "{indicator:'" + loaderId + "',frequency:.5,minChars:" + minChars + ",paramNa

Re: Autocomplete providecompletions + extra parameter

2008-04-29 Thread Josh Canfield
> Is it possible to add an extra context parameter to the providecompletions > method? You can change the content that is sent for the list by extending the Autocomplete mixin and override the generateResponseMarkup method. http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/corelib/

Re: Autocomplete mixin + select event

2008-04-29 Thread Josh Canfield
In 5.0.11 I was unable to find a good extension point for the autocomplete mixin. The scriptaculous Ajax.Autocompleter does support updateElement and afterUpdateElement methods, but as far as I can tell you can't get them into the configuration because the JSONObject quotes its attributes (making t

Re: Autocomplete custom look and feel

2007-01-11 Thread Jesse Kuhnert
Not really my favorite aspect of that component, but I think you can use the style definitions here as a good starting point for customization: http://trac.dojotoolkit.org/browser/trunk/src/widget/templates/ComboBox.css On 1/11/07, Nalin Gupta <[EMAIL PROTECTED]> wrote: Hi, Has anyone been abl