I'm sorry Vineet, I've read your previous message unattentively and used
AjaxEventBehavior("onkeyup").
ajaxformcomponentupdatingbehavior("onkeyup") and
ajaxformcomponentupdatingbehavior("onchange") work perfect!
Huge thanks for you help
* Katherine [Mon, 24 May 2010 18:32:11 +
I tried onkeyup event at the beginning, but there is also not everything
fine :(
there is a delay for 1 character, my searchfield ModelObject is
filled by this character only when the next is pressed.
I think AutocompletTextField also uses this event to fill in the object
and call its getchoi
a typo in previous post ,
formcomponentupdatingbehavior or a *formsubmitting* behavior to fire .
2010/5/24 vineet semwal
> sorry i realized the previous idea is bad because to even read the
> formcomponent input you will require either formcomponentupdatingbehavior
> or a ajax submitting behavi
sorry i realized the previous idea is bad because to even read the
formcomponent input you will require either formcomponentupdatingbehavior
or a ajax submitting behavior to fire .
you just wanted to update label when key is pressed so just add
ajaxformcomponentupdatingbehavior with
onkeyup event
Thanks for idea, but unfortunately onrequest is a final method.
I tried to add my Label to the target used in respond method, but
nothing happens in this case :(.
* vineet semwal [Mon, 24 May 2010 14:28:46
+0530]:
you can add your own autocompletebehavior in
autocompletetextfield,there
you
you can add your own autocompletebehavior in autocompletetextfield,there you
can do the label update in onrequest if the size is greater than what you
want,you will also have to write a dao method that returns the count of
items returned so that you can
check with the size you want.
2010/5/24 Kath
There is no problem in how many items returned, the problem I need to
notify user, that there are N items in general.
So I just need a possibility to update Label by ajax after getChoices
got number of items.
* vineet semwal [Mon, 24 May 2010 13:19:47
+0530]:
one way is to make sure that not
one way is to make sure that not more than n numbers of rows are returned
from your dao itself
where n is the maximum number of choices you want to process in
getchoices() but it may be not what you want.
2010/5/24 Katherine
>
> As I've wrote there is no AjaxRequestTarget in getChoices that me
As I've wrote there is no AjaxRequestTarget in getChoices that means
AjaxRequestTarget.get() returns null there.
* Gerolf Seitz [Sun, 23 May 2010 20:50:58
+0200]:
AjaxRequestTarget.get() returns the current AjaxRequestTarget, if
there
is
one,
otherwise it returns null.
use that in the getC
AjaxRequestTarget.get() returns the current AjaxRequestTarget, if there is
one,
otherwise it returns null.
use that in the getChoices callback and you should be fine.
On Sun, May 23, 2010 at 8:17 PM, Katherine wrote:
> Hello,
>
> Can anybody help newbie with following question:
> I'm using Aut
Hello,
Can anybody help newbie with following question:
I'm using AutocompletText field with
AjaxFormComponentUpdatingBehavior("onchange"), which catches onchange
event, when user selects item from the list.
It appeared so that sometimes I get too many items for DropDownList,
and I don't
11 matches
Mail list logo