Re: [Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-24 Thread Juergen Donnerstag
I'm +1 on changing this as well Juergen On 8/24/05, Anders Peterson <[EMAIL PROTECTED]> wrote: > Eelco Hillenius wrote: > > > I find it perfectly natural that the 'name' > > property of a null object gets me null when working with Ognl. In > > fact, that's another good reason to support this; al

Re: [Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-24 Thread Eelco Hillenius
Yep,. it should just ignore it. The property model regconizes it has null as the actual model object, so it should just do nothing. Though I can see this might introduce bugs that aren't immediately obvious, it is still the case that we can't fail fast as the actual model object can come from anywh

Re: [Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-24 Thread Johan Compagner
i think martijn means What happens if you get the post request from the poster. Where should the textfield set the data on? I agree the other way around then null is just null... johan Eelco Hillenius wrote: No, why? Wicket should react by checking for nulls and not failing. Person p = (Perso

Re: [Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-24 Thread Eelco Hillenius
No, why? Wicket should react by checking for nulls and not failing. Person p = (Person)getModelObject(); won't fail if it's null. Any PropertyModel should just return null if the 'master' property is null. Why is that so strange? And what does it have to do with parsing request parameters? I find

Re: [Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-24 Thread Martijn Dashorst
How should Wicket react to this? public MyPage() { add(new MyForm("form", new CompoundPropertyModel(null))); } public class MyForm extends Form { public MyForm(String id, IModel model) { super(id, model); add(new TextField("name")); } } This is what you propose... How sho

Re: [Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-23 Thread Martijn Dashorst
Pff... this is the third time I need to send this message, my providers' smtp server has appeared on the black list of a spam blocker and no mail gets through to the sf.net mailinglist from my home account. :-S Anders, Don't get me wrong, I don't mean to be harsh, but I think you don't 'grok'

Re: [Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-23 Thread Eelco Hillenius
I actually agree we should allow nulls. We have had discussions about this in the past, but I'm definitively in the camp that wants to either fail right away if a value (null) is not allowed, or be flexible about what we support. Eelco On 8/23/05, Anders Peterson <[EMAIL PROTECTED]> wrote: > Igor

RE: [Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-23 Thread Igor Vaynberg
Cant you just do new CompoundPropertyModel(new HashMap()) ? Also check out the wicket.util.value.ValueMap helper class. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Anders Peterson > Sent: Tuesday, August 23, 2005 10:48 AM > To: wicke