It seems to me that you just want a Label (with the persons name)
and a button (that pops up a person search)

Because what does that text field really do?
can somebody really type something in it?


On Nov 28, 2007 8:12 PM, Sébastien Piller <[EMAIL PROTECTED]> wrote:

> Johan Compagner a écrit :
> > Are you using wicket 1.3?
> > Then you can add a person convertor (toObject/toString)
> > But a txt field for the complete person that sounds very strange.
> > What do you want to edit?? Do yu want to  choose a person? Or do you
> > want to edit a preoperty of that person?
> >
>
>
> Yes, I'm using 1.3 rc1.
>
> In my case, I need a text field to store a foreign key referencing a
> person (assign a person to a record of another table). I don't use
> dropdownchoice or else because I've got a large number of people in my
> table, and a ddc with thousands of options may not be usable.
>
> In place, I use a textfield and a link on its right, which allows the
> user to search a person in a popup (on a pagined list) or manually input
> the Person ID if already known.
>
> I'm using Hibernate too. On the form submit, the integer foreign key
> need to be converted to an instance of Person (and thats why I need to
> use a custom converter).
>
> I don't know if there is a better way to fit my needs, but this one works
> ;)
>

Reply via email to