can you not create an iterator adapter that takes an iterator of pojos
and translates the pojo to some string?

-igor


On Jan 29, 2008 11:14 AM, Michael Mehrle <[EMAIL PROTECTED]> wrote:
> I have a working test page containing an AutoCompleteTextField. Thus far
> the data feeding it has been an Iterator of strings which is being
> passed to its overridden getChoices method. So far so good.
>
> What I need to do now is to pass in an Iterator of POJOs instead and
> have the AutoCompleteTextField render the 'name' field inside each of
> those beans. After some digging in the Wicket source I suspect that I
> need to create a custom renderer that does this - am I on the right
> track here or would you guys suggest a different approach?
>
> Another challenge will be to populate other form fields in the page
> after selecting an option from the AutoCompleteTextField. By selecting
> an option in the dropdown I am basically selecting an entire POJO, which
> is supposed to be used as the model for the other remaining fields. For
> instance, the POJO will contain address, zip, phone, etc. fields and by
> selecting the appropriate name in the AutoCompleteTextField it populates
> all other fields with the remaining data in the underlying POJO. Hope
> this makes sense - I think I have an idea of how to implement this, but
> would appreciate any tips/insights.
>
> Thanks!!
>
> Michael
>
>
>
>
> ---------------------------------------------------------------------
> 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