D, I'm not sure that this will work - it's just a guess - but can you add a AjaxFormComponentUpdatingBehavior to the DropDownChoice. This means it'll update its state whenever it's changed, via Ajax, regardless of whether it later gets disabled...?
Cheers, Col. -----Original Message----- From: dlutowskik [mailto:dlutows...@microinput.com] Sent: 28 May 2013 23:33 To: users@wicket.apache.org Subject: Problem with disabled DropDownChoice Hello, I have DropDownChoice in my panel. It is used to select the year between 1901 and present year. This dropdown could be disable or enable according to checkbox. If it is enable the value that represent choosen year is saved in database if it is disable null is saved in database. User could edit saved data in anytime so if the value in database is not null DropDownChoice is prepopulated with that value and if the value was null DropDownChoice is prepopulated with current year. The problem is that if DropDownChoice is initialize as disable and user make it enable and choose the new value, during saving process the value that is passed from this DropDownChoice is set to current year and not the year that user choose. I am using PropertyModel with my DropDownChoice. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-with-disabled-DropDownChoice-tp4659109.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...@wicket.apache.org EMAIL DISCLAIMER This email message and its attachments are confidential and may also contain copyright or privileged material. If you are not the intended recipient, you may not forward the email or disclose or use the information contained in it. If you have received this email message in error, please advise the sender immediately by replying to this email and delete the message and any associated attachments. Any views, opinions, conclusions, advice or statements expressed in this email message are those of the individual sender and should not be relied upon as the considered view, opinion, conclusions, advice or statement of this company except where the sender expressly, and with authority, states them to be the considered view, opinion, conclusions, advice or statement of this company. Every care is taken but we recommend that you scan any attachments for viruses. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org