Nino,

I think what PDiefent wants is literally to re-create the Swing
combobox component, so something like:

[TEXT_FIELD][BUTTON]

and when you click [BUTTON] it causes a DIV to appear with a list of
choices, but the user can also type their own in.

PD, the only way I can think to do this is just to distill the issue
down to it's simplest components in Wicket and give it a go.

<input wicket:id="textfield" type="text" /><input
wicket:id="dropdownButton" type="button"/>
<div wicket:id="popupListBox"></div>

where I imagine dropdownButton would be an AjaxButton of some kind
that would set the visibility of the popupListBox when clicked.
popupListBox would be a ListView of some kind.

This is all just guess-work from my part, I haven't tried to build a
component like this before. Sorry.

On Wed, Feb 10, 2010 at 10:25 AM, PDiefent <pdief...@csc.com> wrote:
>
> I don't understand. How do I create a textfield and a dropdown in one markup
> field. And how to synchronize the two contents?
> I didn't find any example in the wicket examples ...
>
> nino martinez wael wrote:
>>
>> Yes it's possible, just make a panel with a drop down and textfield, and
>> ajax enable both.. It should be simple.. Have you checked the wicket
>> examples?
>>
>> 2010/2/8 Peter Diefenthaeler <pdief...@csc.com>
>>
>>>
>>> Hi,
>>> I'm looking for an example of a ComboBox which is a combination of a
>>> textfield and DropDownChoice.
>>> It should be possible to type in a new value and submit it, or to select
>>> from the values in the DropDownChoice and submit it.
>>> The AJAX autocomplete example seems to be good, but you have to type in
>>> one
>>> character to get a choice ...
>>> Thanks, Peter
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>>
>
> --
> View this message in context: 
> http://old.nabble.com/Example-for-Combobox-wanted-tp27495901p27534457.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to