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
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
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
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
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()
{
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
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
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
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
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
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.
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
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
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
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
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
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
--
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:
>
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
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
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
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
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
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
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.
>
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
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
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
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
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
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
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
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
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
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:
>
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
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.
--
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/
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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:/
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
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
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
> 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/
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
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
65 matches
Mail list logo