As for your search by multiple columns in the db... do something silly like
using an OR in your SQL and filter by both columns :)

Another idea is to include a drop down to filter by what column you want to
search.

~ Thank you,
  Paul Bors

-----Original Message-----
From: Gaetan Zoritchak [mailto:[email protected]] 
Sent: Wednesday, October 24, 2012 5:46 PM
To: [email protected]
Subject: Re: Using AutocompleteTextField with database entries (without a
converter)

Thanks for the input. I'm going to have a look.

Gaetan
2012/10/24 Paul Bors <[email protected]>

> Take a look at Select2 developed by Ivan Vaynberg one of Wicket's
> contributors:
> http://ivaynberg.github.com/select2/
>
> You should try out the "Loading Remote Data" and "Infinite Scroll with 
> Remote Data" examples.
>
> Thanks Ivan for a great job!
>
> ~ Thank you,
>   Paul Bors
>
> -----Original Message-----
> From: Gaetan Zoritchak [mailto:[email protected]]
> Sent: Wednesday, October 24, 2012 9:39 AM
> To: [email protected]
> Subject: Using AutocompleteTextField with database entries (without a
> converter)
>
> Hello,
> I don't know what is the best way of impleting that in Wicket
>
> That's my use case:
> - the user has to select a customer in a field of a form,
> - he starts to type some characters,
> - the list shows some possibilities based on a database request using 
> the first and last names, the email, ...
> - then he selects one item in the list,
> - the field just shows few informations (Last Name for exemple).
>
> I don't want to use a converter because the data in the field could 
> eventually match more than one entry in the database. I can give more 
> context in the list to make the user be sure of his selection. When 
> the selection is made, I can put a title so that on a mouse over event 
> the user visualize the full information on the customer selection.
>
> The best solution would be to use the database id of the customer as a 
> key during the selection phase.
>
> I don't know what is the best way of implementing this behaviour.
>
> Thanks a lot for any ideas,
>
> Gaetan,
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to