That wouldn't work then. I would typically use some wrapper object in that case.

public class Foo {
  private String bar;

  public String toString() {
    return bar;
  }
}

The feed the dropdown with a list of Foo

Eelco


On 7/19/06, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote:
> * Eelco Hillenius:
>
> > A poor-man's method is to override toString.
>
> Do you  have an example  at hand please?   My usecase is  that the
> choice value  is a  String (not  the index in  the list),  and the
> choice label is another String.
> --
>      Jean-Baptiste Quenot
> aka  John Banana Qwerty
> http://caraldi.com/jbq/
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to