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

Reply via email to