The documentation might be a little scattered, however is a separate topic. Nonetheless, the Wicket Library site features most of the Wicket components and examples of their usage: e. g. DropDownChoice is demonstrated (along with the IChoiceRenderer) on the http://www.wicket-library.com/wicket-examples/compref?wicket:bookmarkablePage=:wicket.examples.compref.DropDownChoicePage
Jason Roelofs wrote: > > Which of course makes perfect sense... > > I'm sorry if I come across as crash, it's because I'm very annoyed. I > thought Wicket was the coolest Java framework out there, but now that I've > used it for 2 weeks on, I can't say that anymore. Every time I've moved on > to the next part of my website, it takes me 2+ hours to figure out how, > and > I'm not talking about entire pages, I'm talking about components of pages. > A > <select>, an Ajax-ified form, etc. Why do I have to deal with > IChoiceRenderers? Besides how the documentation doesn't tell me how to use > the thing, nor do the examples explain how it works, just "here ya go, > copy > this". It just doesn't make sense. > > Back to the matter at hand, does anyone have example code using > wicket-extensions Select and SelectOptions? There is absolutely NO usage > documentation on getting all that working together. > > Anyway, sorry about the rant, I'm just getting more disappointed with > Wicket > in general. It may be different than other Java frameworks, but I cannot > say > that it's any better. I like the idea, I like some of the implementation > of > it (how Ajaxing components work, best I've seen), but using the framework > has been an exercise in frustration from day 2. > > So I'll head back to banging on the DropDownChoice, I'll get it > eventually, > though I'm open for suggestions. > > Jason > > On 2/27/07, Robert Novotny <[EMAIL PROTECTED]> wrote: >> >> >> 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 >> > > ------------------------------------------------------------------------- > 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#a9192544 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