You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Gregor Kaczor <gk...@gmx.de> on 2011/11/17 18:49:49 UTC
Update Component on TextField Entry
Hi!
I need a hint how to solve the following problem.
I have a RepeaterView displaying a list of static links. Below there is
a text field. As soon as something is entered in that textfield (not
whitespace) I would like to replace those links with a list of
completely different links containing a parameter with content from the
text field.
Both link lists have the same number of items.
I was thinking to use AutoCompleteTextField to do that, but how do I
replace those links from protected Iterator<T> getChoices(String input) ?
Kind Regards
Gregor
--
How to find files on the Internet? FindFiles.net <http://findfiles.net>!
RE: Update Component on TextField Entry
Posted by Wilhelmsen Tor Iver <To...@arrive.no>.
> use the TextField component and add OnChangeAjaxBehavior to it, then
> from inside onEvent() you can repaint the list.
And remember to put a WebMarkupContainer around the repeater since repeaters cannot be addressed by Ajax (due to reused markup and resulting synthesized ids).
- Tor Iver
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Update Component on TextField Entry
Posted by Igor Vaynberg <ig...@gmail.com>.
use the TextField component and add OnChangeAjaxBehavior to it, then
from inside onEvent() you can repaint the list.
-igor
On Thu, Nov 17, 2011 at 9:49 AM, Gregor Kaczor <gk...@gmx.de> wrote:
> Hi!
>
> I need a hint how to solve the following problem.
>
> I have a RepeaterView displaying a list of static links. Below there is a
> text field. As soon as something is entered in that textfield (not
> whitespace) I would like to replace those links with a list of completely
> different links containing a parameter with content from the text field.
>
> Both link lists have the same number of items.
>
> I was thinking to use AutoCompleteTextField to do that, but how do I replace
> those links from protected Iterator<T> getChoices(String input) ?
>
> Kind Regards
>
> Gregor
>
> --
> How to find files on the Internet? FindFiles.net <http://findfiles.net>!
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org