Re: DropDownChoice Default Value

2012-07-24 Thread David Hosier
I think it's likely because your KeyValue class does not implement equals. Your defaultValue has its own new instance of KeyValue that contains the key JAVA and the value java. Your defaultValue instance and what you think is the same instance in your list are not the same unless you correctly

Re: DropDownChoice Default Value

2012-07-24 Thread David Hosier
Aww, crap. I see it was already answered in a different thread….or something that showed up under a different thread in my mail reader at least. Sorry for the noise. On Monday, July 23, 2012 at 11:46 PM, David Hosier wrote: I think it's likely because your KeyValue class does not implement

DropDownChoice Default Value

2012-07-22 Thread vimalsymbi
.nabble.com/DropDownChoice-Default-Value-tp4650704.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

Re: DropDownChoice Default Value

2012-07-22 Thread Jeremy Thomerson
: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-Default-Value-tp4650704.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

DropDownChoice Default Value

2012-07-22 Thread vimal kumar
Hi All,  I have searched and wasted much of my time figuring out the default Value for DropDownChoice for Object as dropdown but couldn't find the solution. For String dropdown i was able to make it work but somehow for object it is not working.  Below is the Simple example that i have been

Re: DropDownChoice default value not found because of equal method

2008-07-31 Thread Andrea Jahn
Hi, I created a new database and now it works fine. Must have been an inconsistency in the development/test environment. Thanks Andrea 2008/7/30, Igor Vaynberg [EMAIL PROTECTED]: On Wed, Jul 30, 2008 at 3:02 AM, Andrea Jahn [EMAIL PROTECTED] wrote: Reason is, that the Country class

DropDownChoice default value not found because of equal method

2008-07-30 Thread Andrea Jahn
Hi, I have a CityListPage, where City objects are listed in a DataView. The City has a many to one relationship to Country (eager fetching). For each item in the list there's a edit link to CityEditPage. When the user clicks the link, the city object is passed to the CityEditPage. There's a

Re: DropDownChoice default value not found because of equal method

2008-07-30 Thread Igor Vaynberg
On Wed, Jul 30, 2008 at 3:02 AM, Andrea Jahn [EMAIL PROTECTED] wrote: Reason is, that the Country class contains an equal() method. Wicket calls this method, but the comparison of the id delivers false (different instances of the Integer object). this doesnt make any sense unless you do

DropDownChoice default value

2008-01-26 Thread Mathias P.W Nilsson
DropDownChoice? -- View this message in context: http://www.nabble.com/DropDownChoice-default-value-tp15106932p15106932.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: DropDownChoice default value

2008-01-26 Thread Timo Rantalaiho
On Sat, 26 Jan 2008, Mathias P.W Nilsson wrote: I have a dropDownChoice populated with Category objects. If it is the first time the page is rendered the Choose one is visible in the list. If I choose any category this item gets removed because it is not a Category object. How can I always

Re: DropDownChoice default value

2008-01-26 Thread Mathias P.W Nilsson
would like to have an option with id and a value of my choice in top. -- View this message in context: http://www.nabble.com/DropDownChoice-default-value-tp15106932p15107379.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: DropDownChoice default value

2008-01-26 Thread Eelco Hillenius
On Jan 26, 2008 4:19 AM, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Thanks but it still does not work. I have set the setIsNullValid to true and overrided the getDefaultChoice @Override protected java.lang.CharSequence getDefaultChoice(final Object selected){ return Test value; }

Re: DropDownChoice default value

2008-01-26 Thread Mathias P.W Nilsson
Thanks alot! It works now. :jumping: -- View this message in context: http://www.nabble.com/DropDownChoice-default-value-tp15106932p15114359.html Sent from the Wicket - User mailing list archive at Nabble.com