Re: Combination CompoundPropertyModel and ChoiceRenderer on DropDownChoice gives problems

2009-11-10 Thread Xavier López
description", "id"); > > Expose description and id on your model's object. > > And just add the listRenderer to the DDChoice (last param). > Seems a lot simpler than what you are doing. > > > -Original Message- > From: Xavier López [mailto:xavi

RE: Combination CompoundPropertyModel and ChoiceRenderer on DropDownChoice gives problems

2009-11-09 Thread Alex Rass
s a lot simpler than what you are doing. -Original Message- From: Xavier López [mailto:xavil...@gmail.com] Sent: Monday, November 09, 2009 9:37 AM To: users@wicket.apache.org Subject: Re: Combination CompoundPropertyModel and ChoiceRenderer on DropDownChoice gives problems Got it! He

Re: Combination CompoundPropertyModel and ChoiceRenderer on DropDownChoice gives problems

2009-11-09 Thread Xavier López
ment.equals(choices[i])', which will never return true. I >> > got it >> > to work overriding 'getModelObject' and doing this search with the >> > opposite >> >comp

Re: Combination CompoundPropertyModel and ChoiceRenderer on DropDownChoice gives problems

2009-11-09 Thread Xavier López
t there is more to it, in order to achieve > > > >AbstractSingleSelectChoice's getModelValue() to identify the > > selected > > > > choice > > > >element, it calls 'indexOf' on the Choice List, using the > > > > compundpropertymodel's bean

Re: Combination CompoundPropertyModel and ChoiceRenderer on DropDownChoice gives problems

2009-11-09 Thread Ernesto Reinaldo Barreiro
Element.equals(choices[i])', which will never return true. > I > > > got it > > >to work overriding 'getModelObject' and doing this search with the > > > opposite > > >comparation (choices[i].equals(sear

Re: Combination CompoundPropertyModel and ChoiceRenderer on DropDownChoice gives problems

2009-11-09 Thread Xavier López
But that's > > extremely > >hacky and ugly, and... it would not work for ListMultipleChoice, as > >getModelValue is final... > > > > > > > > 2009/11/9 Ann Baert > > > >> I've created a jira issue with more information and an example for this &g

Re: Combination CompoundPropertyModel and ChoiceRenderer on DropDownChoice gives problems

2009-11-09 Thread svenmeier
t; > > 2009/11/9 Ann Baert > >> I've created a jira issue with more information and an example for this >> problem: >> https://issues.apache.org/jira/browse/WICKET-2565 >> DISCLAIMER >> >&

Re: Combination CompoundPropertyModel and ChoiceRenderer on DropDownChoice gives problems

2009-11-09 Thread Xavier López
Hi Ann, I've also encountered this problem, but with RadioChoice instead of DropDownChoice. This is the thread I started about it: http://mail-archives.apache.org/mod_mbox/wicket-users/200911.mbox/browser After all this thread, I still don't know what should I do to model, for instance, a gende

Combination CompoundPropertyModel and ChoiceRenderer on DropDownChoice gives problems

2009-11-08 Thread Ann Baert
I've created a jira issue with more information and an example for this problem: https://issues.apache.org/jira/browse/WICKET-2565 DISCLAIMER http://www.tvh.com/newen2/emaildisclaimer/default.html "This message is delivered to all addressees subject to the conditions set forth in the