List<String> names = Arrays.asList(new String[]{"John", "Pete", "Vincent"});
Child child = new Child();
child.setName("John");
add(new DropDownChoice("name", new PropertyModel(child, "name"), names));

Martijn

On 11/29/06, Vincent Renaville <[EMAIL PROTECTED]> wrote:
> I have try to put : MyDropDownChoice.setModelValue(Db.ValueString) but
> the Dropdownchoice still chow the default value.
>
>
>
> On Tue, 2006-11-28 at 09:22 -0800, Igor Vaynberg wrote:
> > this comes up very often
> >
> > choices set and read their selection from their model object so all
> > you have to do is initialize the model object to the value you want
> > selected
> >
> > -igor
> >
> >
> > On 11/28/06, Vincent Renaville <[EMAIL PROTECTED]
> > distribution.com> wrote:
> >         Dear,
> >
> >         I search a solution for this problem, I have store
> >         Dropdownchoice
> >         selected item into my database. If the user want he can
> >         retrieve the
> >         data from the DB, but how to set the selected choice of a
> >         Dropdownchoice , to the value that it stores into the DB.
> >
> >         Hi hope you understand me :)
> >
> >         Kind regards,
> >
> >         Vincent
> >
> >
> >         
> > -------------------------------------------------------------------------
> >         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
> >         [email protected]
> >         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 
> > [email protected] 
> > 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-- 
<a href="http://www.thebeststuffintheworld.com/vote_for/wicket";>Vote</a>
for <a href="http://www.thebeststuffintheworld.com/stuff/wicket";>Wicket</a>
at the <a href="http://www.thebeststuffintheworld.com/";>Best Stuff in
the World!</a>

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to