On Wed, Apr 4, 2012 at 9:53 AM, Michal Wegrzyn <michal.wegr...@onior.com> wrote: >> -----Original Message----- >> From: Martin Grigorov [mailto:mgrigo...@apache.org] >> Sent: Wednesday, April 04, 2012 9:41 >> To: users@wicket.apache.org >> Subject: Re: Debugging error >> >> On Wed, Apr 4, 2012 at 9:37 AM, Michal Wegrzyn >> <michal.wegr...@onior.com> wrote: >> > Look at VoteEditForm constructor. >> > >> > Form form = new Form("form",new CompoundPropertyModel(aVote)) {...} >> > >> > Object aVote is null. >> >> It is not null. It is misleading because there is a member field and >> constructor parameter with the same name. > > I think that you are saying... about commented code ;-)
Right. I give up reading this code :-) > >> CompoundPropertyModel also throws an exception when null is passed so >> it is immediately clear. > > Is it? It seems like CompoundPropertyModel sets only its object field. Correct! The check is only in 6.x... Now is the time someone to tell me whether I broke it in 6.x or improve it. I think it is an improvement. > >> But the pasted code is hard to read with all these comments and >> indents... >> >> > >> > Best regards, >> > Michal Wegrzyn >> > >> >> -----Original Message----- >> >> From: SudeepShakya [mailto:shakyasud...@live.com] >> >> Sent: Wednesday, April 04, 2012 8:20 >> >> To: users@wicket.apache.org >> >> Subject: Re: Debugging error >> >> >> >> I have attached the files. >> >> http://apache-wicket.1842946.n4.nabble.com/file/n4531058/Votes.java >> >> Votes.java >> >> http://apache- >> >> wicket.1842946.n4.nabble.com/file/n4531058/VoteEditForm.java >> >> VoteEditForm.java >> >> http://apache- >> >> wicket.1842946.n4.nabble.com/file/n4531058/VoteCollection.java >> >> VoteCollection.java >> >> http://apache- >> >> wicket.1842946.n4.nabble.com/file/n4531058/VoteCollectionJDBC.java >> >> VoteCollectionJDBC.java</nabble<nabble_a >> >> href="VoteDisplayPage.java">VoteDisplayPage.java _a> >> >> >> >> -- >> >> View this message in context: http://apache- >> >> wicket.1842946.n4.nabble.com/Debugging-error-tp4530892p4531058.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 >> > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> > For additional commands, e-mail: users-h...@wicket.apache.org >> > >> >> >> >> -- >> Martin Grigorov >> jWeekend >> Training, Consulting, Development >> http://jWeekend.com >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org