I agree with Sven here. It would be great if it is possible to have best of both worlds here.
Eelco On 1/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >The renderer is just as in Swing so the renderer should return the >display > >value. > > A Swing renderer isn't responsible to generate ids. > > >Why would you go through the renderer then if you want to use the >converter > >for this? > > The renderer currently has three responsibilities: > -It has to generate an id. > -It has to locate the value to use for displaying, e.g. you're able to select > a customer but the name of the customer should be displayed. > -It has to format the display value. > > But why impose the latter? > > >The problem is then that the display value is easy. > >>converter.convert(choice, String.class) > >but the id value how is that again got from it then we need a class type >so > >that we can do converter.convert(choice,Int.class) > > I propose to reuse converters for generating the display value ONLY. The id > generation has nothing to do with formatting and is best left the way it > works now. > > >But i think this will be much harder to understand for people. > > I find it difficult to understand that DropDownChoice and its subclasses > don't use the converter infrastructure. > Imagine prices, dates or currencies in an HTML select - why aren't they > formatted the same ways as in TextFields or Labels? > > Sven > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Wicket-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
