I think radio choice should be implemented like a ListView so that you can control exactly what markup is displayed. Actually, I'd like to see all the looping controls do that, but it seems especially relevent for radio buttons. Although, Tapestry, .NET, JSF all do it the way you guys are now, so there must be something I'm missing. I just figure, if your going to mock it up anyway, Wicket may as well do something usefull with that markup instead of just chucking it.
Oh, and I really like the new choice API. Using OGNL to get the properties from a list of objects is very intuitive. -Phil On 7/12/05, Johan Compagner <[EMAIL PROTECTED]> wrote: > > > DropDownChoice(String id, IModel model, List source) > > DropDownChoice(String id, IModel model, List source, IChoiceRenderer > > renderer) > > > > > ok will change the constructors. > > >Another point: When I experimented with the old implementation of > >Choice, I tried to setup something that would display a list of > >radiobuttons but should display multiple columns, i.e. > > > > ( ) bla bla bla > > ( ) blabla blaha bla > > ( ) bla2 blabla blah > > > >this wasn't really possible because I couldn't emit the required <td> > >and </td> tags and I had to use a difficult workaround using a > >ListView. It would be nice if you could somehow switch off > >markup-escaping. > > > > > if you can improve or have youre own RadioChoice implementation for this > i will be happy > to integrate these kind of changes into the current components.. > > >Another problem was to print a euro sign (€) which shall be added to > >the HTML as € but which is always escaped as &euro;. And > >directly embedding the euro sign didn't work either - probably because > >of encoding problems which get hopefully sorted out for 1.1. > > > > > If you have a Euro as a char in java . Then you really have to use UTF-8 > as youre output. > I can't find anything else that converts it ok.. (it converts it to 0x3f > (iso-8859-1) but windows charset tells me it should be 0x80) > > where do you add that € At what place is it converted? > > > >And a question: How does a MultipleValueChoice (for example a list of > >check boxes) work with your new API. Is it possible to pass a List as > >Model? > > > > > You mean that you have 2 lists? > 1 are the choices and the other the selections? > That should already work.. Then the selected items should come from a list. > Please let me know if you have an example where this isn't the case. > See ListMultiChoice > > johan > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by HP, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > N¬HS^µéšŠX¬²š'²ŠÞu¼…àè2ŠÞZ+aæ¥Áæâ�ªájš^ž)à&ér׆ñ©� ?õÕ©„ 5žŠ{âµì¨ºÚÆ™hëazVzËb�Ûš•Ê+y©Ýv楂¶©†',µç!ž‰hƒ&¶¬~·ž¢w¡¢êÞ½é톋-yÖòð ©Ý5R èè"²×«¾+"¶m§ÿðÃir‰¿‚�ݹ©py¸§jµ¢rGºÇ«™¨¥Šx%ŠËV‰É¶ë®X¬¶Ë(º·~Šàzw†Ûi³ÿåŠËl²‹«qçè®§zßåŠËlþX¬¶)ߣü"rGºÇ«