The DropDownChoice allows you to specify in one of its constructors a custom
implementation of IChoiceRenderer, which can be used to customize the item
IDs and labels. You may try to have a look on the IChoiceRenderer and the
ChoiceRenderer (which is its default implementation) JavaDoc.


Jason Roelofs wrote:
> 
> Why is nothing in Wicket obvious?
> 
> I want:
> 
> <select ...>
>   <option value="&">AND</option>
>   <option value="|">OR</option>
> </select>
> 
> My model has a 'gated' field that is either '&' or '|'
> 
> Why can't I have:
> 
> add(new DropDownChoice("gated", model, {"AND", "OR"},  {"&", "|"});
> 
> or better yet:
> 
> add(new DropDownChoice("gated", model, { {"&", "AND"}, {"|", "OR"}});
> 
> (assuming properly created arrays, of course)?
> 
> How is this supposed to work?
> 
> Thanks
> 
> Jason
> 
> -------------------------------------------------------------------------
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/DropDownChoice-confusion-tf3304232.html#a9191899
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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